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

Rob Park rbpark at ualberta.ca
Tue Sep 21 04:28:08 BST 2004


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.


More information about the ptX mailing list