mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
extfs helpers: Replace all 'gawk' occurences with @AWK@ meta variable.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
b0ba12d49c
commit
bf89e24a61
@ -535,6 +535,7 @@ src/vfs/extfs/helpers/uar
|
|||||||
src/vfs/extfs/helpers/uarc
|
src/vfs/extfs/helpers/uarc
|
||||||
src/vfs/extfs/helpers/uarj
|
src/vfs/extfs/helpers/uarj
|
||||||
src/vfs/extfs/helpers/uc1541
|
src/vfs/extfs/helpers/uc1541
|
||||||
|
src/vfs/extfs/helpers/ucab
|
||||||
src/vfs/extfs/helpers/uha
|
src/vfs/extfs/helpers/uha
|
||||||
src/vfs/extfs/helpers/ulha
|
src/vfs/extfs/helpers/ulha
|
||||||
src/vfs/extfs/helpers/urar
|
src/vfs/extfs/helpers/urar
|
||||||
|
1
src/vfs/extfs/helpers/.gitignore
vendored
1
src/vfs/extfs/helpers/.gitignore
vendored
@ -17,6 +17,7 @@ s3+
|
|||||||
ualz
|
ualz
|
||||||
uar
|
uar
|
||||||
uarj
|
uarj
|
||||||
|
ucab
|
||||||
uha
|
uha
|
||||||
ulha
|
ulha
|
||||||
urar
|
urar
|
||||||
|
@ -6,7 +6,7 @@ EXTFSCONFFILES = sfs.ini
|
|||||||
EXTFS_MISC = README README.extfs
|
EXTFS_MISC = README README.extfs
|
||||||
|
|
||||||
# Scripts hat don't need adaptation to the local system
|
# Scripts hat don't need adaptation to the local system
|
||||||
EXTFS_CONST = bpp rpm trpm u7z ucab
|
EXTFS_CONST = bpp rpm trpm u7z
|
||||||
|
|
||||||
# Scripts that need adaptation to the local system - source files
|
# Scripts that need adaptation to the local system - source files
|
||||||
EXTFS_IN = \
|
EXTFS_IN = \
|
||||||
@ -30,6 +30,7 @@ EXTFS_IN = \
|
|||||||
uarc.in \
|
uarc.in \
|
||||||
uarj.in \
|
uarj.in \
|
||||||
uc1541.in \
|
uc1541.in \
|
||||||
|
ucab.in \
|
||||||
uha.in \
|
uha.in \
|
||||||
ulha.in \
|
ulha.in \
|
||||||
urar.in \
|
urar.in \
|
||||||
@ -58,6 +59,7 @@ EXTFS_OUT = \
|
|||||||
uarc \
|
uarc \
|
||||||
uarj \
|
uarj \
|
||||||
uc1541 \
|
uc1541 \
|
||||||
|
ucab \
|
||||||
uha \
|
uha \
|
||||||
ulha \
|
ulha \
|
||||||
urar \
|
urar \
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
# <jpelletier@ieee.org>
|
# <jpelletier@ieee.org>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Define your awk
|
|
||||||
AWK=gawk
|
|
||||||
# Define which archiver you are using with appropriate options
|
# Define which archiver you are using with appropriate options
|
||||||
ACE_LIST="unace l"
|
ACE_LIST="unace l"
|
||||||
ACE_GET="unace x"
|
ACE_GET="unace x"
|
||||||
@ -28,7 +26,7 @@ mc_ace_fs_list()
|
|||||||
UID=0
|
UID=0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
$ACE_LIST "$1" | gawk -v uid=$UID '
|
$ACE_LIST "$1" | @AWK@ -v uid=$UID '
|
||||||
BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" }
|
BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" }
|
||||||
/%/ {
|
/%/ {
|
||||||
split($1,date,".")
|
split($1,date,".")
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
# <jpelletier@ieee.org>
|
# <jpelletier@ieee.org>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Define your awk
|
|
||||||
AWK=gawk
|
|
||||||
# Define which archiver you are using with appropriate options
|
# Define which archiver you are using with appropriate options
|
||||||
ARC_LIST="arc v"
|
ARC_LIST="arc v"
|
||||||
ARC_GET="arc x"
|
ARC_GET="arc x"
|
||||||
@ -25,7 +23,7 @@ mc_arc_fs_list()
|
|||||||
UID=0
|
UID=0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
$ARC_LIST "$1" | gawk -v uid=$UID '
|
$ARC_LIST "$1" | @AWK@ -v uid=$UID '
|
||||||
BEGIN { }
|
BEGIN { }
|
||||||
/^Name/ { next }
|
/^Name/ { next }
|
||||||
/===/ { next }
|
/===/ { next }
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# <jpelletier@ieee.org>
|
# <jpelletier@ieee.org>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Define your awk
|
|
||||||
AWK=gawk
|
|
||||||
# Define which archiver you are using with appropriate options
|
# Define which archiver you are using with appropriate options
|
||||||
C1541="c1541"
|
C1541="c1541"
|
||||||
|
|
||||||
@ -26,7 +24,7 @@ mc_c1541_fs_list()
|
|||||||
UID=0
|
UID=0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
$C1541 "$1" -list | gawk -v uid=$UID '
|
$C1541 "$1" -list | @AWK@ -v uid=$UID '
|
||||||
BEGIN { FS = "\"" }
|
BEGIN { FS = "\"" }
|
||||||
/No LINES!/ { next }
|
/No LINES!/ { next }
|
||||||
/BLOCKS FREE/ { next }
|
/BLOCKS FREE/ { next }
|
||||||
|
2
src/vfs/extfs/helpers/ucab → src/vfs/extfs/helpers/ucab.in
Executable file → Normal file
2
src/vfs/extfs/helpers/ucab → src/vfs/extfs/helpers/ucab.in
Executable file → Normal file
@ -4,7 +4,7 @@ CAB=cabextract
|
|||||||
|
|
||||||
mccabfs_list ()
|
mccabfs_list ()
|
||||||
{
|
{
|
||||||
$CAB -l "$1" | gawk -v uid=`id -un` -v gid=`id -gn` '
|
$CAB -l "$1" | @AWK@ -v uid=`id -un` -v gid=`id -gn` '
|
||||||
BEGIN { flag=0 }
|
BEGIN { flag=0 }
|
||||||
/^-------/ { flag++; if (flag > 1) exit 0; next }
|
/^-------/ { flag++; if (flag > 1) exit 0; next }
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user