Skip to content

Commit

Permalink
fix(tools): genapi script
Browse files Browse the repository at this point in the history
  • Loading branch information
flegastelois authored and trasher committed Feb 16, 2024
1 parent 7d07d1e commit a040236
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions tools/genapidoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,12 @@ cd $(dirname $0)

if which apigen &>/dev/null
then
version=$(php -r '
require __DIR__ . "/../inc/define.php";
echo GLPI_VERSION;
')
apigen generate \
--access-levels=public,protected,private \
--todo \
--deprecated \
--tree \
version=$(php -r 'include(__DIR__ . "/../inc/includes.php"); echo GLPI_VERSION;')
apigen \
--working-dir ../ \
--title "GLPI version $version API" \
--source ../inc \
--destination api

--output api \
../src/
else
echo -e "\nApiGen not found, see https://github.com/ApiGen/ApiGen\n"

fi

0 comments on commit a040236

Please sign in to comment.