forked from remigastaldi/Indie-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·32 lines (28 loc) · 1.12 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
CORE=$(grep -c ^processor /proc/cpuinfo)
mkdir -p ~/bin
mkdir -p ~/lib/Indie-Studio
case $SHELL in
*/zsh)
/bin/echo "" >> ~/.zshrc
/bin/echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"~/lib/Indie-Studio/lib/" >> ~/.zshrc
/bin/echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"~/lib/Indie-Studio/lib/OGRE" >> ~/.zshrc
/bin/echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"~/lib/Indie-Studio/lib/cegui-0.8" >> ~/.zshrc
/bin/echo 'export PATH=$PATH{}:'"~/bin" >> ~/.zshrc
;;
*/bash)
/bin/echo "" >> ~/.basrc
/bin/echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"~/lib/Indie-Studio/lib/" >> ~/.bashrc
/bin/echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"~/lib/Indie-Studio/lib/OGRE" >> ~/.bashrc
/bin/echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"~/lib/Indie-Studio/lib/cegui-0.8" >> ~/.bashrc
/bin/echo 'export PATH=$PATH{}:'"~/bin" >> ~/.bashrc
;;
*)
esac
cd Indie-Studio-Dependencies/linux/
tar -xvf bin_include_share.tar.bz2
tar -xvf lib.tar.bz2
cp -r lib ~/lib/Indie-Studio
tar -xvf ogre_plugins.tar.bz2
cp -r lib/OGRE ~/lib/Indie-Studio/lib
cd -