aboutsummaryrefslogtreecommitdiff
path: root/vietnamese/vnterm
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1996-12-10 09:42:24 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1996-12-10 09:42:24 +0000
commit9802c96856eaf99443df8af5ad0c37e665fef85c (patch)
tree67f7d5ed9edb1be0492fa98aa5c351fc77a80236 /vietnamese/vnterm
parent614a270b7cbaa599fc24fd3d748b4000e8ec0a6a (diff)
downloadports-9802c96856eaf99443df8af5ad0c37e665fef85c.tar.gz
ports-9802c96856eaf99443df8af5ad0c37e665fef85c.zip
Notes
Diffstat (limited to 'vietnamese/vnterm')
-rw-r--r--vietnamese/vnterm/files/VNterm.sh.in39
-rw-r--r--vietnamese/vnterm/scripts/pre-install2
2 files changed, 16 insertions, 25 deletions
diff --git a/vietnamese/vnterm/files/VNterm.sh.in b/vietnamese/vnterm/files/VNterm.sh.in
index 48d56e0a6f2e..176aa74d3cb6 100644
--- a/vietnamese/vnterm/files/VNterm.sh.in
+++ b/vietnamese/vnterm/files/VNterm.sh.in
@@ -31,42 +31,33 @@ check_use_font ()
}
-CF=""
-FH=0
+VF=""
+FN=0
for i in "$@" ; do
- if [ "$i" = "-fh" ]; then
- FH=1; continue;
+ if [ "$i" = "-fn" ]; then
+ FN=1; continue;
fi
- if [ "$FH" -eq 1 ]; then
- CF=`check_use_font $i`
- if [ "$CF" = "" ]; then
+ if [ "$FN" -eq 1 ]; then
+ VF=`check_use_font $i`
+ if [ "$VF" = "" ]; then
echo "Specified font doesn't exist in the X Window system."
exit 1
fi
break
fi
- FH=0
+ FN=0
done
-if [ "$CF" = "" ]; then
- if [ "$NAME" = "cxterm" ]; then
- CF=`check_use_font $GB_FONTS`
- if [ "$CF" = "" ]; then
- echo "Cannot identify a Vietnamese font in the X Window system."
- 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"
+if [ "$VF" = "" ]; then
+ VF=`check_use_font $VN_FONTS`
+ if [ "$VF" = "" ]; then
+ echo "Cannot identify a Vietnamese font in the X Window system."
+ exit 1
fi
+ FN_OPT="-fn $VF"
fi
XENVIRONMENT=$VNTERM_AD
export XENVIRONMENT
-exec $VNTERM $FH_OPT $*
+exec $VNTERM $FN_OPT $*
diff --git a/vietnamese/vnterm/scripts/pre-install b/vietnamese/vnterm/scripts/pre-install
index 0b1ef47d538a..aeddf89033fc 100644
--- a/vietnamese/vnterm/scripts/pre-install
+++ b/vietnamese/vnterm/scripts/pre-install
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/sh
# set up the resource file
# nothing yet...