Off-Topic > SCM Extension Requests
Request Midnight Commander File Manager
Jason W:
Here is the result of "grep /usr *" in the /apps/mc/libexec/mc/extfs.c directpry:
--- Code: ---root@box:/tmp/2/mc/libexec/mc/extfs.d# grep /usr *
README:stored when configured or compiled, like /usr/local/libexec or /usr/libexec).
README:take whole tree and create .zip file from it. So /usr/zip:// will be
README:zipfile containing whole /usr tree.
a+:#! /usr/local/bin/perl -w
apt+:#! /usr/local/bin/perl
deb:#! /usr/local/bin/perl
deba:#! /usr/local/bin/perl
debd:#! /usr/local/bin/perl
debd: if ( -x "/usr/bin/dpkg-repack" ) {
debd: if ( -x "/usr/bin/apt-get" ) {
debd: if( -x "/usr/bin/dpkg-reconfigure" && -x "/var/lib/dpkg/info/$archive.config" ) {
dpkg+:#! /usr/local/bin/perl
mailfs:#! /usr/local/bin/perl -w
patchfs:#! /usr/local/bin/perl -w
rpms+:#! /usr/local/bin/perl
s3+:#!/usr/bin/env python
s3+:# Save as executable file /usr/libexec/mc/extfs/s3 (or wherever your mc expects to find extfs modules)
uzip:#! /usr/local/bin/perl -w
root@box:/tmp/2/mc/libexec/mc/extfs.d#
--- End code ---
Rich:
Hi Jason W
There are a few more under /usr/local/libexec/mc/ (I'm using the tcz as a reference)
/usr/local/libexec/mc/mc-wrapper.csh:/usr/local/bin/mc -P "$MC_PWD_FILE" $*
/usr/local/libexec/mc/mc-wrapper.sh:/usr/local/bin/mc -P "$MC_PWD_FILE" "$@"
/usr/local/libexec/mc/mc.csh:alias mc 'source /usr/local/libexec/mc/mc-wrapper.csh'
/usr/local/libexec/mc/mc.sh:alias mc='. /usr/local/libexec/mc/mc-wrapper.sh'
Jason W:
root@box:/apps/mc/libexec/mc# grep mc *
--- Code: ---mc-wrapper.csh: setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
mc-wrapper.csh: setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
mc-wrapper.csh:/apps/mc/localbin/mc -P "$MC_PWD_FILE" $*
mc-wrapper.sh:MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
mc-wrapper.sh:/apps/mc/localbin/mc -P "$MC_PWD_FILE" "$@"
mc.csh:alias mc 'source /apps/mc/libexec/mc/mc-wrapper.csh'
mc.sh:alias mc='. /apps/mc/libexec/mc/mc-wrapper.sh'
--- End code ---
SamK:
--- Quote from: Jason W on July 01, 2012, 07:21:01 PM ---Uploaded.
--- End quote ---
--- Quote from: Jason W on July 01, 2012, 08:50:49 PM ---I will fix the zip commands, which should be right naturally on next rebuild with /apps/mc/localbin at the front of PATH when building.
Thanks for the info, I will work in the Debian stuff next rebuild.
--- End quote ---
Not sure what has been fixed so tested as follows. Updated to the latest mc. Tested only browsing of test archives by <Enter>key.
Success: 7z, rar, iso
Fail: tar.bz2, tar.gz, zip, bz2, gz
Error Messages
tar.bz2
--- Code: ---Cannot open tar archive
test.tar.bz2/ubz2://
--- End code ---
tar.gz
--- Code: ---Cannot open tar archive
test.tar.bz2/ubz2://
--- End code ---
zip
--- Code: ---./test.zip
./test.zip: line 1: PK: not found
./test.zip: line 2: À½ï: not found
./test.zip: line 3: : not found
IHDR0WùsRGB®ÎébKGDÿÿÿ ½§: not found
./test.zip: line 4: }käiTXtCommentCreated: not found
./test.zip: line 6: syntax error: unexpected ")"
--- End code ---
bz2
--- Code: ---./test.bz2
3ìóowÊÍ}¾¸3.î ð÷9õïo%hÛåë»é:¹6úÑôè9=kZ·Wv¶³V˾Þóh¯YÃ8ä÷ºu立ϼfÁ½ßnòÝÛÞw»½ÛÏ%æÝÜq}ݵ¸ï¾ûçÏìã½Ùµw°Þ»Þr¦m: not found
./test.bz2: line 3: BZh91AY: not found
line 3: LG¦¢yOL@Ðd: not found
./test.bz2: ./test.bz2: ./test.bz2: line 3: e~òóÞó¾Ûeǽ÷Ç=ñç¼ÛSRHvTÅoZ_fªúÊI: not foundline 3: line 3: : not foundcan't open mC[ØoYëµÜÒÙ=îy½5m³aÖ} ^ëÛ6öwßz
í¾è»çîÙÙöîÆÃÛݶ¾.ï : no such file
./test.bz2: line 3: ȯ: not found
./test.bz2: line 3: á2ïôâìئ¤: not found
./test.bz2: line 3: T?ãÇz
ÆLMÏ÷gòÕìÍg8*ÂGi¶4
¦/·çbÜiM±: not found
./test.bz2: line 3: can't open @Èí»ËO++õ²P4¢UWK4b76ó: no such file
./test.bz2: line 3: SYÃn
¾3ïÿøyçÿÿ¿ïÿþ¿ÿÿþ: not found
./test.bz2: line 4: Jm°-%ß: not found
./test.bz2: line 5: syntax error: unexpected ")"
--- End code ---
gz
--- Code: ---./test.gz
./test.gz: line 1: syntax error: unexpected "("
--- End code ---
Jason W:
I see the error messages too, but it still browses the archives. I will look more at it later.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version