@echo off rem rem The FORMfields Library rem Copyright 2005-2007 Brain Book Software LLC rem For complete documentation, please visit http://www.formfields.com rem rem This script uses phpdoctor (http://phpdoctor.sourceforge.net/) to generate rem API documentation for the FORMfields Library. This script requires that rem you have phpdoctor installed on your system. Be sure to update the rem following paths to match your system. rem ---------- CONFIGURATION - BEGIN ---------- set PHP_DOCTOR_HOME=C:\Program Files\xampp\htdocs\devhosts\phpdoctor2 set PHP=C:\Program Files\xampp\php\php.exe rem ---------- CONFIGURATION - END ---------- rem The directory of this batch file set BUILD_DIR=%~dp0 rem It's silly but phpdoctor cannot handle a source_path with ".." rem So we have to dynamically generate an absolute path in a tmp ini file "%PHP%" "%BUILD_DIR%genIni.php" rem We have to change to the phpdoctor directory otherwise phpdoc.php will fail cd "%PHP_DOCTOR_HOME%" "%PHP%" phpdoc.php "%BUILD_DIR%genDefault.ini" rem Remove the old documentation rmdir /S/Q "%BUILD_DIR%..\docs\apidocs" rem Its silly but phpdoctor cannot handle destination directory with ".." so we have to move the directory rem Move the new documentation to the correct location move /Y "%BUILD_DIR%..\src\apidocs" "%BUILD_DIR%..\docs" rem Remove the tmp ini file del "%BUILD_DIR%genDefault.ini" echo ********** DOCS GENERATED ********** rem pause