W3C home > Mailing lists > Public > public-html-commits@w3.org > May 2011

html5/spec-LC .cvsignore,NONE,1.1 .htaccess,NONE,1.1 Makefile,NONE,1.1 toc-status.xml,NONE,1.1

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 18 May 2011 10:37:26 +0000
To: public-html-commits@w3.org
Message-Id: <E1QMe86-0005Qu-Ou@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-LC
In directory hutz:/tmp/cvs-serv20870

Added Files:
	.cvsignore .htaccess Makefile toc-status.xml 
Log Message:
updates

--- NEW FILE: .cvsignore ---
MANIFEST
CHANGEDESC
annotations.xml
tidy.log

--- NEW FILE: .htaccess ---
RedirectMatch permanent /html5/spec/author http://dev.w3.org/html5/spec-author-view/
DirectoryIndex spec.html
AddHandler cgi-script .py
Options +ExecCGI
ErrorDocument 404 /html5/spec/404.html
AddDefaultCharset utf-8
RewriteEngine  on
RewriteRule    ^status.html$  http://people.w3.org/mike/html5/spec/toc-status.xml  [P,L]
RewriteRule    ^get-annotations.py$  http://people.w3.org/mike/html5/spec/get-all-annotations.py  [P,L]

--- NEW FILE: toc-status.xml ---
<?xml version="1.0"?>
<?xml-stylesheet href="tocmix.xsl" type="text/xml"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://www.w3.org/1999/xhtml">
<head>
<title>oops</title>
</head>
<body>
<ol class="toc">
<li><a href="#introduction"><span class="secno">1</span>
Introduction</a>
<ol>
<li><a href="#background"><span class="secno">1.1</span>
Background</a></li>
<li><a href="#audience"><span class="secno">1.2</span>
Audience</a></li>
<li><a href="#scope"><span class="secno">1.3</span> Scope</a></li>
<li><a href="#history-1"><span class="secno">1.4</span>
History</a></li>
<li><a href="#design-notes"><span class="secno">1.5</span> Design
[...1551 lines suppressed...]
<li><a href="#application-xhtml-xml"><span class="secno">12.3</span> <code>application/xhtml+xml</code></a></li>
<li><a href="#text-cache-manifest"><span class="secno">12.4</span>
<code>text/cache-manifest</code></a></li>
</ol>
</li>
<li><a class="no-num" href="#index">Index</a>
<ol>
<li><a class="no-num" href="#elements-1">Elements</a></li>
<li><a class="no-num" href="#element-content-categories">Element
content categories</a></li>
<li><a class="no-num" href="#attributes-1">Attributes</a></li>
<li><a class="no-num" href="#interfaces">Interfaces</a></li>
<li><a class="no-num" href="#events-0">Events</a></li>
</ol>
</li>
<li><a class="no-num" href="#references">References</a></li>
<li><a class="no-num" href="#acknowledgements">Acknowledgements</a></li>
</ol>
</body>
</html>

--- NEW FILE: Makefile ---
PYTHON=python
PYTHONFLAGS=

SPLITTER=tools/spec-splitter.py
SPLITTERFLAGS=

TEE=tee
TEEFLAGS=

GREP=egrep
GREPFLAGS=

PERL=perl
PERLFLAGS=

TIDY=tidy
TIDYFLAGS=-asxhtml -n

XSLTPROC=xsltproc
XSLTPROCFLAGS=--novalid

CVS=cvs
CVSFLAGS=

CURL=curl
CURLFLAGS=-s
PARSE=./parse.py
PARSEFLAGS=--xml

ANNODB=http://www.whatwg.org/specs/web-apps/current-work/status.cgi?action=get-all-annotations

REVISION=$(shell $(GREP) $(GREPFLAGS) 'This is .+Revision: ' Overview.html | $(PERL) $(PERLFLAGS) -pe 's/.*This is .+Revision: (1\.[0-9]+) \$$\./$$1/')

all: MANIFEST toc-status.html

debug:
	echo $(REVISION)

MANIFEST: Overview.html
	$(PYTHON) $(PYTHONFLAGS) $(SPLITTER) $(SPLITTERFLAGS) $< . \
	  | $(TEE) $(TEEFLAGS) \
	  | $(GREP) $(GREPFLAGS) '<h2>|<h3>|<h4>|<h5>|<h6>' \
	  | cut -c8- \
	  | cut -d " " -f1 \
	  | $(PERL) $(PERLFLAGS) -pe "s/(^[^ ]+)\s*\n/\1.html\n/" > $@
	  $(PERL) $(PERLFLAGS) -pi -e 's/^.*This is .+Revision: ([^ ]+) \$$.*$$/This is revision $(REVISION)\./' spec.html
	  for file in $$(cat MANIFEST); \
	    do $(PERL) $(PERLFLAGS) -pi -e 's|A vocabulary and associated APIs for HTML and XHTML</h2>|A vocabulary and associated APIs for HTML and XHTML</h2><p>This is revision $(REVISION)\.</p>\n|' $$file; done

annotations.xml:
	$(CURL) --output $@ $(ANNODB)

toc-status.xml: Overview.html get-toc.xsl
	-$(TIDY) $(TIDYFLAGS) $< 2> tidy.log \
	  | $(XSLTPROC) $(XSLTPROCFLAGS) get-toc.xsl - > $@

toc-status.html: annotations.xml toc-status.xml tocmix.xsl
	$(XSLTPROC) $(XSLTPROCFLAGS) \
	  --novalid --output $@ \
		--stringparam Annotations annotations.xml \
		tocmix.xsl toc-status.xml

CHANGEDESC: Overview.html
	$(CVS) $(CVSFLAGS) log -r$(REVISION) $< \
	  | $(GREP) $(GREPFLAGS) -v \
	  "^$$|^RCS file: |^Working file: |^head:|^branch:|^locks:|^access list:|^symbolic names:|^keyword substitution:|^total revisions:|^description:|^revision |^-----|^date: |^=====" \
	  > $@
	@echo >> $@
	@echo "[updated by splitter]" >> $@

clean:
	$(RM) MANIFEST
	$(RM) annotations.xml
	$(RM) tidy.log
	$(RM) CHANGEDESC
Received on Wednesday, 18 May 2011 10:37:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 18 May 2011 10:45:52 GMT