Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile5
-rwxr-xr-xrelease/datafiles/blender_icons.sh7
-rwxr-xr-xrelease/datafiles/prvicons.sh5
3 files changed, 14 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0d97d8e7b07..d5570a8e170 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -184,6 +184,7 @@ help:
@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,6 +323,10 @@ tbz:
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
diff --git a/release/datafiles/blender_icons.sh b/release/datafiles/blender_icons.sh
index f923f02aee1..9c2cedaaf6c 100755
--- a/release/datafiles/blender_icons.sh
+++ b/release/datafiles/blender_icons.sh
@@ -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
+
diff --git a/release/datafiles/prvicons.sh b/release/datafiles/prvicons.sh
index 144dd9da362..1a82b4db71c 100755
--- a/release/datafiles/prvicons.sh
+++ b/release/datafiles/prvicons.sh
@@ -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
+