Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATH: zsh-3.1.5-pws-14: _long_options + _configure
- X-seq: zsh-workers 6014
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATH: zsh-3.1.5-pws-14: _long_options + _configure
- Date: Tue, 13 Apr 1999 15:42:27 +0400
- Importance: Normal
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
This tries to add some flexibility to _long_options. Two options are added:
-i list of patterns. Options, matching these patterns, are ignored (removed
from --help output). Intended usage is
_long_options -i '(--(enable|disable)-FEATURE*)'
-s list of pattern/replacement pairs (remotely from "same" :-) This tries
to amend the problem with configure listing only one form
(e.g. --enable-xxx) but accepting both --enable-xxx and --disable-xxx
_long_options -s '(#--enable- --disable- #--disable- --enable)'
This looks ugly and more like a hack - sorry, I could not find better way to
do it. In such form this needs the 6002 patch of Bart.
I also commented out restriction on option names. There are quite a number
of packages that use capitals for feature names (ntpd is good example). What
was the reason for this restriction at all?
cheers
/andrej
P.S. I try to make Outlook to send UUencoded patch; let's see, if it works
:-)
begin 666 _long.patch
M+2TM("]H;VUE+V)O<B\N>G-H+F0O0V]M<&QE=&EO;B]"87-E+U]L;VYG7V]P
M=&EO;G,)5'5E($%P<B Q,R Q-3HS,#HS,B Q.3DY"BLK*R!#;VUP;&5T:6]N
M+T)A<V4O7VQO;F=?;W!T:6]N<PE4=64@07!R(#$S(#$R.C$R.C$T(#$Y.3D*
M0$ @+3,R+#(U("LS,BPQ,B! 0 H@(R!F;W(@;W!T:6]N(&1E<V-R:7!T:6]N
M<R!C;VYT86EN:6YG(& ]1DE,12<@86YD('!A=&AS(&9O<B!O<'1I;VX*(",@
M9&5S8W)I<'1I;VYS('1H870@8V]N=&%I;B!@/41)4B<@;W(@8#U0051()RX@
M5&AE<V4@8G5I;'1I;B!P871T97)N<PH@(R!C86X@8F4@;W9E<G)I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S90HM(" @(" @(" @(" @("!S;W!T<STH("1[*% I)'M/4%1!4D=]?2 I
M"BT)(" @(&9I"BT@(" @(" [.PH@(" @(&5S86,*(" @9&]N90H@("!S:&EF
M="!/4%1)3D0M,0I 0" M,3 R+#<@*S<W+#8@0$ *(" @*"@@)"M?;&]?8V%C
M:&5?86-T:6]N<R I*2 F)B!U;G-E=" B)%]L;U]C86-H95]N86UE<UM 72(@
M7VQO7V-A8VAE7V%C=&EO;G,@7VQO7V-A8VAE7VYA;65S"B *(" @;&]C86P@
M;W!T<R!P871T97)N(&%N=6T],2!T;7!O('-T<@HM("!T>7!E<V5T("U5(&]P
M=',*( H@(" C($YO=R!G970@=&AE(&QO;F<@;W!T:6]N(&YA;65S(&)Y(&-A
M;&QI;F<@=&AE(&-O;6UA;F0@=VET:"!@+2UH96QP)RX*(" @(R!4:&4@<&%R
M86UE=&5R(&5X<&%N<VEO;B!T<FEC:V5R>2!F:7)S="!G971S('1H92!L:6YE
M<R!A<R!S97!A<F%T90I 0" M,3$S+#(T("LX-RPQ,2! 0 H@(" C('1H92!O
M;&0@87)R87D@96QE;65N=',@=VET:"!N97=L:6YE<R!B971W965N('1H96TN
M(%1H96X@=V4@<V5L96-T"B @(",@=&AO<V4@96QE;65N=',@=&AA="!S=&%R
M="!W:71H('1W;R!H>7!H96YS+"!R96UO=F4@86YY=&AI;F<@=7 @=&\*(" @
M(R!T:&]S92!H>7!H96YS(&%N9"!A;GET:&EN9R!F<F]M('1H92!S<&%C92!O
M<B!C;VUM82!A9G1E<B!T:&4*+2 @(R!O<'1I;VX@=7 @=&\@=&AE(&5N9"X@
M"BT*+2 @;W!T<STH(BTM)'LH0"E>)'LH0"DD>RA 32DD>RA <',Z7&XZ:CI<
M;CHI)'LH0"DD>RA 32DD>RA 9BDD*"(D=V]R9'-;,5TB("TM:&5L<"E].B-;
M( E=(RTJ?2\O+"\*+7U].B-;( E=(RTM*GTC*BTM?24E6RP@72I](BD*+0HM
M(" C($YO=R!R96UO=F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1[*$ I)'LH0"ET;7 E)5P]*GTO+UM>82UZ,"TY+5U](BD**R @
M("!T;7 ]*"(D>RA *21[*$ I=&UP)25</2I]+R];7F$M>C M.2U=?2(I"B @
M(" @:68@*"@@)"-T;7 @*2D[('1H96X*(" @(" @(%]L;U]C86-H95]N86UE
M<UMA;G5M73TB)&YA;64B"B @(" @("!?;&]?8V%C:&5?86-T:6]N<UMA;G5M
M73TB)&%C=&EO;B(*+2TM("]H;VUE+V)O<B\N>G-H+F0O0V]M<&QE=&EO;B]5
M<V5R+U]C;VYF:6=U<F4)5'5E($%P<B Q,R Q-#HU-#HU,2 Q.3DY"BLK*R!#
M;VUP;&5T:6]N+U5S97(O7V-O;F9I9W5R90E-;VX@36%R(#(Y(#$W.C$T.C,R
M(#$Y.3D*0$ @+3$L.2 K,2PT($! "B C8V]M<&1E9B!C;VYF:6=U<F4*( HM
M7VQO;F=?;W!T:6]N<R M:2 G*"TM*&1I<V%B;&5\96YA8FQE*2U&14%455)%
M*B M+2AW:71H?'=I=&AO=70I+5!!0TM!1T4J*2<@7 HM(" @(" @(" @(" @
M(" M<R G*",M+61I<V%B;&4M("TM96YA8FQE+0HM"2 @(" @(" @(" @(RTM
M96YA8FQE+2 M+61I<V%B;&4M"BT)"2 @(",M+7=I=&@M("TM=VET:&]U="T*
M+0D)(" @(RTM=VET:&]U="T@+2UW:71H+2DG(%P*+0D@(" @(" G*CTH17PI
M4%)%1DE8*B<@)U]F:6QE<R M+R<@7 HK7VQO;F=?;W!T:6]N<R G*CTH17PI
M4%)%1DE8*B<@)U]F:6QE<R M+R<@7 H@(" @(" @(" @(" @(" G*CU04D]'
:4D%-*B<@(" @)U]C;VUM86YD7VYA;65S)PH`
`
end
Messages sorted by:
Reverse Date,
Date,
Thread,
Author