diff options
-rwxr-xr-x | autobuild.sh | 13 | ||||
-rwxr-xr-x | update.sh | 15 |
2 files changed, 16 insertions, 12 deletions
diff --git a/autobuild.sh b/autobuild.sh index c5160439..d15bd853 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -1,8 +1,10 @@ #!/bin/sh # auto build script based on fedora but usable for other distros -#author=Blame <blame@aethyra.com> -#last modified date 2008-09-16 Blame - +#author=Blame <blame582@gmail.com> +#last modified date 2008-09-29 Blameu +# right now thes should be ok for testing +file=/etc/fedora-release +file1=/etc/lsb-release echo "Generating build information using aclocal, autoheader, automake and autoconf." echo @@ -25,14 +27,15 @@ make echo echo "now running make install please input your root password"; -if [ /etc/fedora-release ]; then +# we must test for fedora first otherwise we get an error +if [ -e $file ]; then echo "Fedora found"; su -c "make install"; su -c "make clean"; echo "Done"; aethyra & exit 1; -elif [ /etc/lsb-release ];then +elif [ -e $file1 ];then echo "ubuntu found"; sudo make install; aethyra & @@ -2,11 +2,12 @@ #automated script to update aethyra from SVN #author=Blame <blame@aethyra.com> #last modified 2008-09-21 Blame - -# test for the aethyra client -if [ ~/src/aethyra ]; then +file=~/src/aethyra +file1=~/src +# test for the aethyra client folder +if [ -e $file ]; then #change to the aethyra directory - cd ~/src/aethyra; + cd $file; #issue the svn update command svn up; #issue the autobuild command @@ -15,11 +16,11 @@ if [ ~/src/aethyra ]; then exit 1; else #make directory /home/user-name/src - mkdir ~/src + mkdir $file1 #change to directory /home/user-name/src - cd ~/src + cd $file1 #execute the svn command to download the client files - svn co svn://209.168.213.109/client/trunk aethyra + svn co svn://www.aethyra.org/client/trunk aethyra #issue the auto build script to compile the client ./autobuild echo "congratulations on installing aethyra enjoy" |