[postgis-devel] Error building extensions

Jose Carlos Martinez jomarlla at cgf.upv.es
Wed Feb 1 10:43:08 PST 2012


Could be the sed command is not working after adding the alpha text?

EXTVERSION    = 2.0.0alpha3SVN

Anyways Im not an expert in shell scripting so I ll wait for PostGIS 
people to fix it if its a bug.
cheers,


On 01/02/2012 19:37, Jose Carlos Martinez wrote:
> On 01/02/2012 19:17, Greg Troxel wrote:
>> The question is what shell is /bin/sh, not what your shell is, I think,
>> for shell code run by make.
>>
>>    A previous release r8893 was working before.  Now with the same
>>    machine r8999 is not working.
>>
>> that's only 7 bisection steps :-)
> The problem is this line
> while [[ $$v -le $(MICRO_PREV) ]]; do \
>
> MICRO_PREV I think was taking different values between releases.
> with r8999 in my machine is empty
> with r8893 in was not empy
>
> anyways with
> while [[ $$v -le "$(MICRO_PREV)" ]]; do \
> as you said is working.
>
> Maybe the problem is coming from this variable (MICRO_NUMBER is not a 
> number)
> Here, the EXTVERSION    = 2.0.0SVN
> MICRO_NUMBER  = $(shell echo $(EXTVERSION) | sed 
> "s/[0-9]\.[0-9]\.\([0-9]*\)[a-zA-Z]*[0-9]*/\1/")
>
> expr: non-integer argument
> expr: non-integer argument
> if test "3SVNx" != "x"; then \
>    v=; \
>    while [[ $v -ge 1 ]]; do \
>        cat ../postgis_extension_helper.sql > 
> sql/postgis_topology--2.0.0alphaSVN$v--2.0.0alpha3SVN.sql; \
>        v=$(($v-1)); \
>      done; \
> else \
>   if test 0SVN -gt 0; then \
>    v=0; \
>    while [[ $v -le "" ]]; do \
>            cat ../postgis_extension_helper.sql > 
> sql/postgis_topology--2.0.0alphaSVN$v--2.0.0alpha3SVN.sql; \
>        v=$(($v+1)); \
>     done; \
>   fi; \
>  fi
>
>
>
>
> Regards,
>
>
>
>
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel




More information about the postgis-devel mailing list