diff options
Diffstat (limited to 'distrib/miniroot/list2sh.awk')
-rw-r--r-- | distrib/miniroot/list2sh.awk | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/distrib/miniroot/list2sh.awk b/distrib/miniroot/list2sh.awk index 8fce89bffd7..2fa6f0b6e51 100644 --- a/distrib/miniroot/list2sh.awk +++ b/distrib/miniroot/list2sh.awk @@ -1,4 +1,4 @@ -# $NetBSD: list2sh.awk,v 1.1 1995/12/18 22:47:30 pk Exp $ +# $NetBSD: list2sh.awk,v 1.2 1996/05/04 15:45:31 pk Exp $ BEGIN { printf("cd ${OBJDIR}\n"); @@ -16,14 +16,30 @@ $1 == "COPY" { } $1 == "LINK" { printf("echo '%s'\n", $0); - printf("rm -f ${TARGDIR}/%s\n", $3); - printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3); + for (i = 3; i <= NF; i++) { + printf("rm -f ${TARGDIR}/%s\n", $i); + printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $i); + } next; } $1 == "SYMLINK" { printf("echo '%s'\n", $0); - printf("rm -f ${TARGDIR}/%s\n", $3); - printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $3); + for (i = 3; i <= NF; i++) { + printf("rm -f ${TARGDIR}/%s\n", $i); + printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $i); + } + next; +} +$1 == "ARGVLINK" { + # crunchgen directive; ignored here + next; +} +$1 == "SRCDIRS" { + # crunchgen directive; ignored here + next; +} +$1 == "CRUNCHSPECIAL" { + # crunchgen directive; ignored here next; } $1 == "COPYDIR" { |