Browse Source

pk: добавлена команда создания xz-архивов

master
Maxim Lihachev 11 years ago
parent
commit
3baed61c1f
  1. 15
      pk

15
pk

@ -2,12 +2,13 @@ @@ -2,12 +2,13 @@
#- Запаковка архивов
case ${2:-tbz} in
tbz) tar cjvf $1.tar.bz2 $1;;
tgz) tar czvf $1.tar.gz $1;;
tar) tar cpvf $1.tar $1;;
bz2) bzip $1;;
gz) gzip -c -9 -n $1 > $1.gz;;
zip) zip -r $1.zip $1;;
7z) 7za a $1.7z $1;;
tbz) tar cjvf "$1.tar.bz2" "$1";;
tgz) tar czvf "$1.tar.gz" "$1";;
txz) XZ_OPT=-9 tar cJf "$1.tar.xz" "$1";;
tar) tar cpvf "$1.tar" "$1";;
bz2) bzip "$1";;
gz) gzip -c -9 -n "$1" > "$1.gz";;
zip) zip -r "$1.zip" "$1";;
7z) 7za a "$1.7z" "$1";;
esac

Loading…
Cancel
Save