diff options
author | jlam <jlam@pkgsrc.org> | 2004-08-28 05:51:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-08-28 05:51:30 +0000 |
commit | 41f344f4bc2901e765846b8197a7caa57289c833 (patch) | |
tree | f5bb1f44ee529b7320348990741b6c2a2a7ffd5d /mk | |
parent | c81b5b48986968785786919124cb5eb7024b7f1c (diff) | |
download | pkgsrc-41f344f4bc2901e765846b8197a7caa57289c833.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.
Diffstat (limited to 'mk')
-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 } |