浏览代码

Linux install.sh updated

Arthur Yefimov 3 年之前
父节点
当前提交
8a34d7d91d
共有 1 个文件被更改,包括 8 次插入3 次删除
  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..."
 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+..."
 cd Data/bin/OfrontPlus/Target/Linux_amd64/Bin
 ./build
 cd ../../../../../..
 
+echo "======================="
 echo "Building Free Oberon..."
 cd src
 ./make.sh
 cd ..
 
+echo "======================="
 echo "Done."
 echo "If everything went ok, you can now run: ./FreeOberon"