diff --git a/tasks/build.sh b/tasks/build.sh index 0360a92..1a9f402 100755 --- a/tasks/build.sh +++ b/tasks/build.sh @@ -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 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" diff --git a/tasks/export/export-actions.sh b/tasks/export/export-actions.sh index d68a37c..84100e4 100755 --- a/tasks/export/export-actions.sh +++ b/tasks/export/export-actions.sh @@ -6,16 +6,16 @@ do N=$(basename ${SVG} .svg) parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/actions/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/actions/16/${N}.png ${SVG}" \ - "inkscape -w 22 -h 22 -o _build/aleta/actions/22/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/actions/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/actions/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/actions/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/actions/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/actions/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/actions/128/${N}.png ${SVG}" \ - "inkscape -w 256 -h 256 -o _build/aleta/actions/256/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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" mv ${SVG} _build/icons-e/actions/ fi diff --git a/tasks/export/export-animations.sh b/tasks/export/export-animations.sh index 965ce52..08a2a10 100755 --- a/tasks/export/export-animations.sh +++ b/tasks/export/export-animations.sh @@ -6,14 +6,14 @@ do N=$(basename ${SVG} .svg) parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/animations/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/animations/16/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/animations/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/animations/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/animations/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/animations/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/animations/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/animations/128/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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" mv ${SVG} _build/icons-e/animations/ fi diff --git a/tasks/export/export-apps.sh b/tasks/export/export-apps.sh index 12589f9..e40990e 100755 --- a/tasks/export/export-apps.sh +++ b/tasks/export/export-apps.sh @@ -6,18 +6,17 @@ do N=$(basename ${SVG} .svg) echo exporting ${SVG} - parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/apps/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/apps/16/${N}.png ${SVG}" \ - "inkscape -w 22 -h 22 -o _build/aleta/apps/22/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/apps/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/apps/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/apps/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/apps/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/apps/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/apps/128/${N}.png ${SVG}" \ - "inkscape -w 256 -h 256 -o _build/aleta/apps/256/${N}.png ${SVG}" >/dev/null - + 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" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/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" mv ${SVG} _build/icons-e/apps/ fi done diff --git a/tasks/export/export-categories.sh b/tasks/export/export-categories.sh index f9b9cf7..9bdd6e7 100755 --- a/tasks/export/export-categories.sh +++ b/tasks/export/export-categories.sh @@ -6,15 +6,15 @@ do N=$(basename ${SVG} .svg) parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/categories/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/categories/16/${N}.png ${SVG}" \ - "inkscape -w 22 -h 22 -o _build/aleta/categories/22/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/categories/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/categories/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/categories/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/categories/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/categories/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/categories/128/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "inkscape -w 128 -h 128 -o _build/aleta/categories/128/${N}.png ${SVG} >/dev/null 2>&1" mv ${SVG} _build/icons-e/categories/ fi diff --git a/tasks/export/export-devices.sh b/tasks/export/export-devices.sh index f9bb819..b20342d 100755 --- a/tasks/export/export-devices.sh +++ b/tasks/export/export-devices.sh @@ -1,4 +1,4 @@ -#! /bin/bash + #! /bin/bash for SVG in _build/icons-t/devices/*.svg do @@ -6,12 +6,12 @@ do N=$(basename ${SVG} .svg) parallel ::: \ - "inkscape -w 16 -h 16 -o _build/aleta/devices/16/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/devices/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/devices/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/devices/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/devices/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/devices/96/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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" mv ${SVG} _build/icons-e/devices/ fi diff --git a/tasks/export/export-mimetypes.sh b/tasks/export/export-mimetypes.sh index 1a23ecf..f7c70b9 100755 --- a/tasks/export/export-mimetypes.sh +++ b/tasks/export/export-mimetypes.sh @@ -6,16 +6,16 @@ do N=$(basename ${SVG} .svg) parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/mimetypes/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/mimetypes/16/${N}.png ${SVG}" \ - "inkscape -w 22 -h 22 -o _build/aleta/mimetypes/22/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/mimetypes/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/mimetypes/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/mimetypes/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/mimetypes/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/mimetypes/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/mimetypes/128/${N}.png ${SVG}" \ - "inkscape -w 256 -h 256 -o _build/aleta/mimetypes/256/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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" mv ${SVG} _build/icons-e/mimetypes/ fi diff --git a/tasks/export/export-places.sh b/tasks/export/export-places.sh index 291b4c0..3697262 100755 --- a/tasks/export/export-places.sh +++ b/tasks/export/export-places.sh @@ -5,17 +5,18 @@ do if [[ -f "${SVG}" ]]; then N=$(basename ${SVG} .svg) + echo exporting ${SVG} parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/places/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/places/16/${N}.png ${SVG}" \ - "inkscape -w 22 -h 22 -o _build/aleta/places/22/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/places/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/places/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/places/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/places/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/places/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/places/128/${N}.png ${SVG}" \ - "inkscape -w 256 -h 256 -o _build/aleta/places/256/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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" mv ${SVG} _build/icons-e/places/ fi diff --git a/tasks/export/export-status.sh b/tasks/export/export-status.sh index e0a79b5..47b4f67 100755 --- a/tasks/export/export-status.sh +++ b/tasks/export/export-status.sh @@ -6,15 +6,15 @@ do N=$(basename ${SVG} .svg) parallel ::: \ - "inkscape -w 8 -h 8 -o _build/aleta/status/8/${N}.png ${SVG}" \ - "inkscape -w 16 -h 16 -o _build/aleta/status/16/${N}.png ${SVG}" \ - "inkscape -w 24 -h 24 -o _build/aleta/status/24/${N}.png ${SVG}" \ - "inkscape -w 32 -h 32 -o _build/aleta/status/32/${N}.png ${SVG}" \ - "inkscape -w 48 -h 48 -o _build/aleta/status/48/${N}.png ${SVG}" \ - "inkscape -w 64 -h 64 -o _build/aleta/status/64/${N}.png ${SVG}" \ - "inkscape -w 96 -h 96 -o _build/aleta/status/96/${N}.png ${SVG}" \ - "inkscape -w 128 -h 128 -o _build/aleta/status/128/${N}.png ${SVG}" \ - "inkscape -w 256 -h 256 -o _build/aleta/status/256/${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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "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} >/dev/null 2>&1" \ + "inkscape -w 256 -h 256 -o _build/aleta/status/256/${N}.png ${SVG} >/dev/null 2>&1" mv ${SVG} _build/icons-e/status/ fi