mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 13:02:01 +03:00
Ticket #2703: Simplify mc.menu - remove LZMA|LZ and change p7 to 7z
* LZMA is now considered unsupported and outdated, let's get rid of it. * There's no p7 archiver format, let's change it to "7z". Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
66868141a5
commit
b6f3e56f9f
22
misc/mc.menu
22
misc/mc.menu
@ -45,7 +45,7 @@ shell_patterns=0
|
|||||||
tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
|
tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
|
||||||
echo "../$tar.tar.bz2 created."
|
echo "../$tar.tar.bz2 created."
|
||||||
|
|
||||||
5 Compress the current subdirectory (tar.p7)
|
5 Compress the current subdirectory (tar.7z)
|
||||||
Pwd=`basename %d /`
|
Pwd=`basename %d /`
|
||||||
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
||||||
read tar
|
read tar
|
||||||
@ -54,25 +54,7 @@ shell_patterns=0
|
|||||||
tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \
|
tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \
|
||||||
echo "../$tar.tar.7z created."
|
echo "../$tar.tar.7z created."
|
||||||
|
|
||||||
6 Compress the current subdirectory (tar.lzma)
|
6 Compress the current subdirectory (tar.xz)
|
||||||
Pwd=`basename %d /`
|
|
||||||
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
|
||||||
read tar
|
|
||||||
if [ "$tar"x = x ]; then tar="$Pwd"; fi
|
|
||||||
cd .. && \
|
|
||||||
tar cf - "$Pwd" | lzma -f > "$tar.tar.lzma" && \
|
|
||||||
echo "../$tar.tar.lzma created."
|
|
||||||
|
|
||||||
7 Compress the current subdirectory (tar.lz)
|
|
||||||
Pwd=`basename %d /`
|
|
||||||
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
|
||||||
read tar
|
|
||||||
if [ "$tar"x = x ]; then tar="$Pwd"; fi
|
|
||||||
cd .. && \
|
|
||||||
tar cf - "$Pwd" | lzip -f > "$tar.tar.lz" && \
|
|
||||||
echo "../$tar.tar.lz created."
|
|
||||||
|
|
||||||
8 Compress the current subdirectory (tar.xz)
|
|
||||||
Pwd=`basename %d /`
|
Pwd=`basename %d /`
|
||||||
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
||||||
read tar
|
read tar
|
||||||
|
Loading…
Reference in New Issue
Block a user