Use git HEAD hash as possible package name

Pretty simple addition to allow generating debian packages with the git
hash as part of the packages name. This may be useful for a nightly
build style for fast testing
This commit is contained in:
Luis Bosque 2017-05-16 15:01:00 +02:00 committed by alexey-milovidov
parent 1db9a73059
commit b39ca52354

View File

@ -24,6 +24,9 @@ do
gen_revision_author
git push
exit 0
elif [[ $1 == '--head' ]]; then
REVISION=`git rev-parse HEAD`
shift
else
echo "Unknown option $1"
exit 2