Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/lorder Patch lorder with the host's working shell. Id...



details:   https://anonhg.NetBSD.org/src/rev/6df414cc6435
branches:  trunk
changeset: 536420:6df414cc6435
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 15 17:05:26 2002 +0000

description:
Patch lorder with the host's working shell.  Idea from Chris Demetriou.

diffstat:

 tools/lorder/Makefile |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 05fd8273c815 -r 6df414cc6435 tools/lorder/Makefile
--- a/tools/lorder/Makefile     Sun Sep 15 17:04:12 2002 +0000
+++ b/tools/lorder/Makefile     Sun Sep 15 17:05:26 2002 +0000
@@ -1,11 +1,23 @@
-#      $NetBSD: Makefile,v 1.4 2001/11/19 04:47:43 perry Exp $
+#      $NetBSD: Makefile,v 1.5 2002/09/15 17:05:26 thorpej Exp $
+
+.include <bsd.own.mk>
+
+COMPATOBJ!=    cd ${.CURDIR}/../compat && ${PRINTOBJDIR}
+.-include      "${COMPATOBJ}/defs.mk"
 
 TIMESTAMP=     ${TOOLDIR}/bin/nblorder
 
+CLEANFILES+=   lorder
+
 .PATH: ${.CURDIR}/../../usr.bin/lorder
 
 .include <bsd.hostprog.mk>
 
 install: ${TIMESTAMP}
-${TIMESTAMP}: lorder.sh
+${TIMESTAMP}: lorder
        ${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
+
+lorder: lorder.sh
+       sed -e "s,/bin/sh,${HOST_BSHELL},g" < ${.ALLSRC} > ${.TARGET}
+
+realall: lorder



Home | Main Index | Thread Index | Old Index