On 6/11/12 6:48 PM, Alexander Hansen wrote: > On 6/11/12 4:30 PM, Peter Dyballa wrote: >> >> >> • declare a variable name, say u (and preset it with something unlikely) >> • set it automatically with a useful value (u=`echo "%v" | awk -F- >> '{print $1}'`) >> • use it (Files: lib/ImageMagick-%u/modules-Q16/coders/svg.*) >>
And I'll add with respect to your second point that _none_ of fink's existing percent expansions work even close to that way. There's no way to set a percent expansion via a *Script. They are _only_ set as fields in the .info file. I will admit that I would have liked being able to use Type: v (%v) in contexts where I need the version without the '.' separators, but I get by. Everybody else just deals with using perl, sed, or another editor to change their .info files. It's pretty easy to change a Type via a regular expression since there can be only one Type line in a .info file. In any case, feel free to write an extension to fink to support setting percent expansion variables in a script. -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/2012/02/21/got-job/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users