commented the export scripts

This commit is contained in:
germedeb 2022-09-06 23:04:55 -03:00
parent a12ea142d3
commit 59c90744dc
9 changed files with 83 additions and 8 deletions

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/actions/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -21,8 +25,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/actions/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/animations/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -19,8 +23,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/animations/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/apps/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -19,8 +23,13 @@ do
"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} >/dev/null 2>&1" \
"inkscape -w 256 -h 256 -o _build/aleta/apps/256/${N}.png ${SVG} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/apps/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/categories/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -20,8 +24,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/categories/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/devices/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -17,8 +21,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/devices/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,9 +7,14 @@
for SVG in _build/icons-t/emblems/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this do de same, but removes .symbolic.svg
Nscalable=$(basename ${SVG} .symbolic.svg)
# this runs the export operation in paralell.
parallel ::: \
"inkscape -w 16 -h 16 -o _build/aleta/emblems/16/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 24 -h 24 -o _build/aleta/emblems/24/${N}.png ${SVG} >/dev/null 2>&1" \
@ -17,10 +22,15 @@ do
"inkscape -w 48 -h 48 -o _build/aleta/emblems/48/${N}.png ${SVG} >/dev/null 2>&1" \
"inkscape -w 64 -h 64 -o _build/aleta/emblems/64/${N}.png ${SVG} >/dev/null 2>&1"
# this copies the original svg to the scalable, but replacing the .symbolic.svg with .svg
# this copies the original svg to the scalable,
# but replacing the .symbolic.svg with .svg
cp ${SVG} _build/aleta/emblems/scalable/${Nscalable}.svg
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/emblems/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/mimetypes/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -21,8 +25,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/mimetypes/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/places/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -20,8 +24,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/places/
# output to the terminal
echo exported: ${SVG}
fi
done

View File

@ -7,8 +7,12 @@
for SVG in _build/icons-t/status/*.svg
do
if [[ -f "${SVG}" ]]; then
# this command removes the .svg extension in the file,
# and then write it to the variable N
N=$(basename ${SVG} .svg)
# this runs the export operation in paralell.
parallel ::: \
"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} >/dev/null 2>&1" \
@ -20,8 +24,12 @@ do
"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} >/dev/null 2>&1"
# this moves the icon to the icons-e folder. this
# means that the icon is exported and you don't
# need to export it again
mv ${SVG} _build/icons-e/status/
# output to the terminal
echo exported: ${SVG}
fi
done