This commit is contained in:
Mario Voigt 2021-12-10 12:45:17 +01:00
commit 78f748098b
2 changed files with 18 additions and 17 deletions

View File

@ -1,6 +1,6 @@
# MightyScape for Inkscape 1.0+ # MightyScape for Inkscape 1.0+
In short: A maintained extension collection for Inkscape 1.0+, working on Windows and Linux. There are **235 extension folders** with **408 .inx files** inside. We also take part at https://inkscape.org/gallery/=extension/ (with single extension uploads). In short: A maintained extension collection for Inkscape 1.0+, working on Windows and Linux. There are **237 extension folders** with **411 .inx files** inside. We also take part at https://inkscape.org/gallery/=extension/ (with single extension uploads).
# About MightyScape # About MightyScape

View File

@ -45,7 +45,6 @@ for GALLERY_EXTENSION in ${GALLERY_EXTENSIONS}; do
EXTENSION=$(echo ${AGGLOMERATED_JSON} | jq -r '.[]|select(.inkscape_gallery_url=="'$GALLERY_EXTENSION'")|{name}|.[]') EXTENSION=$(echo ${AGGLOMERATED_JSON} | jq -r '.[]|select(.inkscape_gallery_url=="'$GALLERY_EXTENSION'")|{name}|.[]')
done done
echo "--> Count of inx files:" echo "--> Count of inx files:"
INX=$(find ./ -type f -name "*.inx" | wc -l) INX=$(find ./ -type f -name "*.inx" | wc -l)
echo INX: $INX echo INX: $INX
@ -76,14 +75,15 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
for EXTENSION in */; do for EXTENSION in */; do
EXTENSION="${EXTENSION%/}" #strip trailing slash EXTENSION="${EXTENSION%/}" #strip trailing slash
EXTRA="" EXTRA=""
if [[ $EXTENSION == "styles_to_layers" ]] || [[ $EXTENSION == "ungrouper_and_element_migrator_filter" ]] || [[ $EXTENSION == "epilog_dashboard_bbox_adjust" ]]; then DEPS=$(jq -r 'try .[]|.dependent_extensions|.[]' ${EXTENSION}/meta.json)
EXTRA="${EXTRA} apply_transformations/" DEPS=$(echo $DEPS|tr -d '\n')
elif [[ $EXTENSION == "styles_to_layers" ]] || [[ $EXTENSION == "ungrouper_and_element_migrator_filter" ]]; then #if dependencies are not empty, then ...
EXTRA="${EXTRA} remove_empty_groups/" if [[ ! -z $DEPS ]]; then
fi EXTRA="$DEPS"
ZIPFILE=$TARGETDIR/$EXTENSION.zip fi
zip -ru $ZIPFILE $EXTENSION/ 000_about_fablabchemnitz.svg $EXTRA > /dev/null 2>&1 ZIPFILE=$TARGETDIR/$EXTENSION.zip
echo "--> creating/updating $ZIPFILE" echo "--> creating/updating $ZIPFILE"
zip -ru $ZIPFILE $EXTENSION/ 000_about_fablabchemnitz.svg $EXTRA > /dev/null 2>&1
done done
fi fi
@ -99,15 +99,16 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
GALLERY_EXTENSIONS=$(echo $AGGLOMERATED_JSON | jq -r '.[]|{inkscape_gallery_url}|.[]' | sort | grep -v "null") GALLERY_EXTENSIONS=$(echo $AGGLOMERATED_JSON | jq -r '.[]|{inkscape_gallery_url}|.[]' | sort | grep -v "null")
for GALLERY_EXTENSION in ${GALLERY_EXTENSIONS}; do for GALLERY_EXTENSION in ${GALLERY_EXTENSIONS}; do
EXTENSION="$(echo ${AGGLOMERATED_JSON} | jq -r '.[]|select(.inkscape_gallery_url=="'$GALLERY_EXTENSION'")|{path}|.[]')" EXTENSION="$(echo ${AGGLOMERATED_JSON} | jq -r '.[]|select(.inkscape_gallery_url=="'$GALLERY_EXTENSION'")|{path}|.[]')"
EXTRA="" EXTRA=""
if [[ $EXTENSION == "styles_to_layers" ]] || [[ $EXTENSION == "ungrouper_and_element_migrator_filter" ]] || [[ $EXTENSION == "epilog_dashboard_bbox_adjust" ]]; then DEPS=$(jq -r 'try .[]|.dependent_extensions|.[]' ${EXTENSION}/meta.json)
EXTRA="${EXTRA} apply_transformations/" DEPS=$(echo $DEPS|tr -d '\n')
elif [[ $EXTENSION == "styles_to_layers" ]] || [[ $EXTENSION == "ungrouper_and_element_migrator_filter" ]]; then #if dependencies are not empty, then ...
EXTRA="${EXTRA} remove_empty_groups/" if [[ ! -z $DEPS ]]; then
fi EXTRA="$DEPS"
fi
ZIPFILE=$TARGETDIR/$EXTENSION.zip ZIPFILE=$TARGETDIR/$EXTENSION.zip
rm $ZIPFILE > /dev/null 2>&1 rm $ZIPFILE > /dev/null 2>&1
echo "--> creating $ZIPFILE" echo "--> creating/updating $ZIPFILE"
zip -ru $ZIPFILE $EXTENSION/ 000_about_fablabchemnitz.svg $EXTRA zip -ru $ZIPFILE $EXTENSION/ 000_about_fablabchemnitz.svg $EXTRA > /dev/null 2>&1
done done
fi fi