Commit: daedf5be8c077689af1987fd6932568d9ad64a9f
Author: Campbell Barton
Date:   Mon Jan 13 23:18:25 2014 +1100
https://developer.blender.org/rBdaedf5be8c077689af1987fd6932568d9ad64a9f

UI Icons: use a python script rather then a shell (for non unix systems)

===================================================================

D       release/datafiles/blender_icons.sh
A       release/datafiles/blender_icons_update.py
D       release/datafiles/prvicons.sh
A       release/datafiles/prvicons_update.py

===================================================================

diff --git a/release/datafiles/blender_icons.sh 
b/release/datafiles/blender_icons.sh
deleted file mode 100755
index 62746d0..0000000
--- a/release/datafiles/blender_icons.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-# This script updates icons from the SVG file
-
-BASEDIR=$(dirname "$0")
-
-inkscape "$BASEDIR/blender_icons.svg" --export-dpi=90  --without-gui 
--export-png="$BASEDIR/blender_icons16.png"
-inkscape "$BASEDIR/blender_icons.svg" --export-dpi=180 --without-gui 
--export-png="$BASEDIR/blender_icons32.png"
-
diff --git a/release/datafiles/blender_icons_update.py 
b/release/datafiles/blender_icons_update.py
new file mode 100755
index 0000000..6f8f366
--- /dev/null
+++ b/release/datafiles/blender_icons_update.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+# This script updates icons from the SVG file
+import os
+
+BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
+
+cmd = 'inkscape "%sblender_icons.svg" --export-dpi=90  --without-gui 
--export-png="%sblender_icons16.png"' % (BASEDIR, BASEDIR)
+os.system(cmd)
+cmd = 'inkscape "%sblender_icons.svg" --export-dpi=180 --without-gui 
--export-png="%sblender_icons32.png"' % (BASEDIR, BASEDIR)
+os.system(cmd)
+
diff --git a/release/datafiles/prvicons.sh b/release/datafiles/prvicons.sh
deleted file mode 100755
index 95546ff..0000000
--- a/release/datafiles/prvicons.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-# This script updates icons from the SVG file
-
-BASEDIR=$(dirname "$0")
-
-inkscape "$BASEDIR/prvicons.svg" --without-gui 
--export-png="$BASEDIR/prvicons.png"
-
diff --git a/release/datafiles/prvicons_update.py 
b/release/datafiles/prvicons_update.py
new file mode 100755
index 0000000..ecc466a
--- /dev/null
+++ b/release/datafiles/prvicons_update.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python3
+
+# This script updates icons from the SVG file
+import os
+
+BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
+
+cmd = 'inkscape "%sprvicons.svg" --without-gui --export-png="%sprvicons.png"' 
% (BASEDIR, BASEDIR)
+os.system(cmd)
+

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to