summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-01-08 21:01:27 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-01-08 21:01:27 +0100
commit0e0bb59ab561708efc2ae15729cd0788850dca5f (patch)
treed655c52025299ce451beca2ac1903a4538f0a716 /scripts
parent65cb81bb24b0ccf9a17250eed2052b226639a5ba (diff)
downloadembtoolkit-0e0bb59ab561708efc2ae15729cd0788850dca5f.tar.gz
embtoolkit-0e0bb59ab561708efc2ae15729cd0788850dca5f.tar.bz2
embtoolkit-0e0bb59ab561708efc2ae15729cd0788850dca5f.tar.xz
Embtk/script: setlocalversion: fix version
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/setlocalversion4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 7d507bc..8922669 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -55,7 +55,7 @@ scmversion_print() {
# If we are past a tagged commit (like
# "v2.6.30-rc5-302-g72357d5"), we pretty print it.
if atag="`git describe 2>/dev/null`"; then
- echo "$atag" | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
+ echo "$atag" | awk -F- '{printf("%05d-%s", $(NF-1),$(NF))}'
# If we don't have a tag at all we print -g{commitish}.
else
@@ -104,7 +104,7 @@ scmversion_print() {
# Check for svn and a svn repo.
if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
rev=`echo $rev | awk '{print $NF}'`
- printf -- '-svn%s' "$rev"
+ printf -- 'svn%s' "$rev"
# All done with svn
return