That's git's problem, yea ?

dh

On 12/19/2010 04:32 PM, Albin Tonnerre wrote:
> On Sun, 19 Dec 2010 16:18 -0500, Mike Blumenkrantz wrote :
>> On Sun, 19 Dec 2010 15:36:57 -0500
>> Mike Blumenkrantz<m...@zentific.com>  wrote:
>>
>>> Currently we use some really ugly shell scripting to grab the svn revision 
>>> of
>>> our packages.  I propose that we change this to what I have been using with
>>> the darkness theme for some time:
>>>
>>> current:
>>> (svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F :
>>> '{printf("%s\n", $1);}' | tr -d ' :MSP\n'
>>>
>>> changed:
>>> svnversion -n "${SVN_REPO_PATH:-.}"|grep -Eo "^[0-9]+"
>>>
>>> Comments welcome.
>>>
>> Also the git version can be changed as well:
>> current:
>> git log 2>  /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e
>> 's/....@\([0-9]*\).*/\1/' | tr -d '\n'
>>
>> changed:
>> git log -n1 --pretty=format:%b 2>  /dev/null | grep -Eo "@[0-9]+" | tr -d '@'
>
> I like the idea, but I think the git version is going to fail if the (actual)
> commit message contains @<numbers>, which isn't all that unlikely.
>
> Cheers,


-- 
"If C gives you enough rope to hang yourself, then C++ gives you enough 
rope to bind and gag your neighborhood, rig the sails on a small ship, 
and still have enough rope to hang yourself from the yardarm"
- Anonymous quote from the The UNIX-HATERS Handbook

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to