Files
ImageMagick-mirror/gitversion.sh
T
Cristy a7597da145 ...
2017-09-14 06:23:24 -04:00

9 lines
221 B
Bash
Executable File

git_rev ()
{
d=`date +%Y%m%d`
c=`git rev-list --full-history --all --abbrev-commit | wc -l | sed -e 's/^ *//'`
h=`git rev-list --full-history --all --abbrev-commit | head -1`
echo ${c}:${h}:${d}
}
git_rev