Source-Changes-HG archive

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

[src/trunk]: src/sbin if RESCUEDIR is defined, set _PATH_RESCUE to that



details:   https://anonhg.NetBSD.org/src/rev/d2469284d2ee
branches:  trunk
changeset: 535590:d2469284d2ee
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Aug 23 03:19:07 2002 +0000

description:
if RESCUEDIR is defined, set _PATH_RESCUE to that

diffstat:

 sbin/fsck/Makefile  |  6 +++++-
 sbin/mount/Makefile |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 1fc2ccf0e8f6 -r d2469284d2ee sbin/fsck/Makefile
--- a/sbin/fsck/Makefile        Fri Aug 23 03:17:18 2002 +0000
+++ b/sbin/fsck/Makefile        Fri Aug 23 03:19:07 2002 +0000
@@ -1,7 +1,11 @@
-#      $NetBSD: Makefile,v 1.14 1996/09/27 22:38:37 christos Exp $
+#      $NetBSD: Makefile,v 1.15 2002/08/23 03:19:07 lukem Exp $
 
 PROG=  fsck
 SRCS=  fsck.c fsutil.c preen.c
 MAN=   fsck.8
 
+.if defined(RESCUEDIR)
+CPPFLAGS+= -D_PATH_RESCUE=\"${RESCUEDIR}\"
+.endif
+
 .include <bsd.prog.mk>
diff -r 1fc2ccf0e8f6 -r d2469284d2ee sbin/mount/Makefile
--- a/sbin/mount/Makefile       Fri Aug 23 03:17:18 2002 +0000
+++ b/sbin/mount/Makefile       Fri Aug 23 03:19:07 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.21 2002/08/19 10:16:55 lukem Exp $
+#      $NetBSD: Makefile,v 1.22 2002/08/23 03:19:08 lukem Exp $
 #      @(#)Makefile    8.6 (Berkeley) 5/8/95
 
 .include <bsd.own.mk>
@@ -14,6 +14,10 @@
 SRCS+= getmntopts.c fattr.c checkname.c
 CPPFLAGS+= -I${.CURDIR} -DMOUNT_NOMAIN
 
+.if defined(RESCUEDIR)
+CPPFLAGS+= -D_PATH_RESCUE=\"${RESCUEDIR}\"
+.endif
+
 # Note: mount_portal is excluded by purpose, mainly because it contains
 # more stuff and hence cannot be made to export only mount_FOO() symbol
 MOUNT_PROGS=   mount_ados mount_cd9660 mount_ext2fs mount_fdesc mount_ffs \



Home | Main Index | Thread Index | Old Index