aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1999-11-13 01:49:21 +0800
committerandreas <andreas@FreeBSD.org>1999-11-13 01:49:21 +0800
commit3b3b36c1136171882765ad3d9d88ae83af6f08ca (patch)
tree75e9979220014d10b45dab611a04a18deae420be /print
parentaf914116be0bc7312e8888b02cba412996124f21 (diff)
downloadfreebsd-ports-gnome-3b3b36c1136171882765ad3d9d88ae83af6f08ca.tar.gz
freebsd-ports-gnome-3b3b36c1136171882765ad3d9d88ae83af6f08ca.tar.zst
freebsd-ports-gnome-3b3b36c1136171882765ad3d9d88ae83af6f08ca.zip
make BATCH mode possible
bug reported by: Satoshi
Diffstat (limited to 'print')
-rw-r--r--print/apsfilter/scripts/configure9
-rw-r--r--print/apsfilter6/scripts/configure9
2 files changed, 16 insertions, 2 deletions
diff --git a/print/apsfilter/scripts/configure b/print/apsfilter/scripts/configure
index d29d1721adbb..cbe12b39cb12 100644
--- a/print/apsfilter/scripts/configure
+++ b/print/apsfilter/scripts/configure
@@ -2,7 +2,7 @@
# $FreeBSD$
-# runs if BATCH is NOT defined
+if [ "$BATCH" != "yes" ]; then
#
# configure - apsfilter package dependency configuration
@@ -128,6 +128,13 @@ while [ "$1" ]; do
shift
done
+fi # if $BATCH
+
+# if batch, then start creating Makefile.inc here
+if [ "$BATCH" = "yes" ]; then
+ /bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
+ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+fi
echo "post-install:"
echo " @\${MKDIR} ${PREFIX}/apsfilter/filter"
echo " @touch ${PREFIX}/apsfilter/filter/.keep_me"
diff --git a/print/apsfilter6/scripts/configure b/print/apsfilter6/scripts/configure
index d29d1721adbb..cbe12b39cb12 100644
--- a/print/apsfilter6/scripts/configure
+++ b/print/apsfilter6/scripts/configure
@@ -2,7 +2,7 @@
# $FreeBSD$
-# runs if BATCH is NOT defined
+if [ "$BATCH" != "yes" ]; then
#
# configure - apsfilter package dependency configuration
@@ -128,6 +128,13 @@ while [ "$1" ]; do
shift
done
+fi # if $BATCH
+
+# if batch, then start creating Makefile.inc here
+if [ "$BATCH" = "yes" ]; then
+ /bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
+ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+fi
echo "post-install:"
echo " @\${MKDIR} ${PREFIX}/apsfilter/filter"
echo " @touch ${PREFIX}/apsfilter/filter/.keep_me"