Skip to content

Commit 8e82510

Browse files
committed
[css2] Added rule to make diffs.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402004
1 parent e3cff7b commit 8e82510

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

css2/Makefile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Makefile to generate the CSS2 document based on its "source files"
22
# Arnaud Le Hors - lehors@w3.org
3-
# $Id: Makefile,v 2.64 2002-11-18 22:59:56 bbos Exp $
3+
# $Id: Makefile,v 2.65 2003-01-10 23:08:25 bbos Exp $
44

55
# what needs to be set for every new release:
66
# Note use of full year (1998) in identifier.
7-
THE_PREVIOUS_VERSION = http://www.w3.org/TR/2002/WD-CSS21-20020802
7+
PREV_YEAR = 2002
8+
PREV_DATE = 20020802
89
PERMANENT_NAME = CSS21
10+
THE_PREVIOUS_VERSION = http://www.w3.org/TR/$(PREV_YEAR)/WD-$(PERMANENT_NAME)-$(PREV_DATE)
911
THE_YEAR = 200?
1012
THE_DATE = ?? ???? $(THE_YEAR)
1113
THE_ID = WD-$(PERMANENT_NAME)-$(THE_YEAR)????
@@ -553,6 +555,18 @@ realclean: clean
553555
depend:
554556
$(HMKDEPEND) $(SPECOBJS)
555557

556-
.PHONY: all install install-all clean realclean checkx
558+
# Rules to make diff files relative to previous REC.
559+
# htmldiff returns >0 if there are differences, so we ignore the exit code.
560+
561+
PREVREC = ../../../TR/1998/REC-CSS2-19980512
562+
DIFFS = $(SPECOBJS:.html=-diff.html)
563+
HTMLDIFF = htmldiff -i -w '<del>' -x '</del>' -y '<ins>' -z '</ins>'
564+
565+
%-diff.html: %.html $(PREVREC)/%.html
566+
-$(HTMLDIFF) $(PREVREC)/$< $< >$@
567+
568+
diffs: $(DIFFS)
569+
570+
.PHONY: all install install-all clean realclean checkx diffs
557571

558572
##### The following is automatically generated. Do not edit!! ####

0 commit comments

Comments
 (0)