summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1997-03-09 22:52:25 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1997-03-09 22:52:25 +0000
commit4c769fc55987f20e7695d353bc1ee7671e21add2 (patch)
tree564768d6fe4160b74ea21f92417770bef90e4459
parentAdd john the ripper. (diff)
Skip the questions and make the port non interactive if PACKAGE_BUILDING
is defined. Requested by: asami
Notes
Notes: svn path=/head/; revision=5920
-rw-r--r--print/xdvi/Makefile9
-rw-r--r--print/xdvi/scripts/configure14
2 files changed, 18 insertions, 5 deletions
diff --git a/print/xdvi/Makefile b/print/xdvi/Makefile
index 68d9c2bff0ab..4622ef9ba631 100644
--- a/print/xdvi/Makefile
+++ b/print/xdvi/Makefile
@@ -3,7 +3,7 @@
# Date created: 1 October 1994
# Whom: jmz
#
-# $Id: Makefile,v 1.21 1996/11/18 09:54:49 asami Exp $
+# $Id: Makefile,v 1.22 1996/11/30 10:41:21 asami Exp $
#
DISTNAME= xdvi-20
@@ -18,9 +18,12 @@ MAINTAINER= jmz@FreeBSD.org
DIST_SUBDIR= xdvi # to share distfiles with japanese/xdvi
USE_IMAKE= yes
USE_GMAKE= yes
-IS_INTERACTIVE= yes
-
XMKMF= xmkmf
+.if defined(PACKAGE_BUILDING)
+SCRIPTS_ENV= PACKAGE_BUILDING=${PACKAGE_BUILDING}
+.else
+IS_INTERACTIVE= yes
+.endif
do-install:
@${MKDIR} ${PREFIX}/man/man1
diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure
index 9e64bc431f27..39fcd2246b6d 100644
--- a/print/xdvi/scripts/configure
+++ b/print/xdvi/scripts/configure
@@ -1,5 +1,15 @@
#!/bin/sh
+if [ X$PACKAGE_BUILDING = X ]; then
+ READ=read
+else
+ READ=_read
+fi
+_read () {
+ echo
+ answ=""
+}
+
# paper size, default is not A4
A4=n
@@ -28,7 +38,7 @@ echo "$RES dpi. (the mode must be in your modes.mf file)"
SUBST=
for i in $RES; do
echo -n "mode for $i dpi [$1]: ";
- read answ; if [ "$answ" = "" ]; then answ=$1; fi
+ $READ answ; if [ "$answ" = "" ]; then answ=$1; fi
SUBST="$SUBST -e s/MODE=$1/MODE=$answ/"
if [ $i = 600 -a $answ != imagen ]; then
SUBST="$SUBST -e s/MAG=\"/_MAG=\"/"
@@ -44,7 +54,7 @@ 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
+$READ answ; if [ "$answ" != "" ]; then
CACHE=$answ;
else
echo "mkdir -p $CACHE/pk; chmod 1777 $CACHE/pk" > $SCRIPTDIR/post-install