mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
Bugfix: Create temporary directory before downloading phpDocumentor
This commit is contained in:
parent
b27eefe05b
commit
71bceaa60b
1 changed files with 4 additions and 1 deletions
5
build.sh
5
build.sh
|
@ -94,11 +94,14 @@ function task_docs {
|
||||||
task_begin "Building PHP Module API Docs";
|
task_begin "Building PHP Module API Docs";
|
||||||
if [ ! -f "./build/_tmp/phpdoc" ]; then
|
if [ ! -f "./build/_tmp/phpdoc" ]; then
|
||||||
subtask_begin "Downloading PHPDoc";
|
subtask_begin "Downloading PHPDoc";
|
||||||
|
# Create the temporary directory if it doesn't exist yet
|
||||||
|
[ -d "./build/_tmp" ] || mkdir -p "./build/_tmp/";
|
||||||
|
|
||||||
curl -sSL https://phpdoc.org/phpDocumentor.phar -o ./build/_tmp/phpdoc
|
curl -sSL https://phpdoc.org/phpDocumentor.phar -o ./build/_tmp/phpdoc
|
||||||
subtask_end $?;
|
subtask_end $?;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
php ./build/_tmp/phpdoc run \
|
php ./buihttps://phpdoc.org/ld/_tmp/phpdoc run \
|
||||||
--directory . \
|
--directory . \
|
||||||
--target docs/ModuleApi\
|
--target docs/ModuleApi\
|
||||||
--cache-folder build/_tmp/ModuleApiCache \
|
--cache-folder build/_tmp/ModuleApiCache \
|
||||||
|
|
Loading…
Reference in a new issue