Skip to content

Commit bb64730

Browse files
committed
[css2] Added macros to cover.src for dates and release names
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40417
1 parent 7e00380 commit bb64730

2 files changed

Lines changed: 59 additions & 17 deletions

File tree

css2/Makefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile to generate the CSS2 document based on its "source files"
22
# Arnaud Le Hors - lehors@w3.org
3-
# $Id: Makefile,v 1.44 1997-11-20 23:37:22 ian Exp $
3+
# $Id: Makefile,v 1.45 1997-11-24 04:13:55 ian Exp $
44

55
# what needs to be set for every new release:
66
THIS_VERSION= http://www.w3.org/Style/Group/9711/WD-css2-971128
@@ -111,6 +111,7 @@ VALUEDB= build/value.db
111111
# dbase for heading dbase
112112
HEADINGDB= build/headings.db
113113

114+
SED = sed
114115
PERL= perl5
115116
NSGMLS=nsgmls
116117
LINKLINT=linklint
@@ -255,22 +256,27 @@ $(DESCBLKSDIR)/blocks.ok: $(DESCSRC)
255256

256257
$(PROPERTYDB): $(SPECSRCS)
257258
@if [ ! -d build ]; then mkdir build;fi
258-
$(MKPANCHDB) properties propdef - $(SPECSRCS) | sed 's/\.src/\.html/' > $@
259+
$(MKPANCHDB) properties propdef - $(SPECSRCS) | $(SED) 's/\.src/\.html/' > $@
259260

260261
$(DESCRIPTORDB): $(SPECSRCS)
261262
@if [ ! -d build ]; then mkdir build;fi
262-
$(MKPANCHDB) descriptors descdef - $(SPECSRCS) | sed 's/\.src/\.html/' > $@
263+
$(MKPANCHDB) descriptors descdef - $(SPECSRCS) | $(SED) 's/\.src/\.html/' > $@
263264

264265
$(VALUEDB): $(SPECSRCS)
265-
$(MKANCHDB) value-def - $(SPECSRCS) | sed 's/\.src/\.html/' > $@
266+
$(MKANCHDB) value-def - $(SPECSRCS) | $(SED) 's/\.src/\.html/' > $@
266267

