W3C home > Mailing lists > Public > public-html-diffs@w3.org > July 2009

mike: fixed the revision-number handling for multipage version of spec draft

From: poot <cvsmail@w3.org>
Date: Tue, 21 Jul 2009 05:48:13 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090720204814.242032BBF4@toro.w3.mag.keio.ac.jp>
mike: fixed the revision-number handling for multipage version of spec
draft

http://dev.w3.org/cvsweb/html5/spec/spec.html?r1=1.5&r2=1.6&f=h

===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- spec.html	19 Jul 2009 00:17:39 -0000	1.5
+++ spec.html	20 Jul 2009 20:47:19 -0000	1.6
@@ -200,7 +200,7 @@
    </dl><p>This specification is available in the following formats: 
     <a href="Overview.html">single page HTML</a>,
     <a href="spec.html">multipage HTML</a>.
-    This is revision  1.2569.
+This is revision 1.2569.
    </p>
    <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    &#169; 2009 <a href="http://www.w3.org/"><abbr title="World Wide

Index: Makefile
===================================================================
RCS file: /sources/public/html5/spec/Makefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Makefile	19 Jul 2009 00:17:39 -0000	1.7
+++ Makefile	20 Jul 2009 20:47:19 -0000	1.8
@@ -7,7 +7,7 @@
 TEE=tee
 TEEFLAGS=
 
-GREP=grep
+GREP=egrep
 GREPFLAGS=
 
 PERL=perl
@@ -21,9 +21,9 @@
 
 ANNODB=http://www.whatwg.org/specs/web-apps/current-work/status.cgi?action=get-all-annotations
 
-REVISION=$(shell $(GREP) $(GREPFLAGS) '$$Revision$(PERL) $(PERLFLAGS) -pe 's/.*\$$Revision$$]+) \$$.*/$$1/')
+REVISION=$(shell $(GREP) $(GREPFLAGS) 'This is revision .+Revision: ' Overview.html | $(PERL) $(PERLFLAGS) -pe 's/.*This is revision .+Revision: ([^ ]+) \$$/$$1/')
 
-all: REVISION MANIFEST
+all: MANIFEST
 
 debug:
 	echo $(REVISION)
@@ -34,9 +34,9 @@
 	  | $(GREP) $(GREPFLAGS) '<h2>' \
 	  | cut -c8- \
 	  | $(PERL) $(PERLFLAGS) -pe "s/(^[^ ]+)\s*\n/\1.html\n/" > $@
-	  $(PERL) $(PERLFLAGS) -pi -e 's/^(.*)\$$Revision$$]+) \$$.*$$/$$1 $(REVISION)./' spec.html
+	  $(PERL) $(PERLFLAGS) -pi -e 's/^.*This is revision .+Revision: ([^ ]+) \$$.*$$/This is revision $(REVISION)/' spec.html
 	  for file in $$(cat MANIFEST); \
-	    do $(PERL) $(PERLFLAGS) -pi -e 's|</nav>|</nav><p>This is revision $(REVISION).</p>\n<h1>|' $$file; done
+	    do $(PERL) $(PERLFLAGS) -pi -e 's|</nav>|</nav><p>This is revision $(REVISION)</p>\n<h1>|' $$file; done
 
 toc-status.html: annotations.xml spec.xml tocmix.xsl
 	$(XSLTPROC) --novalid --output $@ \
Received on Monday, 20 July 2009 20:48:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:07 GMT