_ RU.LINUX (2:5077/15.22) ___________________________________________ RU.LINUX _
From : seyko 2:5020/434.5 09 Dec 98 06:16:28
Subj : PATCH for MC 4.5.1 (lha-архив)
________________________________________________________________________________
Чтобы можно было в lha-архив из MC файлы записывать. Вроде ничего
лишнего не удаляет...
- --- ulha.in.old Wed Dec 9 03:13:03 1998
+++ ulha.in Wed Dec 9 03:27:17 1998
@@ -45,7 +45,7 @@
# Define which archiver you are using with appropriate options
LHA_LIST="lha l"
LHA_GET="lha pq"
-LHA_PUT="lha a"
+LHA_PUT="lha aq"
# Define the temporary name of a command to be run from the archive
TMPCMD=/tmp/mc-cmd.$$
@@ -118,8 +118,20 @@
mc_lha_fs_copyin ()
{
- # This isn't called from this version of mc
- $LHA_PUT $1 $3 2> /dev/null
+ NAME2=`basename $2`; DIR2=${2%$NAME2}
+ NAME3=`basename $3`; DIR3=${3%$NAME3}
+
+ cd ${DIR3}
+
+ ONE2=${2%%/*}
+ [ -n ${ONE2} ] || exit
+ [ -e ${ONE2} ] && exit;
+
+ [ -e ${DIR2} ] || mkdir -p ${DIR2}
+ ln $3 $2 || exit;
+
+ $LHA_PUT $1 $2 2> /dev/null
+ rm -r ${ONE2}
}
# The 'run' command executive to run a command from within an archive
--- ifmail v.2.14
* Origin: SeYKo at home, Moscow, Russia. (2:5020/434.5@fidonet)
981 Прочтений • [PATCH for MC 4.5.1 (lha-архив) (patch )] [08.05.2012] [Комментариев: 0]