Annotation of CSS/CSS2.1-test-suite/Makefile, revision 1.8

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

Webmaster