From 1b06569fd885b750b2aa6e0cc582ef6993c16742 Mon Sep 17 00:00:00 2001 From: Patrick Jakobsen Date: Fri, 17 Aug 2018 12:02:06 +0200 Subject: [PATCH] Build script for linux systems --- build.sh | 19 +++++++++++++++++++ src/acs_source/compile.sh | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 build.sh create mode 100644 src/acs_source/compile.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..4764bec --- /dev/null +++ b/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash +rm ZMemory.pk3 +cd src + +# compile the ACS source +cd acs_source +bash compile.sh +cd .. + +# Bundle everything that isn't: +# .sh : a shell script. +thin_arg=$1 +if [[ $thin_arg == "source" ]]; then + 7za a -tzip ../ZMemory.pk3 -r -x\!*.sh -xr\!acs_source +else + 7za a -tzip ../ZMemory.pk3 -r -x\!*.sh +fi + + diff --git a/src/acs_source/compile.sh b/src/acs_source/compile.sh new file mode 100644 index 0000000..6e0182c --- /dev/null +++ b/src/acs_source/compile.sh @@ -0,0 +1,4 @@ +#!/bin/bash +acc -i $ACC_ZCOMMON_PATH ZMEMORY.acs ../acs/ZMEMORY.o + +