summaryrefslogtreecommitdiff
path: root/print/xdvi
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-10-04 15:12:57 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-10-04 15:12:57 +0000
commitdeab9494fa6cf32254d135ebd75d00f544208751 (patch)
tree9ca8c8a43c7a2bd2362c9a2c25b2248ef64a0861 /print/xdvi
parentAdd games hierarchy. (diff)
These are my changes to support the new argument-less configure scripts.
Notes
Notes: svn path=/head/; revision=170
Diffstat (limited to 'print/xdvi')
-rw-r--r--print/xdvi/scripts/configure25
1 files changed, 10 insertions, 15 deletions
diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure
index 8a19b3a88239..08fcea3324be 100644
--- a/print/xdvi/scripts/configure
+++ b/print/xdvi/scripts/configure
@@ -1,22 +1,17 @@
#!/bin/sh
-if [ $# != 3 ]; then exit 1; fi
-
-SRCDIR=$3
-
# paper size, default is no nor A4
A4=n
#default font cache directory: must be world writable
CACHE=/tmp
-
-if [ ! -f $SRCDIR/MakeTeXPK.orig ]; then
- mv $SRCDIR/MakeTeXPK $SRCDIR/MakeTeXPK.orig || exit 1
+if [ ! -f ${WRKSRC}/MakeTeXPK.orig ]; then
+ mv ${WRKSRC}/MakeTeXPK ${WRKSRC}/MakeTeXPK.orig || exit 1
fi
#find the resolutions
-RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < $SRCDIR/MakeTeXPK.orig`
+RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < ${WRKSRC}/MakeTeXPK.orig`
# and the corresponding modes
-MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < $SRCDIR/MakeTeXPK.orig`
+MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < ${WRKSRC}/MakeTeXPK.orig`
set $MODES
echo "I need to set the mode of our printing/output device for the resolutions"
echo "$RES dpi. (the mode must be in your modes.mf file)"
@@ -34,13 +29,13 @@ read answ; if [ "$answ" != "" ]; then CACHE=$answ; fi
sed -e s:/usr/lib/tex:/usr/local/lib/texmf: \
-e s:/LocalLibrary/Fonts/TeXFonts:$CACHE: \
- $SUBST <$SRCDIR/MakeTeXPK.orig >$SRCDIR/MakeTeXPK
+ $SUBST <${WRKSRC}/MakeTeXPK.orig >${WRKSRC}/MakeTeXPK
# Imakefile
-chmod +w $SRCDIR/Imakefile
-echo "OSDEFS=" >> $SRCDIR/Imakefile || exit 1;
-echo "OPTIONDEFS=-DUSE_PK -DGREY -DPS_GS -DMAKEPK -DBUTTONS" >> $SRCDIR/Imakefile
-echo "DEFAULT_FONT_PATH=/usr/local/lib/texmf/fonts/pk:$CACHE/pk" >> $SRCDIR/Imakefile
-echo "DEFAULT_VF_PATH=/usr/local/lib/texmf/fonts/vf" >> $SRCDIR/Imakefile
+chmod +w ${WRKSRC}/Imakefile
+echo "OSDEFS=" >> ${WRKSRC}/Imakefile || exit 1;
+echo "OPTIONDEFS=-DUSE_PK -DGREY -DPS_GS -DMAKEPK -DBUTTONS" >> ${WRKSRC}/Imakefile
+echo "DEFAULT_FONT_PATH=/usr/local/lib/texmf/fonts/pk:$CACHE/pk" >> ${WRKSRC}/Imakefile
+echo "DEFAULT_VF_PATH=/usr/local/lib/texmf/fonts/vf" >> ${WRKSRC}/Imakefile
exit 0;