diff options
author | jlam <jlam> | 2004-08-28 05:51:30 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-08-28 05:51:30 +0000 |
commit | 2c4761ed75f648101d4f84bb9900f54d9aa7bfcc (patch) | |
tree | f5bb1f44ee529b7320348990741b6c2a2a7ffd5d | |
parent | c09d27a47b1f1b116d57ba973ffd1ed9429ec2ae (diff) | |
download | pkgsrc-2c4761ed75f648101d4f84bb9900f54d9aa7bfcc.tar.gz |
Add "rm:opt" as a synonym for "S:opt:", and "rmdir:dir" for "r:dir".
These are supported options from the soon-to-be-committed wrapper
framework and are meant to more precisely state the intended
transformation. Also just skip over unknown commands instead of
generating an error.
-rw-r--r-- | mk/buildlink3/gen-transform.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/buildlink3/gen-transform.sh b/mk/buildlink3/gen-transform.sh index 0de88add302..870961639ca 100644 --- a/mk/buildlink3/gen-transform.sh +++ b/mk/buildlink3/gen-transform.sh @@ -1,6 +1,6 @@ #!@BUILDLINK_SHELL@ # -# $NetBSD: gen-transform.sh,v 1.29 2004/08/27 06:29:09 jlam Exp $ +# $NetBSD: gen-transform.sh,v 1.30 2004/08/28 05:51:30 jlam Exp $ transform="@_BLNK_TRANSFORM_SEDFILE@" untransform="@_BLNK_UNTRANSFORM_SEDFILE@" @@ -272,6 +272,9 @@ EOF gen $action $r:-Wl,-R$2 gen $action $r:-R$2 ;; + rmdir) + gen $action r:$2 + ;; S) case "$action" in transform|untransform) @@ -282,6 +285,9 @@ EOF ;; esac ;; + rm) + gen $action S:$2: + ;; s) case "$action" in transform|untransform) @@ -293,7 +299,6 @@ EOF ;; *) echo "Unknown arg: $arg" 1>&2 - exit 1 ;; esac } |