summaryrefslogtreecommitdiff
path: root/print/dvips
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1995-04-22 16:51:49 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1995-04-22 16:51:49 +0000
commit52d947c22f4175a91c53d31f51fb1211f2af58e9 (patch)
treed450dcc37529c5e4810c0e7c82f20d29b1d41dcd /print/dvips
parentRemove the last line of the pre-install target. The command will be executed (diff)
Warn and request confirmation for installing/removing the package. One file
may also be used by xdvi; the package is build with some defaults, which may be not wanted by the user.
Notes
Notes: svn path=/head/; revision=1494
Diffstat (limited to 'print/dvips')
-rw-r--r--print/dvips/pkg-deinstall21
-rw-r--r--print/dvips/pkg-install54
2 files changed, 75 insertions, 0 deletions
diff --git a/print/dvips/pkg-deinstall b/print/dvips/pkg-deinstall
new file mode 100644
index 000000000000..290b365ea873
--- /dev/null
+++ b/print/dvips/pkg-deinstall
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+prefix=/usr/local
+
+cat << END
+
+Installing dvips will remove $prefix/MakeTeXPK. This file may be used by
+xdvi or other programs. If this is the case, you must make a backup of
+this file now.
+
+END
+
+echo -n "do you want to deinstall the package ? [y] "
+read answ; if [ "$answ" = "" ]; then answ=y; fi
+case $answ in
+ y*|Y*) break;;
+ *) exit 1;;
+esac
+
+exit 0
+
diff --git a/print/dvips/pkg-install b/print/dvips/pkg-install
new file mode 100644
index 000000000000..ba9bc1f31f5a
--- /dev/null
+++ b/print/dvips/pkg-install
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+prefix=/usr/local
+
+if [ "$2" = "POST-INSTALL" ]; then
+ exit 0
+fi
+
+if [ -f $prefix/bin/MakeTeXPK ]; then
+ echo "**WARNING** MakeTeXPK already exists in $prefix/bin"
+ echo "**WARNING** This file will be replaced during install."
+ echo
+ echo -n "do you want to continue ? [y] "
+ read answ; if [ "$answ" = "" ]; then answ=y; fi
+ case $answ in
+ y*|Y*) break;;
+ *) exit 1;;
+ esac
+fi
+
+cat << END
+
+This package has been compiled with some defaults:
+1 fonts will be created in $prefix/lib/texmf/fonts/pk and this
+ directory will be made world writable
+
+2 300 dpi fonts will be created with MODE=imagen
+ 200 dpi fonts will be created with MODE=FAX
+ 360 dpi fonts will be created with MODE=nextII
+ 400 dpi fonts will be created with MODE=nexthi
+ 72 dpi fonts will be created with MODE=nextscreen
+
+3 paper size is 8.5in x 11in (letter)
+
+4 printer resolution is 300dpi
+
+If you are not satisfied with 1, you need to recompile dvips
+If you are not satisfied with 2, you will need to edit $prefix/MakeTeXPK
+If you are not satisfied with 3 or 4, you will need to edit $prefix/lib/texmf/ps/config.ps
+
+END
+
+echo -n "do you want to install the package ? [y] "
+read answ; if [ "$answ" = "" ]; then answ=y; fi
+case $answ in
+ y*|Y*) break;;
+ *) exit 1;;
+esac
+
+mkdir -p $prefix/lib/texmf/fonts/pk; chmod 1777 $prefix/lib/texmf/fonts/pk
+
+exit 0
+
+