XBPS_RELVER: embed the latest git rev hash.
This commit is contained in:
parent
bdd93b7aa7
commit
ddca33b4a9
4
configure
vendored
4
configure
vendored
@ -193,6 +193,10 @@ echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK
|
||||
echo "CPPFLAGS += -DHAVE_CONFIG_H" >>$CONFIG_MK
|
||||
echo "CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\"${ETCDIR}\\\"" >>$CONFIG_MK
|
||||
echo "CPPFLAGS += -DXBPS_VERSION=\\\"${VERSION}\\\"" >>$CONFIG_MK
|
||||
if [ -d .git ]; then
|
||||
_gitrev=$(git rev-parse master)
|
||||
echo "CPPFLAGS += -DXBPS_GIT=\\\"${_gitrev}\\\"" >>$CONFIG_MK
|
||||
fi
|
||||
|
||||
if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then
|
||||
echo "Building with debugging symbols."
|
||||
|
@ -61,14 +61,17 @@
|
||||
#ifndef XBPS_VERSION
|
||||
#define XBPS_VERSION "UNSET"
|
||||
#endif
|
||||
|
||||
#ifndef XBPS_GIT
|
||||
#define XBPS_GIT "UNSET"
|
||||
#endif
|
||||
/**
|
||||
* @def XBPS_RELVER
|
||||
* Current library release date.
|
||||
*/
|
||||
#define XBPS_RELVER "XBPS: " XBPS_VERSION \
|
||||
" API: " XBPS_API_VERSION \
|
||||
" INDEX: " XBPS_PKGINDEX_VERSION
|
||||
" INDEX: " XBPS_PKGINDEX_VERSION \
|
||||
" GIT: " XBPS_GIT
|
||||
|
||||
/**
|
||||
* @def XBPS_META_PATH
|
||||
|
Loading…
Reference in New Issue
Block a user