summaryrefslogblamecommitdiff
path: root/update.sh
blob: b72539c4503e36aef6f429df5ad77fdb0c15c9ee (plain) (tree)
1
2
3
4
5
6
7
8
9
           
                                            
                                 
                                  



                                     
                                        
                 

                                     





                                           
                    
                                                
                 

                                                             

                                        
                                                          
                      


                                                          
#!/bin/bash
#automated script to update aethyra from git
#author=Blame <blame@aethyra.com>
#last modified 2008-12-03 Tametomo
file=~/src/aethyra
file1=~/src
# test for the aethyra client folder 
if [ -e $file ]; then
	#change to the aethyra directory
	cd $file;
	#issue the git update command
	git pull;
	#issue the autobuild command 
	./autobuild.sh;
	echo "Aethyra has been updated"
	exit 1;
else 
	#make directory /home/user-name/src
	mkdir $file1
	#change to directory /home/user-name/src
	cd $file1
	#execute the git command to download the client files
	git clone git://gitorious.org/tmw/aethyra.git
	#change to the aethyra directory
	cd $file;
	#issue the auto build script to compile the client
	./autobuild.sh
	echo "congratulations on installing aethyra enjoy"
	exit 1;
fi