I should have cc:ed this to www-archive to start with.
-David
--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla http://www.mozilla.org/ 𝄂
--- Begin Message ---
Bert,
Is it ok if I land this patch to the preprocessor to make the "This
version" generate dev.w3.org URLs for EDs and css3-src URLs for MO
drafts?
It should make it easier to switch between MO/WD or ED/WD status
(i.e., make it so there's less that requires manual editing). (That
said, it's only useful if there's something left to indicate the
status; I prefer having that in the Makefile, though that could be
in the draft as well.)
(I did a quick test of the Makefile patch; I haven't actually tested
the process.cgi test, but I would do so immediately after landing.)
-David
--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla http://www.mozilla.org/ 𝄂
Index: process.cgi
===================================================================
RCS file: /w3ccvs/WWW/Style/Group/css3-src/process.cgi,v
retrieving revision 1.4
diff -p -u -1 -2 -r1.4 process.cgi
--- process.cgi 22 Feb 2012 18:47:48 -0000 1.4
+++ process.cgi 8 Feb 2013 21:30:53 -0000
@@ -331,25 +331,30 @@ else
-e 's/\(....\)05\(..\)/\2 May \1/'\
-e 's/\(....\)06\(..\)/\2 June \1/'\
-e 's/\(....\)07\(..\)/\2 July \1/'\
-e 's/\(....\)08\(..\)/\2 August \1/'\
-e 's/\(....\)09\(..\)/\2 September \1/'\
-e 's/\(....\)10\(..\)/\2 October \1/'\
-e 's/\(....\)11\(..\)/\2 November \1/'\
-e 's/\(....\)12\(..\)/\2 December \1/'\
-e 's/^0//'`
fi
latest="http://www.w3.org/TR/$shortname/"
-version="http://www.w3.org/TR/$year/$status-$shortname-$cdate/"
+case "$status" in
+ MO) version="http://www.w3.org/Style/Group/css3-src/$shortname/";;
+ ED) version="http://dev.w3.org/csswg/$shortname/";;
+ *) version="http://www.w3.org/TR/$year/$status-$shortname-$cdate/";;
+esac
+
# Run the pipeline and generate output. An extra newline is added,
# because sed ignores the last line if it doesn't end with a newline.
# Do special CSS processing (replace 'foo' and ''foo'').
#
((hxnum -l 2 $input |\
hxtoc $format -t -l 2 |\
special-include logo $logofile |\
special-include copyright $copyright |\
special-include status $statusfile |\
if [[ "$ids" == "on" ]]; then hxaddid $format p; else cat; fi |\
if [[ "$ids" == "on" ]]; then hxaddid $format li; else cat; fi |\
Index: Makefile
===================================================================
RCS file: /w3ccvs/WWW/Style/Group/css3-src/Makefile,v
retrieving revision 1.88
diff -p -u -1 -2 -r1.88 Makefile
--- Makefile 17 May 2012 11:18:49 -0000 1.88
+++ Makefile 8 Feb 2013 21:30:53 -0000
@@ -67,25 +67,33 @@ ifeq ($(status), NOTE)
longstatus=W3C Note
endif
ifeq ($(status), ED)
longstatus=Editor\'s Draft
endif
# By default, the "shortname" of the spec is the same as the name of
# the directory, typically something like "css3-ui" or "css3-tables."
# Use shortname=css3-foo to set a different shortname.
#
shortname ?= $(notdir $(PWD))
latest = http://www.w3.org/TR/$(shortname)/
+ifeq ($(status), MO)
+version = http://www.w3.org/Style/Group/css3-src/$(shortname)/
+else
+ifeq ($(status), ED)
+version = http://dev.w3.org/csswg/$(shortname)/
+else
version = http://www.w3.org/TR/$(year)/$(status)-$(shortname)-$(cdate)/
+endif
+endif
# Where to find the refer-style biliography database;
# the template for bibliographies;
# what element contains property definitions
#
bibfile = $(INCLDIR)/biblio.ref
biblioinc = $(INCLDIR)/biblio.inc
# propdef = table.propdef
# xrefdb = $(INCLDIR)/xref.db
chkspaces = perl $(INCLDIR)/bin/chkspaces
# For checking validity with SP, we need to know whether to use the
--- End Message ---
--- Begin Message ---
On Saturday 2013-02-09 10:00 -0700, Tab Atkins Jr. wrote:
> On Fri, Feb 8, 2013 at 2:35 PM, L. David Baron <dba...@dbaron.org> wrote:
> > Bert,
> >
> > Is it ok if I land this patch to the preprocessor to make the "This
> > version" generate dev.w3.org URLs for EDs and css3-src URLs for MO
> > drafts?
> >
> > It should make it easier to switch between MO/WD or ED/WD status
> > (i.e., make it so there's less that requires manual editing). (That
> > said, it's only useful if there's something left to indicate the
> > status; I prefer having that in the Makefile, though that could be
> > in the draft as well.)
> >
> > (I did a quick test of the Makefile patch; I haven't actually tested
> > the process.cgi test, but I would do so immediately after landing.)
>
> Most of us don't use Makefiles in spec editting. For example, I just
> run a curl command.
The Makefiles currently on dev.w3.org currently just run curl
commands that invoke process.cgi, and thus would be affected by the
process.cgi patch but not the Makefile patch, which affects people
who run make inside Style/Group/css3-src/.
The process.cgi patch would allow you to switch your curl command
between "-F status=ED" (which is the default, so can be omitted) and
"-F status=WD" and get the same results (i.e., dev.w3.org "This
version" URLs for status=ED, and TR-style "This version" URLs for
status=WD).
-David
--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla http://www.mozilla.org/ 𝄂
--- End Message ---