Annotation of CSS/CSS2.1-test-suite/Makefile, revision 1.9
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.9 ! fantasai 27: # index the tests
! 28: #
! 29: perl catalog.pl tests/*.xht
! 30: cp data/indices.css dist/indices.css
! 31: #
1.3 ihickson 32: # generate the tests in all supported formats, along with support files
1.4 ihickson 33: #
1.1 ihickson 34: perl generate.pl tests/*.xht
1.9 ! fantasai 35: perl -pi -e 's/\.xht/\.htm/g' dist/html4/by-section.htm
1.8 fantasai 36: cp -Lrv tests/support dist/html4/support
37: cp -Lrv tests/support dist/xhtml1/support
38: cp -Lrv tests/support dist/xhtml1print/support
39: find dist/xhtml1print/support -iname '*.png' | xargs -I FILENAME convert FILENAME -background white -flatten -quality 90 FILENAME.jpg
40: find dist/xhtml1print/support -iname '*.png.jpg' | xargs rename s/png.jpg/jpg/
41: find dist/xhtml1print/support -iname '*.png' | xargs rm -rf
42: find dist/xhtml1print -iname '*.xht' -o -iname '*.css' | xargs perl -pi -e 's/\.png/\.jpg/g'
1.7 ihickson 43: cp README.dist dist/README
1.4 ihickson 44: #
1.3 ihickson 45: # empty staging area again
1.4 ihickson 46: #
1.3 ihickson 47: rm -rf tests/
1.4 ihickson 48: #
1.3 ihickson 49: # report number of tests now included (XHTML1.1 variants only)
1.4 ihickson 50: #
1.8 fantasai 51: ls dist/xhtml1/*.xht | wc -l
Webmaster