You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/bash
#DEST_DIR=../docs/pkgif [ ! -d ../tutorials ] then mkdir ../tutorialsfiif [ ! -d ../tutorials/SimpleTest ]then mkdir ../tutorials/SimpleTestfiDEST_DIR=../tutorials/SimpleTest
rm ${DEST_DIR}/*.pkgcp ../docs/pkg/SimpleTest.pkg.ini ${DEST_DIR}
#Xalan -o ${DEST_DIR}/QuickStart.pkg ../docs/source/en/simple_test.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/SimpleTest.pkg ../docs/source/en/overview.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/UnitTestCase.pkg ../docs/source/en/unit_test_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/GroupTests.pkg ../docs/source/en/group_test_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/MockObjects.pkg ../docs/source/en/mock_objects_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/PartialMock.pkg ../docs/source/en/partial_mocks_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/Reporting.pkg ../docs/source/en/reporter_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/Expectations.pkg ../docs/source/en/expectation_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/WebTester.pkg ../docs/source/en/web_tester_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/FormTesting.pkg ../docs/source/en/form_testing_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/Authentication.pkg ../docs/source/en/authentication_documentation.xml phpdoc_docs.xsltXalan -o ${DEST_DIR}/Browser.pkg ../docs/source/en/browser_documentation.xml phpdoc_docs.xslt
# some cleanup workcd $DEST_DIR
# remove XML declarationfor f in $(ls *.pkg --color=none)do grep -v -e '^<?xml' $f > tmp.pkg mv tmp.pkg $fdone
# fix overview titlecat SimpleTest.pkg | sed -e 's/<refname>Overview/<refname>Simple Test PHP Unit Test Framework/g;s/<\([A-Za-z0-9]*\)\/>/<\1><\/\1>/g' > tmp.pkgmv tmp.pkg SimpleTest.pkg
|