Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/config Allow absolute path names for `object' files.
details: https://anonhg.NetBSD.org/src/rev/8a33089e3b7f
branches: trunk
changeset: 473176:8a33089e3b7f
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sun May 23 19:30:30 1999 +0000
description:
Allow absolute path names for `object' files.
diffstat:
usr.sbin/config/mkmakefile.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 85d5bf45a4ef -r 8a33089e3b7f usr.sbin/config/mkmakefile.c
--- a/usr.sbin/config/mkmakefile.c Sun May 23 17:59:39 1999 +0000
+++ b/usr.sbin/config/mkmakefile.c Sun May 23 19:30:30 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkmakefile.c,v 1.38 1999/03/30 12:36:50 mycroft Exp $ */
+/* $NetBSD: mkmakefile.c,v 1.39 1999/05/23 19:30:30 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -246,14 +246,17 @@
for (oi = allobjects; oi != NULL; oi = oi->oi_next) {
if ((oi->oi_flags & OI_SEL) == 0)
continue;
- len = strlen(oi->oi_path) + 3;
+ len = strlen(oi->oi_path);
+ if (*oi->oi_path != '/')
+ len += 3;
if (lpos + len > 72) {
if (fputs(" \\\n", fp) < 0)
return (1);
sp = '\t';
lpos = 7;
}
- if (fprintf(fp, "%c$S/%s", sp, oi->oi_path) < 0)
+ if (fprintf(fp, "%c%s%s", sp, *oi->oi_path != '/' ? "$S/" : "",
+ oi->oi_path) < 0)
return (1);
lpos += len + 1;
sp = ' ';
Home |
Main Index |
Thread Index |
Old Index