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 '@' Much nicer. -- Mike Blumenkrantz Zentific: We run the three-legged race individually. ------------------------------------------------------------------------------ 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