From 0c28dd72b8961cc2704833f8d61546e3ba288d74 Mon Sep 17 00:00:00 2001 From: qwert Date: Wed, 18 Jun 2008 14:16:35 +0000 Subject: [PATCH] Signed off by: Massimiliano Cialdi 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/rules.mk b/bertos/rules.mk index 68426c43..3f21ca8f 100644 --- a/bertos/rules.mk +++ b/bertos/rules.mk @@ -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" -- 2.25.1