configure: embed short hash for the git revision.

This commit is contained in:
Juan RP 2013-09-15 10:34:25 +02:00
parent 0a48738634
commit 9d562671ee

2
configure vendored
View File

@ -193,7 +193,7 @@ echo "CPPFLAGS += -DXBPS_VERSION=\\\"${VERSION}\\\"" >>$CONFIG_MK
echo "CPPFLAGS += -D_unused=\"__attribute__((__unused__))\"" >>$CONFIG_MK echo "CPPFLAGS += -D_unused=\"__attribute__((__unused__))\"" >>$CONFIG_MK
if [ -d .git ]; then if [ -d .git ]; then
_gitrev=$(git rev-parse master) _gitrev=$(git rev-parse --short master)
echo "CPPFLAGS += -DXBPS_GIT=\\\"${_gitrev}\\\"" >>$CONFIG_MK echo "CPPFLAGS += -DXBPS_GIT=\\\"${_gitrev}\\\"" >>$CONFIG_MK
fi fi