Source-Changes-HG archive

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

[src/trunk]: src Set RELTOP to '.' if that's where we are.



details:   https://anonhg.NetBSD.org/src/rev/0de78f429145
branches:  trunk
changeset: 485819:0de78f429145
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sat May 06 15:05:15 2000 +0000

description:
Set RELTOP to '.' if that's where we are.

diffstat:

 Makefile.inc |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 39db95f8d615 -r 0de78f429145 Makefile.inc
--- a/Makefile.inc      Sat May 06 14:35:28 2000 +0000
+++ b/Makefile.inc      Sat May 06 15:05:15 2000 +0000
@@ -1,9 +1,13 @@
-#      $NetBSD: Makefile.inc,v 1.2 2000/05/03 00:08:13 sjg Exp $
+#      $NetBSD: Makefile.inc,v 1.3 2000/05/06 15:05:15 sjg Exp $
 
 .ifndef ABSTOP
 ABSTOP!= cd ${.PARSEDIR}; pwd
 
+.if (${.PARSEDIR} == ${.CURDIR})
+RELTOP:= .
+.else
 RELTOP:= ${.PARSEDIR:S,^${.CURDIR},,}
+.endif
 
 KERNSRCDIR:=${ABSTOP}/sys
 



Home | Main Index | Thread Index | Old Index