aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1998-12-02 05:14:08 +0800
committerjmz <jmz@FreeBSD.org>1998-12-02 05:14:08 +0800
commit27a9e461bced98ad8f379c6d9b18fec171582c3a (patch)
treefd2bd2f630750ca1a6bae7b8fd3554bb22d19168 /print
parent29bb0e178190449edbc049988dd7ee5d070acd54 (diff)
downloadfreebsd-ports-gnome-27a9e461bced98ad8f379c6d9b18fec171582c3a.tar.gz
freebsd-ports-gnome-27a9e461bced98ad8f379c6d9b18fec171582c3a.tar.zst
freebsd-ports-gnome-27a9e461bced98ad8f379c6d9b18fec171582c3a.zip
Do not create a file in ${SCRIPTDIR}. Create it in ${WRKDIR} and use a
post-install target instead. Requested by: asami
Diffstat (limited to 'print')
-rw-r--r--print/xdvi/Makefile6
-rw-r--r--print/xdvi/scripts/configure4
2 files changed, 5 insertions, 5 deletions
diff --git a/print/xdvi/Makefile b/print/xdvi/Makefile
index 4bc750933d20..ddcd2374fd46 100644
--- a/print/xdvi/Makefile
+++ b/print/xdvi/Makefile
@@ -3,7 +3,7 @@
# Date created: 1 October 1994
# Whom: jmz
#
-# $Id: Makefile,v 1.23 1997/03/09 22:51:56 jmz Exp $
+# $Id: Makefile,v 1.24 1998/10/20 01:48:37 steve Exp $
#
DISTNAME= xdvi-20
@@ -36,7 +36,7 @@ do-install:
@(cd ${WRKSRC}; ${GMAKE} -f Makefile install BINDIR=${PREFIX}/bin)
@(cd ${WRKSRC}; ${INSTALL_SCRIPT} MakeTeXPK ${PREFIX}/bin)
-pre-clean:
- @rm -f ${SCRIPTDIR}/post-install
+post-install:
+ @if [ -f ${WRKDIR}/post-install ]; then sh ${WRKDIR}/post-install; fi
.include <bsd.port.mk>
diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure
index 39fcd2246b6d..fbbdd9884ea0 100644
--- a/print/xdvi/scripts/configure
+++ b/print/xdvi/scripts/configure
@@ -45,7 +45,7 @@ for i in $RES; do
fi
shift
done
-rm -f $SCRIPTDIR/post-install
+
echo
echo "Choose a font directory for automatic font generation."
echo "------------------------------------------------------"
@@ -57,7 +57,7 @@ echo -n "font directory [$CACHE]: "
$READ answ; if [ "$answ" != "" ]; then
CACHE=$answ;
else
- echo "mkdir -p $CACHE/pk; chmod 1777 $CACHE/pk" > $SCRIPTDIR/post-install
+ echo "mkdir -p $CACHE/pk; chmod 1777 $CACHE/pk" > $WRKDIR/post-install
fi
sed -e s:/usr/lib/tex:$prefix/share/texmf: \