diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index b8db9dea00c..bacbb2d4b1e 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