James Rosten <seinfeld90 at gmail.com>

* Use PKGDEST and SRCDEST from the environment (if defined) when calling makepkg
This commit is contained in:
Aaron Griffin 2007-01-26 01:26:08 +00:00
parent 7f465320e4
commit 1def746ad5
1 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,6 @@
myver='3.0.0'
startdir=$(pwd)
PKGDEST=$startdir
BUILDSCRIPT="PKGBUILD"
PKGEXT="pkg.tar.gz"
@ -314,6 +313,11 @@ usage() {
ARGLIST=$@
#preserve environment variables
PKGDEST=${PKGDEST:-$startdir} #default to $startdir if undefined
_PKGDEST=${PKGDEST}
_SRCDEST=$SRCDEST
#Source makepkg.conf; fail if it is not found
if [ -f /etc/makepkg.conf ]; then
source /etc/makepkg.conf
@ -327,6 +331,10 @@ if [ -f ~/.makepkg.conf ]; then
source ~/.makepkg.conf
fi
# override settings with an environment variable for batch processing
PKGDEST=${_PKGDEST:-$PKGDEST}
SRCDEST=${_SRCDEST:-$SRCDEST}
while [ "$#" -ne "0" ]; do
case $1 in
# pacman