From 8eae4adcc3f2ca8d68e42305f860c7a0bfe53885 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 26 Aug 2001 03:27:12 +0000 Subject: 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. --- distrib/i386/floppies/list2sh.awk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'distrib/i386/floppies/list2sh.awk') 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; } { -- cgit v1.2.3