aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-02 01:04:36 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-02 01:04:36 +0000
commitb95b3a14646cf31dcd234cbdd8e05c68f16615b4 (patch)
tree97bc3fd02b668137ecb24c72f2fcb967cf7266bc
parent8ad86dc82b19f6f73c54da8e4ee34c90e149a02d (diff)
downloadpaludis-b95b3a14646cf31dcd234cbdd8e05c68f16615b4.tar.gz
paludis-b95b3a14646cf31dcd234cbdd8e05c68f16615b4.tar.xz
Show what we're doing when unpacking
-rw-r--r--ebuild/unpack_functions.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/ebuild/unpack_functions.bash b/ebuild/unpack_functions.bash
index 7fae939..eba19cb 100644
--- a/ebuild/unpack_functions.bash
+++ b/ebuild/unpack_functions.bash
@@ -39,34 +39,42 @@ unpack_one()
case "${x}" in
*.tar)
+ echo tar xf "${1}"
tar xf "${1}" || die "Couldn't unpack ${1}"
;;
*.tar.gz|*.tgz)
+ echo tar zxf "${1}"
tar zxf "${1}" || die "Couldn't unpack ${1}"
;;
*.tar.bz2|*.tbz2)
+ echo tar jxf "${1}"
tar jxf "${1}" || die "Couldn't unpack ${1}"
;;
*.zip|*.ZIP|*.jar)
+ echo unzip -qo "${1}"
unzip -qo "${1}" || die "Couldn't unpack ${1}"
;;
*.gz|*.Z|*.z)
+ echo gzip -dc "${1}" > ${WORKDIR}/$(basename "${1%.*}" )
gzip -dc "${1}" > ${WORKDIR}/$(basename "${1%.*}" ) || die "Couldn't unpack ${1}"
;;
*.bz2)
+ echo bzip2 -dc "${1}" > ${WORKDIR}/$(basename "${1%.*}" )
bzip2 -dc "${1}" > ${WORKDIR}/$(basename "${1%.*}" ) || die "Couldn't unpack ${1}"
;;
*.rar|*.RAR)
+ echo unrar x -idq "${1}"
unrar x -idq "${1}" || die "Couldn't unpack ${1}"
;;
*.LHa|*.LHA|*.lha|*.lzh)
+ echo lha xqf "${1}"
lha xqf "${1}" || die "Couldn't unpack ${1}"
;;