diff options
Diffstat (limited to 'distrib/vax/list2sh.awk')
-rw-r--r-- | distrib/vax/list2sh.awk | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/distrib/vax/list2sh.awk b/distrib/vax/list2sh.awk index 2ad8bb69416..9319f40e0ad 100644 --- a/distrib/vax/list2sh.awk +++ b/distrib/vax/list2sh.awk @@ -1,4 +1,4 @@ -# $OpenBSD: list2sh.awk,v 1.4 2001/02/24 10:55:02 hugh Exp $ +# $OpenBSD: list2sh.awk,v 1.5 2001/08/29 15:01:17 krw Exp $ BEGIN { printf("cd ${CURDIR}\n"); @@ -48,10 +48,8 @@ $1 == "COPYDIR" { } $1 == "SPECIAL" { printf("echo '%s'\n", $0); - printf("(cd ${TARGDIR};"); - for (i = 2; i <= NF; i++) - printf(" %s", $i); - printf(")\n"); + sub(/^[ \t]*SPECIAL[ \t]*/, ""); + printf("(cd ${TARGDIR}; %s)\n", $0); next; } { |