267268
indexlist.html: build/indexlist.srb
268269
build/indexlist.srb: $(SPECOBJS)
269270
$(MKIDX) $@ build/index/*
270271

271272
cover.html: cover.src build/contents.srb
272-
$(HIPP) $(INCLUDES) $< - | \
273-
$(ADDNAVBAR) -bottom -hr -r $@ - $@ "go to the table of contents" "#toc" index indexlist.html
273+
$(SED) -e 's|_THIS_VERSION_|$(THIS_VERSION)|g' \
274+
-e 's|_THE_PREVIOUS_VERSION_|$(THE_PREVIOUS_VERSION)|g' \
275+
-e 's|_THE_LATEST_VERSION_|$(THE_LATEST_VERSION)|g' \
276+
-e 's|_THE_DATE_|$(THE_DATE)|g' \
277+
-e 's|_THE_ID_|$(THE_ID)|g' $< | \
278+
$(HIPP) $(INCLUDES) - - | \
279+
$(ADDNAVBAR) -hr -r $@ - $@ "table of contents" "#toc" index indexlist.html
274280

275281
build/contents.srb: $(MAINSRCS) $(INDEXSRCS) $(APPSRCS) $(REFSRCS)
276282
$(MKTOC) -ml 5 $@ $(HEADINGDB) $(MAINSRCS) -ul -roman $(APPSRCS) \

css2/cover.src

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: cover.src,v 1.5 1997-11-20 23:38:40 ian Exp $ -->
3+
<!-- $Id: cover.src,v 1.6 1997-11-24 04:13:18 ian Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Cascading Style Sheets, Level 2</TITLE>
@@ -15,7 +15,24 @@ hspace="0"></a>WD-CSS2-971104</p>
1515

1616
<h1 align=center>Cascading Style Sheets, Level 2</h1>
1717
<center><strong>W3C Working Draft <i>04-November-1997</i></strong></center>
18+
<dl>
19+
<dt>This version:
20+
<dd><a href="_THIS_VERSION_">_THIS_VERSION_</a>
21+
<dt>Latest version:
22+
<dd><a href="_THE_LATEST_VERSION_">_THE_LATEST_VERSION_</a>
23+
<dt>Previous version:
24+
<dd><a href="_THE_PREVIOUS_VERSION_">_THE_PREVIOUS_VERSION_</a>
1825

26+
<dt>Editors:
27+
<dd><a href="http://www.w3.org/People/Bos/">Bert Bos</a>
28+
&lt;<a href="mailto:bbos@w3.org">bbos@w3.org</a>&gt;<BR>
29+
<A HREF="http://www.w3.org/People/howcome/">H&aring;kon Wium Lie</A>
30+
&lt;<a href="mailto:howcome@w3.org">howcome@w3.org</a>&gt;<BR>
31+
<A HREF="http://www.w3.org/People/chris/">Chris Lilley</A>
32+
&lt;<a href="mailto:chris@w3.org">chris@w3.org</a>&gt;<BR>
33+
<A HREF="http://www.w3.org/People/Jacobs/">Ian Jacobs</A>
34+
&lt;<a href="mailto:ij@w3.org">ij@w3.org</a>&gt;
35+
</dl>
1936

2037
<h2>Abstract</h2>
2138

@@ -45,16 +62,35 @@ href="./refs.html#ref-CSS1" class="normref">[CSS1]</a>, specified in <a
4562
href="http://www.w3.org/TR/REC-CSS1-961217">http://www.w3.org/TR/REC-CSS1-961217</a>. All
4663
valid CSS1 stylesheets are valid CSS2 stylesheets.
4764

48-
<h2>Editors</h2>
49-
<UL>
50-
<LI><a href="http://www.w3.org/People/Bos/">Bert Bos</a>
51-
&lt;<a href="mailto:bbos@w3.org">bbos@w3.org</a>&gt;
52-
<LI><A HREF="http://www.w3.org/People/howcome/">H&aring;kon Wium Lie</A>
53-
&lt;<a href="mailto:howcome@w3.org">howcome@w3.org</a>&gt;
54-
<LI><A HREF="http://www.w3.org/People/chris/">Chris Lilley</A>
55-
&lt;<a href="mailto:chris@w3.org">chris@w3.org</a>&gt;
56-
<LI>Ian Jacobs &lt;<a href="mailto:ij@w3.org">ij@w3.org</a>&gt;
57-
</UL>
65+
66+
<h2>Available formats</h2>
67+
68+
<p>The CSS2 specification is also available in the following formats:
69+
70+
<dl>
71+
<dt>a plain text file:
72+
<dd><a href="css20.txt">_THIS_VERSION_/css20.txt</a>,
73+
<dt>HTML as a gzip'ed tar file:
74+
<dd><a href="css20.tgz">_THIS_VERSION_/css20.tgz</a>,
75+
<dt>HTML as a zip file (this is a '.zip' file not an '.exe'):
76+
<dd><a href="css20.zip">_THIS_VERSION_/css20.zip</a>,
77+
<dt>as well as a postscript file (thanks to <a
78+
href="http://www.tdb.uu.se/~jan/html2ps.html">html2ps</a> written by Jan
79+
K&auml;rrman):
80+
<dd><a href="css20.ps">_THIS_VERSION_/css20.ps</a>,
81+
<dt>and a PDF file:
82+
<dd><a href="css20.pdf">_THIS_VERSION_/css20.pdf</a>.
83+
</dl>
84+
85+
<P>In case of a discrepancy between electronic and printed forms
86+
of the specification, the electronic version is considered the
87+
definitive version.
88+
89+
<h3>Available languages</h3>
90+
<P>The English version of this specification is the only normative
91+
version. However, for translations in other languages see <a
92+
href="translations.html">_THIS_VERSION_/translations.html</a>.</p>
93+
5894

5995
<h2>Comments</h2>
6096

0 commit comments

Comments
 (0)