diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-12-16 10:54:59 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-12-16 10:54:59 -0800 |
commit | 0c17e0d9fcef4331551bceedd847245bef33e311 (patch) | |
tree | 20da2e4416ce56bbe2bc7625cc1b9c8ee8ade22f | |
parent | 6922cc39f0618efa41854cb74d26f82d5aa7a3b4 (diff) |
Use the host's SRCDEST and PKGDEST if defined
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Original-by: Eric BĂ©langer <snowmaniscool@gmail.com>
-rwxr-xr-x | makechrootpkg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/makechrootpkg b/makechrootpkg index 5095425..032e6f7 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -150,6 +150,10 @@ if [ "$REPACK" != "1" ]; then rm -rf "$uniondir/build/"* fi +# Get SRC/PKGDEST from makepkg.conf +SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2) +PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2) + [ -d "$uniondir/pkgdest" ] || mkdir "$uniondir/pkgdest" if ! grep "PKGDEST=/pkgdest" "$uniondir/etc/makepkg.conf" >/dev/null 2>&1; then echo "Setting PKGDEST in makepkg.conf" |