Now the BeRTOS demo emulator run on Mac OS X! You have to configure correctly Qt4...
[bertos.git] / bertos / rules.mk
index 88939c287f9a473cb4ee9be95759f334770f347e..68ddb9b61e4dbc371cc7cc5294bc2c22b61e0ba6 100644 (file)
@@ -264,7 +264,7 @@ $(RECURSIVE_TARGETS):
                $(MAKE) -C $$dir $$target || exit 1; \
        done
 
-BUILDREV_H = bertos/buildrev.h
+BUILDREV_H = buildrev.h
 
 ifeq ($(shell [ -e bertos/verstag.c ] && echo yes),yes)
 .PHONY: bumprev
@@ -274,7 +274,7 @@ bumprev:
                buildnr=`sed <"$(BUILDREV_H)" -n -e 's/#define VERS_BUILD \([0-9][0-9]*\)/\1/p'`; \
        fi; \
        buildnr=`expr $$buildnr + 1`; \
-       buildhost=`hostname`; \
+       buildhost=`hostname | sed -n -e '1h;2,$$H;$${g;s/\n//g;p}'`; \
        echo "#define VERS_BUILD $$buildnr" >"$(BUILDREV_H)"; \
        echo "#define VERS_HOST  \"$$buildhost\"" >>"$(BUILDREV_H)"; \
        echo "Building revision $$buildnr"