Skip to content

Commit e64a5e7

Browse files
committed
phpdoc.sh: Detail progress feedback
1 parent 6f9927f commit e64a5e7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tools/php_api_ref/phpdoc.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ fi
9090

9191
if [ 0 -eq $DXP_ALREADY_EXISTS ]; then
9292
echo -n 'Building package→edition map… ';
93-
map=$PHPDOC_DIR/template/package-edition-map.twig;
94-
if [[ -f $map ]]; then
95-
rm $map;
96-
fi;
9793
PACKAGE_MAP=''
9894
NAMESPACE_MAP=''
9995
for edition in ${DXP_EDITIONS[@]}; do
@@ -111,14 +107,22 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then
111107
break;
112108
fi;
113109
done;
110+
echo 'OK';
114111

112+
echo -n 'Building namespace→edition map… ';
115113
for package in "${DXP_ADD_ONS[@]}"; do
116114
NAMESPACES=$(composer show "ibexa/$package" --available --format=json | \
117115
jq -r --arg PACKAGE "ibexa/$package" '"'\''\(.autoload | ."psr-4" | try to_entries[] catch empty | .key[:-1] | sub("\\\\";"\\\\\\";"g"))'\'': '\''\($PACKAGE)'\'',"')
118116
NAMESPACE_MAP="$NAMESPACE_MAP\n$NAMESPACES"
119117
PACKAGE_MAP="$PACKAGE_MAP\n'ibexa/$package': 'optional',"
120118
done;
119+
echo 'OK';
121120

121+
echo -n "Store package→edition and namespace→edition maps into $map";
122+
map=$PHPDOC_DIR/template/package-edition-map.twig;
123+
if [[ -f $map ]]; then
124+
rm $map;
125+
fi;
122126
PACKAGE_MAP="{% set package_edition_map = {\n$PACKAGE_MAP\n} %}"
123127
NAMESPACE_MAP="{% set namespace_package_map = {\n$NAMESPACE_MAP\n} %}"
124128
{

0 commit comments

Comments
 (0)