1999-03-23 22:55:36 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# It is the uhafs Valery Kornienkov vlk@st.simbirsk.su 2:5051/30@fidonet
|
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
Add macro %e it is error file name
Add macro %i it is cursor column indent of spaces, only for edit
Add macro %y, it is syntax of current file in editor, only for edit
Add condition y , it is syntax pattern of current file in edit
Add macro %x it is extension of current file
Add macro %m it is current menu filename
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
(the message of David H. Martin <dmartina@usa.net>)
2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add condition (x filename) into mc.menu .
for "Open next a free console" and like.
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
src/user.c: fix segfault in chunk_alloc of glibc, when into condition
of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/edit.c:
Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
* gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
Marked block is access now from an user edit menu
Access ~/.cedit/cooledit.block for insert to cursor place from
user edit menu.
Created system cedit.menu
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editdraw.c:
Improved a status string of cool editor for best understand,
and to add char,hex view.
2000-05-04 Richard Hestilow <hestgray@ionet.net>
* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 05:18:27 +04:00
|
|
|
# ver 0.1 Thu Apr 6 12:05:08 2000
|
2002-12-14 08:10:52 +03:00
|
|
|
#
|
|
|
|
# Tested with HA 0.999. Source of ha can be found at
|
|
|
|
# ftp://ftp.ibiblio.org/pub/Linux/utils/compress/
|
1999-03-23 22:55:36 +03:00
|
|
|
|
2002-12-14 08:10:52 +03:00
|
|
|
HA=ha
|
1999-03-23 22:55:36 +03:00
|
|
|
|
|
|
|
mchafs_list ()
|
|
|
|
{
|
2009-01-12 22:58:50 +03:00
|
|
|
$HA lf "$1" 2>/dev/null | @AWK@ -v uid=$(id -ru) '
|
1999-03-23 22:55:36 +03:00
|
|
|
/^===========/ {next}
|
|
|
|
{
|
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
Add macro %e it is error file name
Add macro %i it is cursor column indent of spaces, only for edit
Add macro %y, it is syntax of current file in editor, only for edit
Add condition y , it is syntax pattern of current file in edit
Add macro %x it is extension of current file
Add macro %m it is current menu filename
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
(the message of David H. Martin <dmartina@usa.net>)
2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add condition (x filename) into mc.menu .
for "Open next a free console" and like.
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
src/user.c: fix segfault in chunk_alloc of glibc, when into condition
of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/edit.c:
Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
* gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
Marked block is access now from an user edit menu
Access ~/.cedit/cooledit.block for insert to cursor place from
user edit menu.
Created system cedit.menu
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editdraw.c:
Improved a status string of cool editor for best understand,
and to add char,hex view.
2000-05-04 Richard Hestilow <hestgray@ionet.net>
* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 05:18:27 +04:00
|
|
|
if ($5="%" && $8~/DIR|ASC|HSC|CPY/) {
|
1999-03-23 22:55:36 +03:00
|
|
|
split($6, a, "-")
|
|
|
|
split($7, t, ":")
|
|
|
|
filename=$1
|
|
|
|
filesize=$2
|
|
|
|
getline
|
|
|
|
if ($2=="(none)") $2=""
|
|
|
|
path=$2
|
|
|
|
getline
|
|
|
|
if ($1~/^d.*/) next
|
2002-12-14 08:10:52 +03:00
|
|
|
printf "%s %s %-8d %-8d %8d %s-%s-%s %s:%s %s%s\n",\
|
|
|
|
$1,1,0,0,filesize,a[3],a[2],a[1],t[1],t[2],path,filename
|
1999-03-23 22:55:36 +03:00
|
|
|
}
|
2002-12-13 10:53:20 +03:00
|
|
|
}'
|
1999-03-23 22:55:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
mchafs_copyout ()
|
|
|
|
{
|
2004-11-10 19:08:00 +03:00
|
|
|
TMPDIR=`mktemp -d "${MC_TMPDIR:-/tmp}/mctmpdir-uha.XXXXXX"` || exit 1
|
|
|
|
cd "$TMPDIR"
|
2002-12-13 10:53:20 +03:00
|
|
|
|
2002-12-14 08:10:52 +03:00
|
|
|
$HA xyq "$1" "$2" >/dev/null
|
|
|
|
cat "$2" > "$3"
|
2002-12-13 10:53:20 +03:00
|
|
|
|
|
|
|
cd /
|
2004-11-10 19:08:00 +03:00
|
|
|
rm -rf "$TMPDIR"
|
1999-03-23 22:55:36 +03:00
|
|
|
}
|
|
|
|
|
2002-12-13 10:53:20 +03:00
|
|
|
cmd="$1"
|
|
|
|
shift
|
|
|
|
|
|
|
|
case "$cmd" in
|
|
|
|
list) mchafs_list "$@" ;;
|
|
|
|
copyout) mchafs_copyout "$@" ;;
|
|
|
|
*) exit 1 ;;
|
1999-03-23 22:55:36 +03:00
|
|
|
esac
|
2002-12-13 10:53:20 +03:00
|
|
|
exit 0
|