summaryrefslogtreecommitdiffstats
path: root/print/dvips/scripts
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1995-04-20 02:04:02 +0000
committerjmz <jmz@FreeBSD.org>1995-04-20 02:04:02 +0000
commitea0f788962fb24803f749fe078a25bf5981ffbf1 (patch)
treebe3ad6147f4578082d5d10342549b95751d5d06f /print/dvips/scripts
parentbf24c42bb0cbe62fd84daeeadf82434899de418b (diff)
downloadFreeBSD-ports-ea0f788962fb24803f749fe078a25bf5981ffbf1.zip
FreeBSD-ports-ea0f788962fb24803f749fe078a25bf5981ffbf1.tar.gz
The configure script now propose to create fonts in the default tex
font directory instead of /tmp. If the user choose the defaults, then the mode of font directory is changed to 1777 at install time.
Diffstat (limited to 'print/dvips/scripts')
-rw-r--r--print/dvips/scripts/configure27
1 files changed, 22 insertions, 5 deletions
diff --git a/print/dvips/scripts/configure b/print/dvips/scripts/configure
index 492a6ef..309b216 100644
--- a/print/dvips/scripts/configure
+++ b/print/dvips/scripts/configure
@@ -3,8 +3,16 @@
# paper size, default is no nor A4
A4=n
-#default font cache directory: must be world writable
-CACHE=/tmp
+prefix=$PREFIX;
+if `echo $PREFIX |grep -q X11` ; then
+ prefix=/usr/local
+fi
+CACHE=$prefix/lib/texmf/fonts
+
+if [ -f $prefix/bin/MakeTeXPK ]; then
+ echo "**WARNING** MakeTeXPK already exists in $PREFIX/bin"
+ echo "This file will be replaced during install."
+fi
if [ ! -f ${WRKSRC}/MakeTeXPK.orig ]; then
@@ -25,9 +33,18 @@ for i in $RES; do
shift
done
-echo "Choose a font cache directory for automatic font generation"
-echo -n "(this directory must be world writable) [$CACHE]: "
-read answ; if [ "$answ" != "" ]; then CACHE=$answ; fi
+rm -f $SCRIPTDIR/install.tmp
+echo "Choose a font directory for automatic font generation."
+echo "The default directory is $CACHE. If you"
+echo "don't want to make this directory world writable, then you"
+echo "can choose eg. /tmp. Then you will have to periodically move "
+echo "the files to $CACHE/pk."
+echo -n "font directory [$CACHE]: "
+read answ; if [ "$answ" != "" ]; then
+ CACHE=$answ;
+else
+ echo "mkdir -p $CACHE/pk; chmod 1777 $CACHE/pk" > $SCRIPTDIR/install.tmp
+fi
sed -e s:/usr/lib/tex:/$PREFIX/lib/texmf: \
-e s:/LocalLibrary/Fonts/TeXFonts:$CACHE: \
OpenPOWER on IntegriCloud