[ptx] autopano-sift-1.6-win-1.zip, No more Gtk#. Windows users please test :)

Guillaume Filion gfk at logidac.com
Tue Sep 21 23:27:46 BST 2004


Le 04-09-20, à 23:28, Rob Park a écrit :
> Guillaume Filion wrote:
>> The -r flag for GNU sed is for "extended regular expressions in the 
>> script." Since perl is included by default on MacOSX, you could 
>> replace the sed script by a perl script.
>> So, on line 64 of autopano-complete.sh, you should be able to replace 
>> the following:
>> FILENAME=$(echo -n $arg | sed -r 's at .+/([^/]+$)@\1@').key.gz
>> by this (all on one line):
>> FILENAME=$(echo -n $arg | perl -n -e 
>> 's at .+/([^/]+$)@\1@;print;').key.gz
>> At least it works on my PowerBook with OSX 10.3.5.
>
> Is this even necessary? All this regex does is strips off the path. 
> The line could just as easily be replaced with:
>
> FILENAME=$(basename $arg).key.gz
>
> Although I'm not sure if OSX has the 'basename' command or not.

Yeah, you're right. And basename is included in OSX.

I'll go to sleep a little smarter tonight. 8)
GFK's
-- 
Guillaume Filion, ing. jr
Logidac Tech., Beaumont, Québec, Canada - http://logidac.com/
PGP Key and more: http://guillaume.filion.org/



More information about the ptX mailing list