configure: embed short hash for the git revision.
This commit is contained in:
1 parent
0a48738634
commit
9d562671ee
1 file changed
+1
-1
@@ -193,7 +193,7 @@ echo "CPPFLAGS += -DXBPS_VERSION=\\\"${VERSION}\\\"" >>$CONFIG_MK
|
||||
echo "CPPFLAGS += -D_unused=\"__attribute__((__unused__))\"" >>$CONFIG_MK
|
||||
|
||||
if [ -d .git ]; then
|
||||
_gitrev=$(git rev-parse master)
|
||||
_gitrev=$(git rev-parse --short master)
|
||||
echo "CPPFLAGS += -DXBPS_GIT=\\\"${_gitrev}\\\"" >>$CONFIG_MK
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user