2003-03-06 04:35:48 +00:00
|
|
|
#! /bin/sh
|
|
|
|
# ex:ts=8
|
|
|
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
case "$1" in
|
2005-05-17 12:08:11 +01:00
|
|
|
*.Z)
|
2007-05-24 19:28:08 +01:00
|
|
|
exec uncompress -c "$1" 2>/dev/null
|
2003-03-06 04:35:48 +00:00
|
|
|
;;
|
2005-05-17 12:08:11 +01:00
|
|
|
*.gz)
|
2007-05-24 19:28:08 +01:00
|
|
|
exec gzip -d -c "$1" 2>/dev/null
|
2003-03-06 04:35:48 +00:00
|
|
|
;;
|
2005-05-17 12:08:11 +01:00
|
|
|
*.bz2)
|
2007-05-24 19:28:08 +01:00
|
|
|
exec bzip2 -d -c "$1" 2>/dev/null
|
2005-05-17 12:08:11 +01:00
|
|
|
;;
|
2010-05-10 07:59:50 +01:00
|
|
|
*.xz)
|
|
|
|
exec xz -d -c "$1" 2>/dev/null
|
|
|
|
;;
|
|
|
|
*.lzma)
|
|
|
|
exec lzma -d -c "$1" 2>/dev/null
|
|
|
|
;;
|
2003-03-06 04:35:48 +00:00
|
|
|
esac
|