Signed off by: Massimiliano Cialdi <massimiliano.cialdi@powersoft.it>
authorqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 18 Jun 2008 14:16:35 +0000 (14:16 +0000)
committerqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 18 Jun 2008 14:16:35 +0000 (14:16 +0000)
Fix a bug in ruleset.mk that add a newline in hostname return
string.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1478 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/rules.mk

index 68426c437a7bb598763f2acef8ba1aa3c4f1a80a..3f21ca8f5800cb27ee83aa229ab48adc6841f96d 100644 (file)
@@ -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 '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"