Skip to content

Commit e074e32

Browse files
committed
[css2] Changed the properties database to include a field thats says whether
the property is CSS2 or CSS 2.1 and modified mkpropidx and Makefile accordingly. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401898
1 parent 299b428 commit e074e32

3 files changed

Lines changed: 123 additions & 115 deletions

File tree

css2/Makefile

Lines changed: 2 additions & 2 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 2.55 2002-07-08 14:57:49 bbos Exp $
3+
# $Id: Makefile,v 2.56 2002-07-25 20:28:24 bbos Exp $
44

55
# what needs to be set for every new release:
66
# Note use of full year (1998) in identifier.
@@ -395,7 +395,7 @@ indexlist.html: indexlist.srd build/indexlist.srb Project.cfg
395395

396396
build/propidx.srb: $(PROPSRC)
397397
@echo "=========== making" $@
398-
$(MKPROPIDX) -r $@ $@ $(PROPSRC)
398+
$(MKPROPIDX) -l 2.1 -r $@ $@ $(PROPSRC)
399399

400400
propidx.srd:: build/propidx.srb #propidx.src
401401
# @echo "=========== making" $@

css2/bin/mkpropidx

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
#!/usr/local/bin/perl
22
# Index of property names.
33
# Arnaud Le Hors lehors@w3.org/Ian Jacobs ij@w3.org
4-
# $Id: mkpropidx,v 2.6 1998-05-13 10:59:07 bbos Exp $
4+
# $Id: mkpropidx,v 2.7 2002-07-25 20:28:24 bbos Exp $
55
use English;
66

77

8-
if (($_ = $ARGV[0], /^-r/) && $ARGV[0]) {
8+
$realpath = ();
9+
10+
while ($ARGV[0] =~ /^-/) {
11+
if ($ARGV[0] eq "-r" && $ARGV[1]) {
912
shift;
10-
$realpath = $ARGV[0];
13+
$realpath = shift;
14+
} elsif ($ARGV[0] eq "-l" && $ARGV[1]) {
1115
shift;
12-
} else {
13-
$realpath = ();
16+
$level = shift;
17+
} else {
18+
print "Usage: $PROGNAME [-r realpath] [-l level] indexfile dbase\n";
19+
exit 1;
20+
}
1421
}
1522

1623
$PROGNAME = substr($0, rindex($0, "/") + 1);
@@ -157,16 +164,18 @@ sub table_head {
157164

158165
sub table_body {
159166
foreach $key (sort (keys %indexes)) {
160-
($name, $val, $init, $app, $inh, $perc, $media) = split(/;;/, $indexes{$key});
161-
print OUTPUT "<tr>";
162-
format_name($name);
163-
format_val($val);
164-
format_init($init);
165-
format_app($app);
166-
format_inh($inh);
167-
format_perc($perc);
168-
format_media($media);
169-
print OUTPUT "\n";
167+
($name, $val, $init, $app, $inh, $perc, $media, $csslevels) = split(/;;/, $indexes{$key});
168+
if (! defined $level || $csslevels =~ /\b$level\b/) {
169+
print OUTPUT "<tr>";
170+
format_name($name);
171+
format_val($val);
172+
format_init($init);
173+
format_app($app);
174+
format_inh($inh);
175+
format_perc($perc);
176+
format_media($media);
177+
print OUTPUT "\n";
178+
}
170179
}
171180
}
172181

0 commit comments

Comments
 (0)