mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-10-27 05:20:18 -04:00
17 lines
209 B
Plaintext
17 lines
209 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
##
|
||
|
## Generate Gophernicus version/build number
|
||
|
##
|
||
|
|
||
|
MAJOR=2
|
||
|
MINOR=99
|
||
|
|
||
|
if which git >/dev/null && test -d .git; then
|
||
|
printf "${MAJOR}."
|
||
|
git log | grep -c "^commit"
|
||
|
else
|
||
|
echo ${MAJOR}.${MINOR}
|
||
|
fi
|
||
|
|