From 2c4761ed75f648101d4f84bb9900f54d9aa7bfcc Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 28 Aug 2004 05:51:30 +0000 Subject: 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. --- mk/buildlink3/gen-transform.sh | 9 +++++++-- 1 file 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 } -- cgit v1.2.3