mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
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.
This commit is contained in:
parent
c4f10127f9
commit
e858136eb6
@ -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;
|
||||
}
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user