summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-08-26 03:27:12 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-08-26 03:27:12 +0000
commit8eae4adcc3f2ca8d68e42305f860c7a0bfe53885 (patch)
treee356e0aad7df5e5f670865b6ba36a1d65be1f5f8 /distrib
parentd61979efbf6f2a17a3cfc9e3b09eec9a31a9a7bc (diff)
Final tweak to i386 list2sh.awk SPECIAL handling - consolidate print
statements. Use as base for other architectures to improve comment eradication/space reclamation in scripts on boot floppies.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/i386/floppies/list2sh.awk6
1 files changed, 2 insertions, 4 deletions
diff --git a/distrib/i386/floppies/list2sh.awk b/distrib/i386/floppies/list2sh.awk
index 9b8a0dc562e..54a00816727 100644
--- a/distrib/i386/floppies/list2sh.awk
+++ b/distrib/i386/floppies/list2sh.awk
@@ -1,4 +1,4 @@
-# $OpenBSD: list2sh.awk,v 1.6 2001/08/23 02:37:02 krw Exp $
+# $OpenBSD: list2sh.awk,v 1.7 2001/08/26 03:27:11 krw Exp $
BEGIN {
printf("cd ${CURDIR}\n");
@@ -52,10 +52,8 @@ $1 == "COPYDIR" {
}
$1 == "SPECIAL" {
printf("echo '%s'\n", $0);
- printf("(cd ${TARGDIR};");
sub(/^[ \t]*SPECIAL[ \t]*/, "");
- printf(" %s", $0);
- printf(")\n");
+ printf("(cd ${TARGDIR}; %s)\n", $0);
next;
}
{