summaryrefslogtreecommitdiff
path: root/autobuild.sh
diff options
context:
space:
mode:
authorKevin Day <blame582@gmail.com>2008-09-30 09:15:17 +0000
committerKevin Day <blame582@gmail.com>2008-09-30 09:15:17 +0000
commitb87bcbd23760e33ec3a20e0faaf2e5ef4a85d6ad (patch)
tree3f9bcd5e248a19c706337055b7a1bc023154d0b9 /autobuild.sh
parent7aa0b5cadf9f37c7d9395aa44e0c461e2b539763 (diff)
downloadmana-b87bcbd23760e33ec3a20e0faaf2e5ef4a85d6ad.tar.gz
mana-b87bcbd23760e33ec3a20e0faaf2e5ef4a85d6ad.tar.bz2
mana-b87bcbd23760e33ec3a20e0faaf2e5ef4a85d6ad.tar.xz
mana-b87bcbd23760e33ec3a20e0faaf2e5ef4a85d6ad.zip
fixed the update.sh and autobuild.sh
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-xautobuild.sh13
1 files changed, 8 insertions, 5 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 &