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.


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

-------------------------------------------------------------------------
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