From d41780cbef2951c36c422db2524eb864e5504644 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 17 Jan 2015 21:02:59 +0300 Subject: [PATCH] mc.menu: pack not-packed files --- .mc/menu | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.mc/menu b/.mc/menu index d163a2d..5d3845e 100644 --- a/.mc/menu +++ b/.mc/menu @@ -247,11 +247,35 @@ y Compress the current subdirectory to zip with recoded filenames cd .. && zip.py "$zip".zip "$Pwd" && echo ../"$zip".zip created. -+ ! f \.(\.|zip|ZIP)$ ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z bzip2 the file/directory + exec bzip2 -9 %f.bz2 %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z gzip the file/directory + exec gzip -9 %f.gz %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z lzip the file/directory + exec lzip -9 %f.lz %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z lzma the file/directory + exec lzma -9 %f.lzma %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z 7z the file/directory + exec 7z -9 %f.7z %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z xz the file/directory + exec xz -9 %f.xz %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ z zip the file/directory exec zip -r9 %f.zip %f -+ ! f \.(\.|zip|ZIP)$ ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ y zip the file/directory with recoded filename(s) exec zip.py %f.zip %f -- 2.39.5