xbps-src: added -G to enable XBPS_USE_GIT_REVS.

This commit is contained in:
Juan RP 2014-07-01 10:33:54 +02:00
parent e09e89d502
commit 871d2fa873
2 changed files with 5 additions and 11 deletions

View file

@ -119,6 +119,8 @@ Options:
-f Force building and registering binary packages into the local repository,
even if same version is already registered.
-G Enable XBPS_USE_GIT_REVS (see etc/defaults.conf for more information).
-g Enable building -dbg packages with debugging symbols.
-H <hostdir>
@ -314,11 +316,12 @@ readonly XBPS_MACHINE=$(uname -m)
#
XBPS_OPTIONS=
while getopts "a:CfghH:Ij:Lm:No:r:V" opt; do
while getopts "a:CfgGhH:Ij:Lm:No:r:V" opt; do
case $opt in
a) readonly XBPS_CROSS_BUILD="$OPTARG"; XBPS_OPTIONS+="-a $OPTARG ";;
C) readonly XBPS_KEEP_ALL=1; XBPS_OPTIONS+="-C ";;
f) readonly XBPS_BUILD_FORCEMODE=1; XBPS_OPTIONS+="-f ";;
G) readonly XBPS_USE_GIT_REVS=1; XBPS_OPTIONS+="-G ";;
g) readonly XBPS_DEBUG_PKGS=1; XBPS_OPTIONS+="-g ";;
H) readonly XBPS_HOSTDIR="$(readlink -m $OPTARG 2>/dev/null)"; XBPS_OPTIONS+="-H $XBPS_HOSTDIR ";;
h) usage && exit 0;;