From 978aa21e02d8a24a349ba5d6b0d17200752bc103 Mon Sep 17 00:00:00 2001 From: MisterSheeple <27652712+MisterSheeple@users.noreply.github.com> Date: Mon, 5 Aug 2024 04:09:57 +0000 Subject: [PATCH] Create build-docker.sh --- build-docker.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 build-docker.sh diff --git a/build-docker.sh b/build-docker.sh new file mode 100644 index 00000000..f4ee9cc8 --- /dev/null +++ b/build-docker.sh @@ -0,0 +1,13 @@ +docker build -t ac-decomp . +if [ -e /bin/curl ]; then + curl -O https://files.decomp.dev/compilers_latest.zip +elif [ -e /bin/wget ]; then + wget https://files.decomp.dev/compilers_latest.zip +else + echo "You do not seem to have curl or wget installed on this system. Please install one or the other to continue." + exit 0 +fi + +mkdir compilers_temp && if [ -e /bin/unzip ]; then unzip compilers_latest.zip -d compilers_temp; else echo "You do not seem to have unzip installed on this system. Please install it to continue."; exit 1; fi +mv compilers_temp/GC/1.2.5n/ tools/ && mv compilers_temp/GC/1.3.2/ tools/ && mv compilers_temp/GC/1.3.2r/ tools/ +echo "Docker image setup is now complete. You may proceed with the instructions."