[postgis-devel] Building the extension on Solaris/amd64

Martin Spott Martin.Spott at mgras.net
Tue May 21 05:58:48 PDT 2013


Sandro Santilli wrote:
> On Tue, May 21, 2013 at 11:17:42AM +0000, Martin Spott wrote:
>> While we're at it:
>> 
>> --- postgis_restore.pl~       Tue May 21 04:11:45 2013
>> +++ postgis_restore.pl        Tue May 21 04:11:45 2013
>> @@ -58,7 +58,7 @@
>>  my $SRID_MAXIMUM = 999999;
>>  my $SRID_USER_MAXIMUM = 998999; 
>>  
>> -while (@ARGV && $ARGV[0] =~ /-/) {
>> +if (@ARGV && $ARGV[0] =~ /-/) {
>>    if ( $ARGV[0] eq '-v' ) {
>>      $DEBUG = 1;
>>      shift(@ARGV);
> 
> That would only process the first option, rather than all of them, no ?

"while" is a loop which requires some sort of input to work, but the
clause in braces doesn't return any input.  Therefore, as shipped in
SVN, it waits forever.

> PS: the source is postgis_restore.pl.in

Sorry,
	Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------



More information about the postgis-devel mailing list