aboutsummaryrefslogtreecommitdiff
path: root/java/java-tutorial
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-05-06 00:14:04 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-05-06 00:14:04 +0000
commit5cf438851dc082df980e5415bcb898b7e4aa046f (patch)
tree7e617ce92b2cacab13a4f49401e2926c4412841a /java/java-tutorial
parentaa21a8c8c034237a16e8fb82cf227cc6cdf84d86 (diff)
downloadports-5cf438851dc082df980e5415bcb898b7e4aa046f.tar.gz
ports-5cf438851dc082df980e5415bcb898b7e4aa046f.zip
Change bsd.port.mk -> bsd.port.post.mk
Modify the method to make MESSAGE when we "make install" Noticed by: asami@FreeBSD.org (Satoshi - Ports Wraith - Asami)
Notes
Notes: svn path=/head/; revision=18526
Diffstat (limited to 'java/java-tutorial')
-rw-r--r--java/java-tutorial/Makefile14
-rw-r--r--java/java-tutorial/pkg-message6
2 files changed, 11 insertions, 9 deletions
diff --git a/java/java-tutorial/Makefile b/java/java-tutorial/Makefile
index 6fbbcb0b68b3..5a30cc35a18d 100644
--- a/java/java-tutorial/Makefile
+++ b/java/java-tutorial/Makefile
@@ -3,7 +3,7 @@
# Date created: Tue Mar 23 10:18:20 EET 1999
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
#
-# $Id: Makefile,v 1.2 1999/05/05 15:00:01 taoka Exp $
+# $Id: Makefile,v 1.3 1999/05/05 15:23:20 fenner Exp $
#
DISTNAME= tutorial
@@ -16,6 +16,7 @@ MAINTAINER= martti.kuparinen@ericsson.com
WRKSRC= ${WRKDIR}
RESTRICTED= "This software is under license and export control."
NO_BUILD= yes
+PKGMESSAGE= ${WRKDIR}/MESSAGE
.include <bsd.port.pre.mk>
@@ -23,12 +24,7 @@ do-install:
${MKDIR} ${PREFIX}/jdk1.1.7/docs/books/tutorial
(cd ${WRKSRC} && ${TAR} -cf - * ) \
| (cd ${PREFIX}/jdk1.1.7/docs/books/tutorial && ${TAR} -xf -)
+ @${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
-post-install:
- @${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE.tmpl > ${PKGDIR}/MESSAGE
- @${CAT} ${PKGDIR}/MESSAGE
-
-pre-clean:
- @-${RM} -f ${PKGDIR}/MESSAGE
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/java/java-tutorial/pkg-message b/java/java-tutorial/pkg-message
new file mode 100644
index 000000000000..38d27c572d46
--- /dev/null
+++ b/java/java-tutorial/pkg-message
@@ -0,0 +1,6 @@
+Here is a useful bookmark entry for your Web browser:
+
+The Java Tutorial:
+------------------
+file:!!PREFIX!!/jdk1.1.7/docs/books/tutorial/index.html
+