summaryrefslogtreecommitdiff
path: root/editors/jed
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-25 19:31:10 +0000
committeragc <agc@pkgsrc.org>2001-10-25 19:31:10 +0000
commitabe131a03c1a397c37a6d3d9afaf29da24199745 (patch)
treea9a456024dba9182731d78801168a3f2d2eb56a0 /editors/jed
parent3bd1b1d2e210a95d8c1777fe6082b56af972f887 (diff)
downloadpkgsrc-abe131a03c1a397c37a6d3d9afaf29da24199745.tar.gz
Move post-install commands from a script to a Makefile target, and
do the post-install target a bit more efficiently. Remove unnecessary script file.
Diffstat (limited to 'editors/jed')
-rw-r--r--editors/jed/Makefile9
-rw-r--r--editors/jed/scripts/post-install17
2 files changed, 8 insertions, 18 deletions
diff --git a/editors/jed/Makefile b/editors/jed/Makefile
index 1684cc3a280..5e9ea006228 100644
--- a/editors/jed/Makefile
+++ b/editors/jed/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2001/10/21 11:44:23 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2001/10/25 19:31:10 agc Exp $
#
DISTNAME= jed-B0.99-15
@@ -19,6 +19,13 @@ CONFIGURE_ARGS+= --without-X
WRKSRC= ${WRKDIR}/jed-B0.99-15
post-install:
+ echo "Installing lib files"
+ cd ${WRKSRC}; \
+ for dir in lib info doc; do \
+ echo "Installing $$dir files"; \
+ ${PAX} -rwpe $$dir ${PREFIX}/share/jed; \
+ done
+ ${RM} -f ${PREFIX}/share/jed/doc/jed.1 ${PREFIX}/share/jed/doc/rgrep.1
${RMDIR} ${PREFIX}/share/jed/bin
.include "../../mk/bsd.pkg.mk"
diff --git a/editors/jed/scripts/post-install b/editors/jed/scripts/post-install
deleted file mode 100644
index d3405d83fa8..00000000000
--- a/editors/jed/scripts/post-install
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-# $NetBSD: post-install,v 1.2 1998/11/01 14:55:37 hwr Exp $
-echo "Installing lib files"
-cd ${WRKSRC}
-tar cf - lib | (cd ${PREFIX}/share/jed ; tar xf - )
-echo "Installing info files"
-tar cf - info | (cd ${PREFIX}/share/jed ; tar xf - )
-echo "Installing doc files"
-tar cf - doc | (cd ${PREFIX}/share/jed ; tar xf - )
-if [ -f ${PREFIX}/share/jed/doc/jed.1 ]
-then
- rm ${PREFIX}/share/jed/doc/jed.1
-fi
-if [ -f ${PREFIX}/share/jed/doc/rgrep.1 ]
-then
- rm ${PREFIX}/share/jed/doc/rgrep.1
-fi