mercurial in OS 10.4.11 (was imread/imwrite)
David Bateman
David.Bateman at motorola.com
Fri Jun 20 02:49:46 CDT 2008
Thomas L. Scofield wrote:
>
> I've been using some scripts that Ben Abbott supplied me with. The
> main script is
>
> cd ~/devel/mercurial/octave
> hg update -C default
> cd ..
> if [ -d "octave-3.0.0" ]; then
> rm -r octave-3.0.0
> fi
> if [ -f "octave-3.0.0.tar.gz" ]; then
> rm octave-3.0.0.tar.gz
> fi
> cp -r octave octave-3.0.0
> cd octave-3.0.0
> ../osx_fix.sh
> ./autogen.sh
> cd ..
> tar cvzf octave-3.0.0.tar.gz octave-3.0.0
> md5 octave-3.0.0.tar.gz
> echo "(1) Add md5 to octave.info"
> mate "/sw/fink/10.4/local/main/finkinfo/sci/octave.info"
> sudo cp octave-3.0.0.tar.gz /sw/src/.
> sudo fink rebuild octave
> sudo fink remove octave
> sudo fink install octave
>
>
> while the osx_fix.sh script does as he describes in this note to
> Maintainers
>
> http://www.cae.wisc.edu/pipermail/octave-maintainers/2008-April/006941.html
>
>
> Things progress along quite well for some time into the "make"
> process. Here are the last few lines of output:
>
> make -C src all
> making DASPK-opts.cc from ../liboctave/DASPK-opts.in
> making DASRT-opts.cc from ../liboctave/DASRT-opts.in
> making DASSL-opts.cc from ../liboctave/DASSL-opts.in
> making LSODE-opts.cc from ../liboctave/LSODE-opts.in
> making NLEqn-opts.cc from ../liboctave/NLEqn-opts.in
> making Quad-opts.cc from ../liboctave/Quad-opts.in
> making defaults.h from defaults.h.in
> making graphics.h
> awk: syntax error at source line 413 in function emit_source source
> file ./genprops.awk
> context is
> dval = gensub >>> (/^.*\{(.*)\}.*$/, <<< "\"\\1\"",
> "g", dval);
> awk: illegal statement at source line 414 in function emit_source
> source file ./genprops.awk
> awk: syntax error at source line 439 source file ./genprops.awk
> make[2]: *** [graphics.h] Error 2
> make[1]: *** [src] Error 2
> make: *** [all] Error 2
> ### execution of /var/tmp/tmp.2.W8ECNr failed, exit code 2
You need "gawk" and not "awk" to be used.. Unfortunately the
genprops.awk script uses a "gawk"-ism and there is no obvious way to
remove. However, I'd be all for making genprops.awk vanilla awk
compatible if possible.
http://www.nabble.com/Again-error-with-graphics.h-to17487289.html
where its explained the issue is related to the gensub versus gsub
functions in gawk.
D.
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Octave-maintainers
mailing list