Revision: 59550
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59550
Author:   campbellbarton
Date:     2013-08-27 10:03:37 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
add icons utility make target.

Modified Paths:
--------------
    trunk/blender/GNUmakefile
    trunk/blender/release/datafiles/blender_icons.sh
    trunk/blender/release/datafiles/prvicons.sh

Modified: trunk/blender/GNUmakefile
===================================================================
--- trunk/blender/GNUmakefile   2013-08-27 08:13:54 UTC (rev 59549)
+++ trunk/blender/GNUmakefile   2013-08-27 10:03:37 UTC (rev 59550)
@@ -184,6 +184,7 @@
        @echo "  * check_spelling_py    - check for spelling errors (Python 
only)"
        @echo ""
        @echo "Utilities (not associated with building blender)"
+       @echo "  * icons    - updates PNG icons from SVG files."
        @echo "  * tbz      - create a compressed svn export 
'blender_archive.tar.bz2'"
        @echo ""
        @echo "Documentation Targets (not associated with building blender)"
@@ -322,7 +323,11 @@
        rm -rf blender_archive/
        @echo "blender_archive.tar.bz2 written"
 
+icons:
+       $(BLENDER_DIR)/release/datafiles/blender_icons.sh
+       $(BLENDER_DIR)/release/datafiles/prvicons.sh
 
+
 # -----------------------------------------------------------------------------
 # Documentation
 #

Modified: trunk/blender/release/datafiles/blender_icons.sh
===================================================================
--- trunk/blender/release/datafiles/blender_icons.sh    2013-08-27 08:13:54 UTC 
(rev 59549)
+++ trunk/blender/release/datafiles/blender_icons.sh    2013-08-27 10:03:37 UTC 
(rev 59550)
@@ -1,5 +1,8 @@
 #!/bin/sh
 # This script updates icons from the SVG file
 
-inkscape blender_icons.svg --export-dpi=90  --without-gui 
--export-png=blender_icons16.png
-inkscape blender_icons.svg --export-dpi=180 --without-gui 
--export-png=blender_icons32.png
+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
+

Modified: trunk/blender/release/datafiles/prvicons.sh
===================================================================
--- trunk/blender/release/datafiles/prvicons.sh 2013-08-27 08:13:54 UTC (rev 
59549)
+++ trunk/blender/release/datafiles/prvicons.sh 2013-08-27 10:03:37 UTC (rev 
59550)
@@ -1,4 +1,7 @@
 #!/bin/sh
 # This script updates icons from the SVG file
 
-inkscape prvicons.svg --without-gui --export-png=prvicons.png
+BASEDIR=$(dirname $0)
+
+inkscape $BASEDIR/prvicons.svg --without-gui --export-png=$BASEDIR/prvicons.png
+

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

Reply via email to