1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-09-01 04:14:15 -04:00
gophernicus/version
2018-01-29 14:42:12 +02:00

15 lines
176 B
Bash
Executable File

#!/bin/sh
##
## Generate Gophernicus version/build number
##
DEFAULT="PE"
if which git >/dev/null && test -d .git; then
git log | grep -c "^commit"
else
echo $DEFAULT
fi