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

html5/spec Makefile,1.7,1.8 spec.html,1.5,1.6

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 20 Jul 2009 20:47:22 +0000
To: public-html-commits@w3.org
Message-Id: <E1MSzla-0008KN-1w@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv31616

Modified Files:
	Makefile spec.html 
Log Message:
fixed the revision-number handling for multipage version of spec draft


Index: spec.html
===================================================================
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:47:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 July 2009 20:47:41 GMT