On Sun, 7 Oct 2007 11:49:37 -0300 "Gustavo Sverzut Barbieri"
<[EMAIL PROTECTED]> babbled:

> On 10/5/07, The Rasterman Carsten Haitzler <[EMAIL PROTECTED]> wrote:
> > VER=1.2.3.045
> > ...
> > AM_INIT_AUTOMAKE(edje, $VER)
> > ...
> > VMAJ=`echo $VER | awk -F . '{printf("%s", $1);}'`
> > VMIN=`echo $VER | awk -F . '{printf("%s", $2);}'`
> > VMIC=`echo $VER | awk -F . '{printf("%s", $3);}'`
> > SNAP=`echo $VER | awk -F . '{printf("%s", $4);}'`
> > version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
> > AC_SUBST(version_info)
> 
> after I saw the commit it come to my mind:
> 
> > VMAJ=`echo $VER | awk -F . '{printf("%s", $1);}'`
> 
> could use "cut" instead of the awk: echo $VER | cut -d. -f1
> 
> also, is it really $VMAJ + $VMIN? It may repeat easily, I'd go with
> $VMAJ * 10 + $VMIN.... but I'm not sure if I'm correct.

no - it's vmaj+vmin

> 
> -- 
> Gustavo Sverzut Barbieri
> --------------------------------------
> Jabber: [EMAIL PROTECTED]
>    MSN: [EMAIL PROTECTED]
>   ICQ#: 17249123
>  Skype: gsbarbieri
> Mobile: +55 (81) 9927 0010
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to