[haiku-webkit-commits] r386 - webkit/trunk/WebKitTools/haiku/build

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Mon, 05 Apr 2010 17:02:48 +0000

Author: stippi
Date: Mon Apr  5 17:02:48 2010
New Revision: 386
URL: http://mmlr.dyndns.org/changeset/386

Log:
New rules to read the SVN revision. I think the Haiku tree has a much more
advanced rule that also works with git and hg and may not depend on the tree
being updated. Will look into this later.

Modified:
   webkit/trunk/WebKitTools/haiku/build/MainBuildRules

Modified: webkit/trunk/WebKitTools/haiku/build/MainBuildRules
==============================================================================
--- webkit/trunk/WebKitTools/haiku/build/MainBuildRules Mon Apr  5 14:00:47 
2010        (r385)
+++ webkit/trunk/WebKitTools/haiku/build/MainBuildRules Mon Apr  5 17:02:48 
2010        (r386)
@@ -288,3 +288,19 @@
 {
        install $(1) $(2) ;
 }
+
+rule CreateSVNRevisionFile file
+{
+       # CreateSVNRevisionFile <file>
+
+       local svnEntries = <svn>entries ;
+       SEARCH on $(svnEntries) = [ FDirName $(TOP) .svn ] ;
+       Depends $(file) : $(svnEntries) ;
+}
+
+actions CreateSVNRevisionFile
+{
+       (LANG=C svn info $(TOP) 2> /dev/null || echo Revision: 0) |
+               grep Revision | awk '{printf $2}' > $(1)
+}
+

Other related posts:

  • » [haiku-webkit-commits] r386 - webkit/trunk/WebKitTools/haiku/build - webkit