[pisa-src] r2219 - trunk/Makefile.am

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Sun, 28 Mar 2010 22:28:18 +0200

Author: biurrun
Date: Sun Mar 28 22:28:18 2010
New Revision: 2219

Log:
The Subversion revision number can only be detected from the source directory.

Modified:
   trunk/Makefile.am

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am   Sun Mar 28 21:51:06 2010        (r2218)
+++ trunk/Makefile.am   Sun Mar 28 22:28:18 2010        (r2219)
@@ -180,7 +180,7 @@
 # when creating specific objects that may depend on version.h directly.
 BUILT_SOURCES = version.h
 version.h: $(srcdir)/.svn/entries
-       echo "#define SVN_REVISION \"$$(svn info | grep Revision: | cut -d' ' 
-f2)\"" > $@
+       echo "#define SVN_REVISION \"$$(svn info $(srcdir) | grep Revision: | 
cut -d' ' -f2)\"" > $@
 
 deb rpm:
        tools/packaging/create-package.sh $@

Other related posts:

  • » [pisa-src] r2219 - trunk/Makefile.am - Diego Biurrun