diff --git a/tasks/export/export-actions.sh b/tasks/export/export-actions.sh index 32f74c6..a405d30 100755 --- a/tasks/export/export-actions.sh +++ b/tasks/export/export-actions.sh @@ -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 diff --git a/tasks/export/export-animations.sh b/tasks/export/export-animations.sh index 16a8361..876e1b1 100755 --- a/tasks/export/export-animations.sh +++ b/tasks/export/export-animations.sh @@ -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 diff --git a/tasks/export/export-apps.sh b/tasks/export/export-apps.sh index 852b452..dc35bb9 100755 --- a/tasks/export/export-apps.sh +++ b/tasks/export/export-apps.sh @@ -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 diff --git a/tasks/export/export-categories.sh b/tasks/export/export-categories.sh index e4f5c28..43495f4 100755 --- a/tasks/export/export-categories.sh +++ b/tasks/export/export-categories.sh @@ -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 diff --git a/tasks/export/export-devices.sh b/tasks/export/export-devices.sh index a314eae..2bd7a2f 100755 --- a/tasks/export/export-devices.sh +++ b/tasks/export/export-devices.sh @@ -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 diff --git a/tasks/export/export-emblems.sh b/tasks/export/export-emblems.sh index 62332d6..f110d29 100755 --- a/tasks/export/export-emblems.sh +++ b/tasks/export/export-emblems.sh @@ -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 diff --git a/tasks/export/export-mimetypes.sh b/tasks/export/export-mimetypes.sh index c40e314..b9edc61 100755 --- a/tasks/export/export-mimetypes.sh +++ b/tasks/export/export-mimetypes.sh @@ -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 diff --git a/tasks/export/export-places.sh b/tasks/export/export-places.sh index 38cff9f..7bad00e 100755 --- a/tasks/export/export-places.sh +++ b/tasks/export/export-places.sh @@ -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 diff --git a/tasks/export/export-status.sh b/tasks/export/export-status.sh index 82b706c..b8fda44 100755 --- a/tasks/export/export-status.sh +++ b/tasks/export/export-status.sh @@ -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