summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2014-11-11 19:21:56 +0200
committerBogdan Devichev <b.devichev@samsung.com>2014-11-11 19:21:56 +0200
commit818dfadfef024e72b31912b7cbecee803d488997 (patch)
tree5a0760d14c69d1d803a81ad72d5d77bf5fc4a73a
parent0edfd9515415ab82284720cb2041e7fbb4c39837 (diff)
[Blender_plugins] Installation to Linux is added.
-rwxr-xr-xautogen.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..af630f1
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,23 @@
1BLENDER_SCRIPTS_PATH="not checked"
2version="unknown"
3
4version=`blender -v | head -n 2 | tail -n 1 | grep -o "[0-9]*\.[0-9]*"`
5
6echo "Replacing of plugins..."
7
8case "$OSTYPE" in
9 solaris*) BLENDER_SCRIPTS_PATH=$HOME/.config/blender/$version/scripts/addons ;;
10 darwin*) echo "Support of OSX will be in future. See README.";;#TODO installing on OSX
11 linux*) BLENDER_SCRIPTS_PATH=$HOME/.config/blender/$version/scripts/addons ;;
12 bsd*) BLENDER_SCRIPTS_PATH=$HOME/.config/blender/$version/scripts/addons ;;
13 win*) echo "Support of Windows will be in future. See README.";;#TODO installing on Windows
14 *) BLENDER_SCRIPTS_PATH="unknown: $OSTYPE" ;;
15esac
16
17mkdir -p $BLENDER_SCRIPTS_PATH;
18
19for filename in `cd To_Blender_scripts && ls -A`; do
20 cat To_Blender_scripts/$filename > $BLENDER_SCRIPTS_PATH/$filename
21done
22
23echo "Plugins installed"