3 # Has to be run as a sudoer
7 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
8 asciidoctor fop git unzip zip
10 PHPPKG=$(dpkg --list | grep php | grep cli | awk '{print $2}')
11 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "${PHPPKG/cli/xsl}"
13 cd "$(dirname -- $(dirname -- $(dirname -- ${BASH_SOURCE[0]})))"
14 if [ ! -d build/tools ]; then
17 if [ -L "$(pwd)/build/tools/composer.json" ]; then
18 rm "$(pwd)/build/tools/composer.json"
20 ln -s $(pwd)/doc/build/composer.json $(pwd)/build/tools/composer.json
22 # in case we are switching between php versions, aleways reinstall every tool with the corect version...
23 if [ -f composer.lock ]; then
26 composer install --no-dev
27 # required as of phpdoc 3.1.2
28 sed -r -i -e "s|resource: '%kernel\\.project_dir%/vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php'|resource: '%kernel.project_dir%/../reflection/src/phpDocumentor/Reflection/Php'|g" ./vendor/phpdocumentor/phpdocumentor/config/reflection.yaml