[gnome-themes-standard/wip/jimmac/updated-gtk2: 24/106] Added new render script.
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard/wip/jimmac/updated-gtk2: 24/106] Added new render script.
- Date: Thu, 3 Mar 2016 22:19:18 +0000 (UTC)
commit 1ba99bd19c1cead2c45559e37a960f3047b8b6ab
Author: Juraj Fiala <doctorjellyface riseup net>
Date: Tue Jan 5 16:11:29 2016 +0100
Added new render script.
themes/Adwaita/gtk-2.0/render-assets.sh | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/render-assets.sh b/themes/Adwaita/gtk-2.0/render-assets.sh
new file mode 100755
index 0000000..abc5e93
--- /dev/null
+++ b/themes/Adwaita/gtk-2.0/render-assets.sh
@@ -0,0 +1,24 @@
+#! /bin/bash
+
+INKSCAPE="/usr/bin/inkscape"
+OPTIPNG="/usr/bin/optipng"
+
+SRC_FILE="assets.svg"
+ASSETS_DIR="assets"
+INDEX="assets.txt"
+
+for i in `cat $INDEX`
+do
+if [ -f $ASSETS_DIR/$i.png ]; then
+ echo $ASSETS_DIR/$i.png exists.
+else
+ echo
+ echo Rendering $ASSETS_DIR/$i.png
+ $INKSCAPE --export-id=$i \
+ --export-id-only \
+ --export-background-opacity=0 \
+ --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
+ && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
+fi
+done
+exit 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]