index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | lolilolicon <lolilolicon@gmail.com> | 2011-10-06 14:14:45 +0800 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-06 02:10:25 -0500 |
commit | 4928f9edc371a4e4f90f329c9908f00cdbfe5bfb (patch) | |
tree | 1fc11f8fcc80701953049c44bd7fabff309e50d0 /contrib/bacman.in | |
parent | 273cc66a8a3173e41b68fd07a0944887a1eb80b9 (diff) |
-rwxr-xr-x | contrib/bacman.in | 12 |
diff --git a/contrib/bacman.in b/contrib/bacman.in index 89d7f619..adc2cb36 100755 --- a/contrib/bacman.in +++ b/contrib/bacman.in @@ -265,15 +265,6 @@ chmod 644 "$work_dir"/{.PKGINFO,.CHANGELOG,.INSTALL} 2> /dev/null # echo "Generating the package..." -case "$PKGEXT" in - *tar.gz) EXT=${PKGEXT%.gz} ;; - *tar.bz2) EXT=${PKGEXT%.bz2} ;; - *tar.xz) EXT=${PKGEXT%.xz} ;; - *tar) EXT=${PKGEXT} ;; - *) echo "WARNING: '%s' is not a valid archive extension." \ - "$PKGEXT" ; EXT=$PKGEXT ;; -esac - pkg_file="$pkg_dest/$pkg_namver-$pkg_arch${PKGEXT}" ret=0 @@ -284,7 +275,10 @@ case "$PKGEXT" in *tar.gz) gzip -c -f -n ;; *tar.bz2) bzip2 -c -f ;; *tar.xz) xz -c -z - ;; + *tar.Z) compress -c -f ;; *tar) cat ;; + *) echo "WARNING: '%s' is not a valid archive extension." \ + "$PKGEXT" >&2; cat ;; esac > "${pkg_file}"; ret=$? if (( ret )); then |