From c5f1097f4eb859ef61cc66fa14d60c5f58f99e25 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 30 Oct 2010 18:25:04 +0200 Subject: [PATCH] xbps-src: added -s flag to override default XBPS_SRCDISTDIR value. --- xbps-src/xbps-src.sh.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index b8db9dea00..bacbb2d4b1 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -37,7 +37,7 @@ trap '_MASTERDIR=${XBPS_MASTERDIR} sighandler_exit $?' 0 INT QUIT sighandler_exit() { - # Always unmount in case, we failed before! + # Always unmount in case we failed before! if [ -z "$in_chroot" ]; then env MASTERDIR="${_MASTERDIR}" \ @@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-helper umount @@ -65,7 +65,7 @@ check_reqhost_utils() usage() { cat << _EOF -$progname: [-Ch] [-c ] [-m ] [-p ] +$progname: [-Ch] [-c ] [-m ] [-p ] [-s ] Targets: bootstrap Build and install the bootstrap packages into . @@ -106,6 +106,8 @@ Options: file at @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf. -p Package directory, overwritting default path at /pkg-binpkgs. + -s Source distribution files directory, overwritting default path at + /pkg-srcdistdir. _EOF } @@ -177,7 +179,7 @@ check_config_vars() # # main() # -while getopts "Cc:hm:p:" opt; do +while getopts "Cc:hm:p:s:" opt; do case $opt in C) export dontrm_builddir=yes;; c) XBPS_CONFIG_FILE="$OPTARG";; @@ -196,6 +198,7 @@ while getopts "Cc:hm:p:" opt; do mkdir -p ${_PACKAGEDIR}/noarch fi ;; + s) export XBPS_SRCDISTDIR="$OPTARG";; --) shift; break;; esac done