pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/rio * Substitute for @SH@ as well as @AWK@ per d...
details: https://anonhg.NetBSD.org/pkgsrc/rev/036f7125f6ff
branches: trunk
changeset: 530027:036f7125f6ff
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Jun 15 15:13:34 2007 +0000
description:
* Substitute for @SH@ as well as @AWK@ per de facto standards for
installed shell scripts.
* Generate the to-be-installed script at build time, not at install time.
We "build" for a reason -- to see what's going to be installed before
we actually install it.
diffstat:
audio/rio/Makefile | 6 +++---
audio/rio/files/find-lpt-port | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 3a3f52ce0233 -r 036f7125f6ff audio/rio/Makefile
--- a/audio/rio/Makefile Fri Jun 15 14:57:10 2007 +0000
+++ b/audio/rio/Makefile Fri Jun 15 15:13:34 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/02/22 19:26:07 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2007/06/15 15:13:34 jlam Exp $
#
DISTNAME= rio007
@@ -23,12 +23,12 @@
do-build:
cd ${WRKSRC} && ${CXX} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} app.cpp rio.cpp -o rio
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/find-lpt-port > ${WRKSRC}/find-lpt-port.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rio ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/rio
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/rio
- ${SED} -e 's|@AWK@|${AWK}|g' ${FILESDIR}/find-lpt-port > ${PREFIX}/bin/find-lpt-port
- ${CHMOD} 755 ${PREFIX}/bin/find-lpt-port
+ ${INSTALL_SCRIPT} ${WRKSRC}/find-lpt-port.sh ${PREFIX}/bin/find-lpt-port
.include "../../mk/bsd.pkg.mk"
diff -r 3a3f52ce0233 -r 036f7125f6ff audio/rio/files/find-lpt-port
--- a/audio/rio/files/find-lpt-port Fri Jun 15 14:57:10 2007 +0000
+++ b/audio/rio/files/find-lpt-port Fri Jun 15 15:13:34 2007 +0000
@@ -1,5 +1,6 @@
-#! /bin/sh
-# $NetBSD: find-lpt-port,v 1.1 2000/01/11 11:32:11 agc Exp $
+#!@SH@
+#
+# $NetBSD: find-lpt-port,v 1.2 2007/06/15 15:13:34 jlam Exp $
#
# Small shell script to find the lpt port easily
Home |
Main Index |
Thread Index |
Old Index