Remove more uses of shell filename expansion.
This commit is contained in:
parent
3854b49dfd
commit
1a1be6bc92
@ -570,13 +570,13 @@ fix_man()
|
|||||||
local TARGET
|
local TARGET
|
||||||
|
|
||||||
echo "Formatting manpages"
|
echo "Formatting manpages"
|
||||||
for i in man?
|
for i in $(${__ls} -d man? 2>/dev/null)
|
||||||
do
|
do
|
||||||
if [ -d $i ]; then
|
if [ -d $i ]; then
|
||||||
catdir=cat${i##man}
|
catdir=cat${i##man}
|
||||||
${__mkdir} $catdir
|
${__mkdir} $catdir
|
||||||
cd $i
|
cd $i
|
||||||
for manpage in *
|
for manpage in $(${__ls} * 2>/dev/null)
|
||||||
do
|
do
|
||||||
if [ -L "$manpage" ]; then
|
if [ -L "$manpage" ]; then
|
||||||
TARGET=$(${__ls} -l "$manpage" | ${__awk} '{ print $NF }')
|
TARGET=$(${__ls} -l "$manpage" | ${__awk} '{ print $NF }')
|
||||||
@ -613,11 +613,11 @@ compress_man()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Compressing manpages"
|
echo "Compressing manpages"
|
||||||
for i in [cm]a[nt]?
|
for i in $(${__ls} -d [cm]a[nt]? 2>/dev/null)
|
||||||
do
|
do
|
||||||
if [ -d $i ]; then
|
if [ -d $i ]; then
|
||||||
cd $i
|
cd $i
|
||||||
for manpage in *
|
for manpage in $(${__ls} * 2>/dev/null)
|
||||||
do
|
do
|
||||||
suffix="${manpage##*.}"
|
suffix="${manpage##*.}"
|
||||||
if [ "$suffix" != "gz" -a "$suffix" != "Z" ]; then #probably uncompressed...
|
if [ "$suffix" != "gz" -a "$suffix" != "Z" ]; then #probably uncompressed...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user