Annotation of CSS/CSS2.1-test-suite/Makefile, revision 1.10
1.1 ihickson 1: all:
1.4 ihickson 2: #
1.3 ihickson 3: # empty staging area
1.4 ihickson 4: #
1.3 ihickson 5: rm -rf tests/
6: mkdir tests
1.4 ihickson 7: #
1.3 ihickson 8: # take raw and cooked tests and place them in staging area, along with support files
1.4 ihickson 9: #
1.1 ihickson 10: find raw-tests -name FILENAMES | xargs -n 1 perl make-proper-tests.pl
1.2 ihickson 11: find cooked-tests -name '*.xht' | xargs -n 1 --replace cp -Lv {} tests
1.6 ihickson 12: find cooked-tests/* -maxdepth 0 -type d -not -name CVS | xargs -n 1 perl -e 'if (-d "$$ARGV[0]/support") { print `cp -Lrvu "$$ARGV[0]/support" tests` }'
1.4 ihickson 13: #
1.5 ihickson 14: # nuke unused support files and CVS directories
1.4 ihickson 15: #
1.1 ihickson 16: rm -rf tests/support/.unused
1.2 ihickson 17: find tests -type d -name CVS | xargs rm -rf
1.4 ihickson 18: #
1.3 ihickson 19: # empty distribution area
1.4 ihickson 20: #
1.1 ihickson 21: rm -rf dist/
22: mkdir dist
1.8 fantasai 23: mkdir dist/html4
24: mkdir dist/xhtml1
25: mkdir dist/xhtml1print
1.4 ihickson 26: #
1.10 ! fantasai 27: # indexes
1.9 fantasai 28: #
29: perl catalog.pl tests/*.xht
30: cp data/indices.css dist/indices.css
1.10 ! fantasai 31: cp data/index.xht dist/index.xht
! 32: cp data/index.html dist/index.html
1.9 fantasai 33: #
1.3 ihickson 34: # generate the tests in all supported formats, along with support files
1.4 ihickson 35: #
1.1 ihickson 36: perl generate.pl tests/*.xht
1.9 fantasai 37: perl -pi -e 's/\.xht/\.htm/g' dist/html4/by-section.htm
1.8 fantasai 38: cp -Lrv tests/support dist/html4/support
39: cp -Lrv tests/support dist/xhtml1/support
40: cp -Lrv tests/support dist/xhtml1print/support
41: find dist/xhtml1print/support -iname '*.png' | xargs -I FILENAME convert FILENAME -background white -flatten -quality 90 FILENAME.jpg
42: find dist/xhtml1print/support -iname '*.png.jpg' | xargs rename s/png.jpg/jpg/
43: find dist/xhtml1print/support -iname '*.png' | xargs rm -rf
44: find dist/xhtml1print -iname '*.xht' -o -iname '*.css' | xargs perl -pi -e 's/\.png/\.jpg/g'
1.4 ihickson 45: #
1.3 ihickson 46: # empty staging area again
1.4 ihickson 47: #
1.3 ihickson 48: rm -rf tests/
1.4 ihickson 49: #
1.3 ihickson 50: # report number of tests now included (XHTML1.1 variants only)
1.4 ihickson 51: #
1.8 fantasai 52: ls dist/xhtml1/*.xht | wc -l
Webmaster