From: batt Date: Wed, 18 Jun 2008 15:18:54 +0000 (+0000) Subject: Fix escaping. X-Git-Tag: 2.0.0~455 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=74a0e32d3bdb9d11297b409aa841de3982be6417;p=bertos.git Fix escaping. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1479 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/rules.mk b/bertos/rules.mk index 3f21ca8f..68ddb9b6 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` | sed -n '1h;2,$H;${g;s/\n//g;p}'; \ + 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"