updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / arbaro / arbaro.sh
blob900993da6473a844e14b66ac902efca14dfc56cd
1 #!/bin/bash
3 ######## CONFIGURATION OPTIONS ########
4 JAVA_PROGRAM_DIR="/opt/java/jre/bin/"
5 PROGRAM_DIR="/usr/share/arbaro"
6 #######################################
9 #Make home directory
11 if [ -e $HOME/arbaro/ ]
12 then
13 cd $HOME/arbaro/
14 java -jar $PROGRAM_DIR/arbaro.jar
16 exit 0
17 else
18 mkdir $HOME/arbaro/
19 mkdir $HOME/arbaro/{pov,trees}
20 cp $PROGRAM_DIR/pov/*.* $HOME/arbaro/pov
21 cp $PROGRAM_DIR/trees/*.* $HOME/arbaro/trees
22 cd $HOME/arbaro/
23 java -jar $PROGRAM_DIR/arbaro.jar