summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makepkg')
-rwxr-xr-xscripts/makepkg9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index 35e7dac9..7304987d 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1,6 +1,6 @@
#!/bin/bash
-myver='2.1'
+myver='2.2'
startdir=`pwd`
[ -f /etc/makepkg.conf ] && source /etc/makepkg.conf
@@ -138,6 +138,7 @@ for netfile in ${source[@]}; do
fi
mkdir -p /var/cache/pacman/src && cp $file /var/cache/pacman/src
fi
+ unset cmd
case $file in
*.tar.gz|*.tar.Z|*.tgz)
cmd="tar --use-compress-program=gzip -xf $file" ;;
@@ -150,8 +151,10 @@ for netfile in ${source[@]}; do
*.gz)
cmd="gunzip $file" ;;
esac
- msg "==> $cmd"
- $cmd
+ if [ "$cmd" != "" ]; then
+ msg "==> $cmd"
+ $cmd
+ fi
done
# check for existing pkg directory