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, -- Albin Tonnerre ------------------------------------------------------------------------------ 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