diff options
author | Gary Palmer <gpalmer@FreeBSD.org> | 1996-07-04 21:59:26 +0000 |
---|---|---|
committer | Gary Palmer <gpalmer@FreeBSD.org> | 1996-07-04 21:59:26 +0000 |
commit | 9e2ec2324eac864835fffa7a629176ad2c87b786 (patch) | |
tree | 092c6cec38b6e10e34b8340e2f2937521928d2ca /print/dvi2xx | |
parent | Update so that classes.zip is taken from the JDK, not included in (diff) |
Change from the custom perl FTP library to use fetch instead.
Submitted by: jmz
Notes
Notes:
svn path=/head/; revision=3299
Diffstat (limited to 'print/dvi2xx')
-rw-r--r-- | print/dvi2xx/Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/print/dvi2xx/Makefile b/print/dvi2xx/Makefile index 09d9faf19961..94572b9e3c24 100644 --- a/print/dvi2xx/Makefile +++ b/print/dvi2xx/Makefile @@ -3,7 +3,7 @@ # Date created: 14 October 1994 # Whom: jmz # -# $Id: Makefile,v 1.8 1995/11/15 03:31:36 asami Exp $ +# $Id: Makefile,v 1.9 1995/11/22 13:17:59 asami Exp $ # DISTNAME= dvi2xx @@ -15,13 +15,27 @@ MAINTAINER= jmz@FreeBSD.ORG #other equivalent sites: ftp.shsu.edu ftp.dante.de CTAN?= ftp.tex.ac.uk -FTPGET= ${FILESDIR}/ftpget -dvi2xx.tar.gz: - @${FTPGET} ${CTAN} /tex-archive/dviware dvi2xx.tar.gz ${DISTDIR}/$@ +do-fetch: + @if [ ! -d ${DISTDIR} ]; then ${MKDIR} -p ${DISTDIR}; fi + @(cd ${DISTDIR}; \ + if [ ! -f ${DISTFILES} -a ! -f `${BASENAME} ${DISTFILES}` ]; then \ + if [ -h ${DISTFILES} -o -h `${BASENAME} ${DISTFILES}` ]; then \ + ${ECHO_MSG} ">> ${DISTDIR}/${DISTFILES} is a broken symlink."; \ + ${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \ + ${ECHO_MSG} ">> Please correct this problem and try again."; \ + exit 1; \ + fi ; \ + ${ECHO_MSG} ">> ${DISTFILES} doesn't seem to exist on this system."; \ + ${ECHO_MSG} ">> Attempting to fetch from ${CTAN}."; \ + if ${FETCH_CMD} -h ${CTAN} -c /tex-archive/dviware -f ${DISTFILES}; then \ + exit 0; \ + fi; \ + ${ECHO_MSG} ">> Couldn't fetch it - please try to retreive this";\ + ${ECHO_MSG} ">> port manually into ${DISTDIR} and try again."; \ + exit 1; \ + fi) -pre-fetch: - @chmod +x ${FTPGET} pre-install: @mkdir -p ${PREFIX}/lib/dvi2xx @@ -29,6 +43,4 @@ pre-install: @(cd ${WRKSRC}; install -c -m 644 2up.sty graybox.sty lj3-filter \ printcap.sample sample2.tex testpage.tex ${PREFIX}/lib/dvi2xx/) -.include "Makefile.inc" - .include <bsd.port.mk> |