[GRASS-dev] Can we release 6.2.3?

William Kyngesburye woklist at kyngchaos.com
Tue Nov 20 09:28:48 EST 2007


On Nov 20, 2007, at 6:49 AM, Markus Neteler wrote:

>>        May I suggest using `sed' here instead?  Like:
>>
>> MAJOR=`sed -q -e 1p include/VERSION`
>> MINOR=`sed -q -e 2p include/VERSION`
>> RELEASE=`sed -q -e 3p include/VERSION`
>
> Works only with a fix for me (-q not portable?):
>
> MAJOR=`sed --q -e 1p include/VERSION`
> MINOR=`sed --q -e 2p include/VERSION`
> RELEASE=`sed --q -e 3p include/VERSION`
> echo $MAJOR.$MINOR.$RELEASE
>

Looks like -q/--q is GNU sed-only.  I see -n in the BSD sed man page  
and in GNU sed.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan




More information about the grass-dev mailing list