xbps-src: added -s flag to override default XBPS_SRCDISTDIR value.
This commit is contained in:
parent
ade2b03094
commit
c5f1097f4e
1 changed files with 6 additions and 3 deletions
|
@ -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 <config_file>] [-m <masterdir>] [-p <pkgdir>] <target>
|
||||
$progname: [-Ch] [-c <file>] [-m <dir>] [-p <dir>] [-s <dir>] <target>
|
||||
|
||||
Targets:
|
||||
bootstrap Build and install the bootstrap packages into <masterdir>.
|
||||
|
@ -106,6 +106,8 @@ Options:
|
|||
file at @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf.
|
||||
-p Package directory, overwritting default path at
|
||||
<masterdir>/pkg-binpkgs.
|
||||
-s Source distribution files directory, overwritting default path at
|
||||
<masterdir>/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
|
||||
|
|
Loading…
Reference in a new issue