Commit 8c3362e9ceb1d699f5944e66fde5c562dc5e0215
Use portable way of getting modified time
Aaron Madlon-Kay committed on 11/22/2014, 2:46:50 PMParent: 9a0a9b9492186cf9e3ff02c39223ca2c8a3b8ae8
Files changed
genver.sh | changed |
genver.sh | ||
---|---|---|
@@ -20,9 +20,9 @@ | ||
20 | 20 | # If downloaded from the head, Github creates the |
21 | 21 | # zip file with all files dated from the last |
22 | 22 | # change: use the Makefile's modification time as a |
23 | 23 | # release number |
24 | - release=head-`stat -c "%y" Makefile | sed 's/ .*//'` | |
24 | + release=head-`perl -MPOSIX -e 'print strftime "%Y-%m-%d",localtime((stat "Makefile")[9])'` | |
25 | 25 | fi |
26 | 26 | fi |
27 | 27 | |
28 | 28 | if head=`git rev-parse --verify HEAD 2>/dev/null`; then |
Built with git-ssb-web