diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2001-08-26 03:27:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2001-08-26 03:27:12 +0000 |
commit | 8eae4adcc3f2ca8d68e42305f860c7a0bfe53885 (patch) | |
tree | e356e0aad7df5e5f670865b6ba36a1d65be1f5f8 /distrib | |
parent | d61979efbf6f2a17a3cfc9e3b09eec9a31a9a7bc (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.awk | 6 |
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; } { |