|
@@ -4,20 +4,25 @@ echo "This script will install Free Oberon."
|
|
|
|
|
|
echo "Installing Allegro5, Git and GCC..."
|
|
echo "Installing Allegro5, Git and GCC..."
|
|
sudo apt-get update
|
|
sudo apt-get update
|
|
-sudo apt-get install -y liballegro5-dev git gcc build-essential
|
|
|
|
|
|
+sudo apt-get install -y git gcc libc-dev liballegro5-dev
|
|
|
|
|
|
-echo "Installing Ofront+ as Git submodule..."
|
|
|
|
-git submodule update --init
|
|
|
|
|
|
+echo "======================="
|
|
|
|
+echo "Downloading Ofront+ if not exists..."
|
|
|
|
+# Only run git command if dot-git subdirectory exists
|
|
|
|
+[ -d ".git" ] && git submodule update --init
|
|
|
|
|
|
|
|
+echo "======================="
|
|
echo "Building Ofront+..."
|
|
echo "Building Ofront+..."
|
|
cd Data/bin/OfrontPlus/Target/Linux_amd64/Bin
|
|
cd Data/bin/OfrontPlus/Target/Linux_amd64/Bin
|
|
./build
|
|
./build
|
|
cd ../../../../../..
|
|
cd ../../../../../..
|
|
|
|
|
|
|
|
+echo "======================="
|
|
echo "Building Free Oberon..."
|
|
echo "Building Free Oberon..."
|
|
cd src
|
|
cd src
|
|
./make.sh
|
|
./make.sh
|
|
cd ..
|
|
cd ..
|
|
|
|
|
|
|
|
+echo "======================="
|
|
echo "Done."
|
|
echo "Done."
|
|
echo "If everything went ok, you can now run: ./FreeOberon"
|
|
echo "If everything went ok, you can now run: ./FreeOberon"
|