Pārlūkot izejas kodu

Linux install.sh updated

Arthur Yefimov 3 gadi atpakaļ
vecāks
revīzija
8a34d7d91d
1 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  1. 8 3
      install.sh

+ 8 - 3
install.sh

@@ -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"