git://scientific.zcu.cz
/
packaging-deb-NOW.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ce10b
)
Generate the release version properly
author
František Dvořák
<valtri@civ.zcu.cz>
Thu, 20 Oct 2016 16:34:20 +0000
(18:34 +0200)
committer
František Dvořák
<valtri@civ.zcu.cz>
Thu, 20 Oct 2016 16:34:20 +0000
(18:34 +0200)
NOW/gen.sh
patch
|
blob
|
blame
|
history
diff --git
a/NOW/gen.sh
b/NOW/gen.sh
index
cd431f7
..
a5d67a7
100755
(executable)
--- a/
NOW/gen.sh
+++ b/
NOW/gen.sh
@@
-14,6
+14,7
@@
short=`echo ${commit} | cut -c 1-7`
version=`cd NOW; ruby -r./version.rb -e 'print Now::VERSION'`
release=${release:-'0.'}
if echo "${release}" | grep -q '\.$'; then
+ release=`echo ${release} | sed -e 's/\.$//'`
release=${release}~`date --utc --date="${datecommit}" '+%Y%m%d'`git${short}
fi