summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2008-07-01 20:23:20 +0200
committerDan McGee <dan@archlinux.org>2008-07-01 21:08:50 -0500
commit5f701005ed70fe08bb9932d1a1fe02c59cbc5bb0 (patch)
tree8978a78da7ca565106c3fd647b5ec015d90b59f6 /contrib
parent11695bd0d7d8efa32066c3adf25007a896661da9 (diff)
Use $PKGEXT (from /etc/makepkg.conf) in bacman
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bacman3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/bacman b/contrib/bacman
index 95b362ed..22940ecb 100755
--- a/contrib/bacman
+++ b/contrib/bacman
@@ -87,6 +87,7 @@ fi
pkg_arch=${CARCH:-'unknown'}
pkg_dest="${PKGDEST:-$PWD}"
+pkg_ext=${PKGEXT:-'.pkg.tar.gz'}
pkg_pkger=${PACKAGER:-'Unknown Packager'}
pkg_name="$1"
@@ -265,7 +266,7 @@ chmod 644 "$work_dir"/{.PKGINFO,.CHANGELOG,.INSTALL} 2> /dev/null
echo "Generating the package..."
ret=0
-bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch.tar.gz" $(ls -A) || ret=$?
+bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch$pkg_ext" $(ls -A) || ret=$?
if [ $ret -ne 0 ]; then
echo "ERROR: unable to write package to $pkg_dest"
echo " Maybe the disk is full or you do not have write access"