the export scripts now output the name of the icon that is being exported and is MUCH less verbose

This commit is contained in:
germedeb 2022-02-22 18:54:25 -03:00
parent 7901e47a54
commit 722223f3ea
9 changed files with 76 additions and 75 deletions

View File

@ -6,6 +6,7 @@ reset_colors="\e[0m" # this resets the coloring
command -v inkscape >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'inkscape'"; exit 1; } command -v inkscape >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'inkscape'"; exit 1; }
command -v parallel >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'parallel'"; exit 1; } command -v parallel >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'parallel'"; exit 1; }
command -v bash >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'bash'"; exit 1; }
printf "${info_color}this scripts deletes the icon pack, and rebuild it again${reset_colors}\\n\\n" printf "${info_color}this scripts deletes the icon pack, and rebuild it again${reset_colors}\\n\\n"

View File

@ -6,16 +6,16 @@ do
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/actions/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/actions/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/actions/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/actions/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 22 -h 22 -o _build/aleta/actions/22/${N}.png ${SVG}" \ "inkscape -w 22 -h 22 -o _build/aleta/actions/22/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/actions/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/actions/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/actions/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/actions/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/actions/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/actions/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/actions/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/actions/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/actions/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/actions/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/actions/128/${N}.png ${SVG}" \ "inkscape -w 128 -h 128 -o _build/aleta/actions/128/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 256 -h 256 -o _build/aleta/actions/256/${N}.png ${SVG}" "inkscape -w 256 -h 256 -o _build/aleta/actions/256/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/actions/ mv ${SVG} _build/icons-e/actions/
fi fi

View File

@ -6,14 +6,14 @@ do
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/animations/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/animations/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/animations/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/animations/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/animations/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/animations/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/animations/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/animations/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/animations/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/animations/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/animations/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/animations/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/animations/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/animations/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/animations/128/${N}.png ${SVG}" "inkscape -w 128 -h 128 -o _build/aleta/animations/128/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/animations/ mv ${SVG} _build/icons-e/animations/
fi fi

View File

@ -7,17 +7,16 @@ do
echo exporting ${SVG} echo exporting ${SVG}
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/apps/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/apps/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/apps/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/apps/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 22 -h 22 -o _build/aleta/apps/22/${N}.png ${SVG}" \ "inkscape -w 22 -h 22 -o _build/aleta/apps/22/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/apps/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/apps/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/apps/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/apps/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/apps/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/apps/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/apps/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/apps/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/apps/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/apps/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/apps/128/${N}.png ${SVG}" \ "inkscape -w 128 -h 128 -o _build/aleta/apps/128/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 256 -h 256 -o _build/aleta/apps/256/${N}.png ${SVG}" >/dev/null "inkscape -w 256 -h 256 -o _build/aleta/apps/256/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/apps/ mv ${SVG} _build/icons-e/apps/
fi fi
done done

View File

@ -6,15 +6,15 @@ do
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/categories/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/categories/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/categories/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/categories/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 22 -h 22 -o _build/aleta/categories/22/${N}.png ${SVG}" \ "inkscape -w 22 -h 22 -o _build/aleta/categories/22/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/categories/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/categories/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/categories/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/categories/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/categories/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/categories/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/categories/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/categories/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/categories/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/categories/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/categories/128/${N}.png ${SVG}" "inkscape -w 128 -h 128 -o _build/aleta/categories/128/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/categories/ mv ${SVG} _build/icons-e/categories/
fi fi

View File

@ -6,12 +6,12 @@ do
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
parallel ::: \ parallel ::: \
"inkscape -w 16 -h 16 -o _build/aleta/devices/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/devices/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/devices/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/devices/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/devices/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/devices/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/devices/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/devices/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/devices/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/devices/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/devices/96/${N}.png ${SVG}" "inkscape -w 96 -h 96 -o _build/aleta/devices/96/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/devices/ mv ${SVG} _build/icons-e/devices/
fi fi

View File

@ -6,16 +6,16 @@ do
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/mimetypes/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/mimetypes/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/mimetypes/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/mimetypes/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 22 -h 22 -o _build/aleta/mimetypes/22/${N}.png ${SVG}" \ "inkscape -w 22 -h 22 -o _build/aleta/mimetypes/22/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/mimetypes/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/mimetypes/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/mimetypes/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/mimetypes/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/mimetypes/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/mimetypes/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/mimetypes/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/mimetypes/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/mimetypes/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/mimetypes/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/mimetypes/128/${N}.png ${SVG}" \ "inkscape -w 128 -h 128 -o _build/aleta/mimetypes/128/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 256 -h 256 -o _build/aleta/mimetypes/256/${N}.png ${SVG}" "inkscape -w 256 -h 256 -o _build/aleta/mimetypes/256/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/mimetypes/ mv ${SVG} _build/icons-e/mimetypes/
fi fi

View File

@ -5,17 +5,18 @@ do
if [[ -f "${SVG}" ]]; then if [[ -f "${SVG}" ]]; then
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
echo exporting ${SVG}
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/places/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/places/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/places/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/places/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 22 -h 22 -o _build/aleta/places/22/${N}.png ${SVG}" \ "inkscape -w 22 -h 22 -o _build/aleta/places/22/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/places/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/places/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/places/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/places/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/places/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/places/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/places/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/places/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/places/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/places/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/places/128/${N}.png ${SVG}" \ "inkscape -w 128 -h 128 -o _build/aleta/places/128/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 256 -h 256 -o _build/aleta/places/256/${N}.png ${SVG}" "inkscape -w 256 -h 256 -o _build/aleta/places/256/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/places/ mv ${SVG} _build/icons-e/places/
fi fi

View File

@ -6,15 +6,15 @@ do
N=$(basename ${SVG} .svg) N=$(basename ${SVG} .svg)
parallel ::: \ parallel ::: \
"inkscape -w 8 -h 8 -o _build/aleta/status/8/${N}.png ${SVG}" \ "inkscape -w 8 -h 8 -o _build/aleta/status/8/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 16 -h 16 -o _build/aleta/status/16/${N}.png ${SVG}" \ "inkscape -w 16 -h 16 -o _build/aleta/status/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/status/24/${N}.png ${SVG}" \ "inkscape -w 24 -h 24 -o _build/aleta/status/24/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 32 -h 32 -o _build/aleta/status/32/${N}.png ${SVG}" \ "inkscape -w 32 -h 32 -o _build/aleta/status/32/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 48 -h 48 -o _build/aleta/status/48/${N}.png ${SVG}" \ "inkscape -w 48 -h 48 -o _build/aleta/status/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/status/64/${N}.png ${SVG}" \ "inkscape -w 64 -h 64 -o _build/aleta/status/64/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 96 -h 96 -o _build/aleta/status/96/${N}.png ${SVG}" \ "inkscape -w 96 -h 96 -o _build/aleta/status/96/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 128 -h 128 -o _build/aleta/status/128/${N}.png ${SVG}" \ "inkscape -w 128 -h 128 -o _build/aleta/status/128/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 256 -h 256 -o _build/aleta/status/256/${N}.png ${SVG}" "inkscape -w 256 -h 256 -o _build/aleta/status/256/${N}.png ${SVG} >/dev/null 2>&1"
mv ${SVG} _build/icons-e/status/ mv ${SVG} _build/icons-e/status/
fi fi