mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 14:50:31 -04:00
Cleaned up helper script.
This commit is contained in:
parent
614a270b7c
commit
9802c96856
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4914
2 changed files with 16 additions and 25 deletions
|
@ -31,42 +31,33 @@ check_use_font ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CF=""
|
VF=""
|
||||||
FH=0
|
FN=0
|
||||||
for i in "$@" ; do
|
for i in "$@" ; do
|
||||||
if [ "$i" = "-fh" ]; then
|
if [ "$i" = "-fn" ]; then
|
||||||
FH=1; continue;
|
FN=1; continue;
|
||||||
fi
|
fi
|
||||||
if [ "$FH" -eq 1 ]; then
|
if [ "$FN" -eq 1 ]; then
|
||||||
CF=`check_use_font $i`
|
VF=`check_use_font $i`
|
||||||
if [ "$CF" = "" ]; then
|
if [ "$VF" = "" ]; then
|
||||||
echo "Specified font doesn't exist in the X Window system."
|
echo "Specified font doesn't exist in the X Window system."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
FH=0
|
FN=0
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ "$CF" = "" ]; then
|
if [ "$VF" = "" ]; then
|
||||||
if [ "$NAME" = "cxterm" ]; then
|
VF=`check_use_font $VN_FONTS`
|
||||||
CF=`check_use_font $GB_FONTS`
|
if [ "$VF" = "" ]; then
|
||||||
if [ "$CF" = "" ]; then
|
echo "Cannot identify a Vietnamese font in the X Window system."
|
||||||
echo "Cannot identify a Vietnamese font in the X Window system."
|
exit 1
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
FH_OPT="-fh $CF"
|
|
||||||
elif [ "$NAME" = "cxtermb5" ]; then
|
|
||||||
CF=`check_use_font $BIG5_FONTS`
|
|
||||||
if [ "$CF" = "" ]; then
|
|
||||||
echo "Cannot identify a Vietnamese font in the X Window system."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
FH_OPT="-fh $CF"
|
|
||||||
fi
|
fi
|
||||||
|
FN_OPT="-fn $VF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
XENVIRONMENT=$VNTERM_AD
|
XENVIRONMENT=$VNTERM_AD
|
||||||
export XENVIRONMENT
|
export XENVIRONMENT
|
||||||
exec $VNTERM $FH_OPT $*
|
exec $VNTERM $FN_OPT $*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -x
|
#!/bin/sh
|
||||||
|
|
||||||
# set up the resource file
|
# set up the resource file
|
||||||
# nothing yet...
|
# nothing yet...
|
||||||
|
|
Loading…
Add table
Reference in a new issue