File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 9090
9191if [ 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 {
You can’t perform that action at this time.
0 commit comments