Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
34e7772
)
Fix build-root/scripts/version to not have spurious ~
38/1338/2
author
Ed Warnicke
<
[email protected]
>
Tue, 31 May 2016 21:04:16 +0000
(14:04 -0700)
committer
Dave Wallace
<
[email protected]
>
Tue, 31 May 2016 21:46:45 +0000
(21:46 +0000)
Change-Id: Id28f134e3a4aa19c5756014d53004501db0d0c88
Signed-off-by: Ed Warnicke <
[email protected]
>
build-root/scripts/version
patch
|
blob
|
history
diff --git
a/build-root/scripts/version
b/build-root/scripts/version
index
bf7e315
..
8724ced
100755
(executable)
--- a/
build-root/scripts/version
+++ b/
build-root/scripts/version
@@
-15,13
+15,12
@@
fi
if [ "$1" = "rpm-release" ]; then
[ -z "${ADD}" ] && echo release && exit
- CMT=$(git describe --dirty --match 'v*'| cut -s -d- -f3,4 | sed 's/-/_/')
- echo ${ADD}~${CMT}${BLD}
+ echo ${ADD}${CMT:+~${CMT}}${BLD}
exit
fi
if [ -n "${ADD}" ]; then
- echo ${TAG}-${ADD}
~${CMT
}${BLD}
+ echo ${TAG}-${ADD}
${CMT:+~${CMT}
}${BLD}
else
echo ${TAG}
fi