[patch] for mc.menu

vadim vadim-lvv at yandex.ru
Wed Mar 1 14:18:49 UTC 2006


Hi!
This is small patch for work with 7zip from mc.menu

--- mc.menu.old 2004-08-17 11:31:16.000000000 +0300
+++ mc.menu     2006-02-26 19:57:35.000000000 +0200
@@ -50,6 +50,16 @@
 5       Compile and link current .c file
         make `basename %f .c` 2>/dev/null || cc -O -o `basename %f .c` %f

+= t d
+7       Compress the current subdirectory (7z)
+       Pwd=`basename %d /`
+       echo -n "Name of the compressed file (without extension) [$Pwd]: "
+       read tar
+        if [ "$tar"x = x ]; then tar="$Pwd"; fi
+       cd .. && \
+       7za a -r $tar $Pwd && \
+       echo "../$tar.7z created."
+
 + t r & ! t t
 a       Append file to opposite
        cat %f >>%D/%f
@@ -325,6 +335,10 @@
          fi
          shift
         done
+
++ f \.7z | f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ | \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t
+e       Extract compressed tar, gz, bz2 or 7z file using 7z
+       7za x %f

 + x /usr/bin/open | x /usr/local/bin/open & x /bin/sh
 o       Open next a free console

ps in last time 7zip used more often and more often
-- 
	vadim



More information about the mc-devel mailing list