diff options
author | Dan McGee <dan@archlinux.org> | 2007-03-20 20:16:17 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-03-20 20:16:17 +0100 |
commit | 8ded2051d2449045ad07117d7ac58a17784d20ef (patch) | |
tree | 78884a1b1cca089b669428051d775aa945d25972 /scripts/makeworld | |
parent | b6018c436d3b585c23284be9bbf767caf9d37b36 (diff) | |
download | pacman-8ded2051d2449045ad07117d7ac58a17784d20ef.tar.gz pacman-8ded2051d2449045ad07117d7ac58a17784d20ef.tar.xz |
* TODO.dan updates.
Alessio 'mOLOk' Bolognino <themolok.ml@gmail.com>
* Make makeworld compatable with makepkg lacking -w option.
Diffstat (limited to 'scripts/makeworld')
-rwxr-xr-x | scripts/makeworld | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makeworld b/scripts/makeworld index 7fe84bad..b9d318c6 100755 --- a/scripts/makeworld +++ b/scripts/makeworld @@ -131,20 +131,20 @@ if [ "$dest" = "" ]; then fi # convert a (possibly) relative path to absolute -cd $dest -dest=$(pwd) +cd "$dest" +dest="$(pwd)" cd - &>/dev/null sd=$(date +"[%b %d %H:%M]") for category in $*; do - for port in $(find $toplevel/$category -maxdepth 1 -mindepth 1 -type d | sort); do + for port in $(find "$toplevel/$category" -maxdepth 1 -mindepth 1 -type d | sort); do cd $port if [ -f PKGBUILD ]; then . PKGBUILD buildstatus=0 - if [ ! -f $dest/$pkgname-$pkgver-$pkgrel.pkg.tar.gz ]; then - makepkg $MAKEPKG_OPTS -m -w $dest 2>>$toplevel/makepkg.log + if [ ! -f "$dest/$pkgname-$pkgver-$pkgrel.pkg.tar.gz" ]; then + PKGDEST="$dest" makepkg $MAKEPKG_OPTS -m 2>>$toplevel/makepkg.log if [ $? -gt 0 ]; then buildstatus=2 else |