Use portable way of getting modified time

This commit is contained in:
Yves Rutschle 2014-12-27 19:49:51 +01:00
commit 0458c9840b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if ! `(git status | grep -q "On branch") 2> /dev/null`; then
# zip file with all files dated from the last
# change: use the Makefile's modification time as a
# release number
release=head-`stat -c "%y" Makefile | sed 's/ .*//'`
release=head-`perl -MPOSIX -e 'print strftime "%Y-%m-%d",localtime((stat "Makefile")[9])'`
fi
fi