[FGS] Some modules don't install with self-installer

shawn barnes sbarnes at dmsolutions.ca
Mon Jul 16 14:59:33 EDT 2007


Daniel,

You beat me to the punch.  :)  Shift should work.  All positional
parameters shift one to the left, turning $2 into $1, etc.


shift
$FGS_HOME/etc/fgs/install.sh $FGS_HOME $MODULES_SRC $FIRST_MODULE $*



Daniel Morissette wrote:
> Frank Warmerdam wrote:
>>
>> But if there were more than six packages in the installer the rest were
>> ignored unless one of the first six depended on them.  I'm committing a
>> change to use:
>>
>> $FGS_HOME/etc/fgs/install.sh $FGS_HOME $MODULES_SRC $FIRST_MODULE $2
>> $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21
>> $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 $32 $33 $34 $35 $36 $37 $38 $39
>>
>> But if anyone knows a better syntax for all the rest of the arguments
>> except
>> for $1, then I'd be pleased if they did a better fix.
>>
> 
> Untested suggestion:
> 
> I think you could use 'shift' that would rename $2 -> $1, $3 -> $2, etc...
> 
> and then you'd use:
> 
> $FGS_HOME/etc/fgs/install.sh $FGS_HOME $MODULES_SRC $FIRST_MODULE $*
> 
> Daniel



More information about the Foss-gis-suite mailing list