[pisa-src] r952 - trunk

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 07 Sep 2009 17:22:51 +0200

Author: biurrun
Date: Mon Sep  7 17:22:50 2009
New Revision: 952

Log:
Simplify revision number extraction from 'svn' command.

Modified:
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac  Mon Sep  7 16:59:18 2009        (r951)
+++ trunk/configure.ac  Mon Sep  7 17:22:50 2009        (r952)
@@ -6,7 +6,7 @@
 
 # set pisa version to svn revision number (currently not used)
 m4_define([PISA_VERSION_MAJOR], 0.0)
-m4_define([PISA_VERSION_MINOR], m4_esyscmd([svn info|tail -n3|head -n1|awk 
'{print $4}'|tr -d '\n']))
+m4_define([PISA_VERSION_MINOR], m4_esyscmd([svn info | grep Revision: | cut 
-d' ' -f2 | tr -d '\n']))
 m4_define([PISA_VERSION], [PISA_VERSION_MAJOR.PISA_VERSION_MINOR])
 
 AC_INIT(pisa, [PISA_VERSION], pisa@xxxxxxxxxxxxx, pisa-[PISA_VERSION].tar.gz)

Other related posts:

  • » [pisa-src] r952 - trunk - Diego Biurrun