octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mercurial in OS 10.4.11 (was imread/imwrite)


From: Jaroslav Hajek
Subject: Re: mercurial in OS 10.4.11 (was imread/imwrite)
Date: Fri, 20 Jun 2008 11:14:09 +0200

On Fri, Jun 20, 2008 at 9:49 AM, David Bateman
<address@hidden> wrote:
> 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.
>


I believe the attached patch could work, because match should be POSIX
with all features included. Thomas, can you test it or tell me what
awk you have?
I'll try downloading some other awks to test this.

regards,

> D.
>
> --
> David Bateman                                address@hidden
> 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
>
>


-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

Attachment: genprops.awk.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]