diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-23 19:10:56 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-23 19:10:56 +0000 |
commit | f2eddf1056bcb160e8ad4e94fbf4037bfd16598f (patch) | |
tree | 3bb9f86733c728091dfd6a16d4457f19448cada3 /distrib/hp300/list2sh.awk | |
parent | dbcae50b6e4574e8e8a12b1ff2b1b81f7aab566d (diff) |
Checkpoint. This should be pretty close now, just gotta fix kernel
bugs.
Diffstat (limited to 'distrib/hp300/list2sh.awk')
-rw-r--r-- | distrib/hp300/list2sh.awk | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/distrib/hp300/list2sh.awk b/distrib/hp300/list2sh.awk index b48b9e468de..a374ddb9f6b 100644 --- a/distrib/hp300/list2sh.awk +++ b/distrib/hp300/list2sh.awk @@ -1,5 +1,5 @@ -# $OpenBSD: list2sh.awk,v 1.1 1997/02/16 18:19:57 downsj Exp $ -# $NetBSD: list2sh.awk,v 1.1 1995/07/18 04:12:59 briggs Exp $ +# $OpenBSD: list2sh.awk,v 1.2 1997/02/23 19:10:47 downsj Exp $ +# $NetBSD: list2sh.awk,v 1.1 1995/10/03 22:47:56 thorpej Exp $ BEGIN { printf("cd ${CURDIR}\n"); @@ -11,14 +11,30 @@ BEGIN { } $1 == "COPY" { printf("echo '%s'\n", $0); + printf("rm -f ${TARGDIR}/%s\n", $3); printf("cp %s ${TARGDIR}/%s\n", $2, $3); next; } $1 == "LINK" { printf("echo '%s'\n", $0); + printf("rm -f ${TARGDIR}/%s\n", $3); printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3); 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); + next; +} +$1 == "COPYDIR" { + printf("echo '%s'\n", $0); + printf("(cd ${TARGDIR}/%s && find . ! -name . | xargs /bin/rm -rf)\n", + $3); + printf("(cd %s && find . ! -name . | cpio -pdamu ${TARGDIR}/%s)\n", $2, + $3); + next; +} $1 == "SPECIAL" { printf("echo '%s'\n", $0); printf("(cd ${TARGDIR};"); |