forked from dspeedF95/SoA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·33 lines (27 loc) · 958 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Original file from Girl Life ecv - Cat
set -Eexo pipefail
# Set those lines to fit your setup.
# This is where glife.qsp will be copied. If you don't want to move it just comment (#) the line below.
#DESTDIR=../SOB
# The file that will be generated or open
QSPFILE=SOA_466.qsp
#######################################################################
./txtmerge.py main soa466.txt
if [[ "$OSTYPE" == "linux-gnu" ]] || [[ "$OSTYPE" == "linux-musl" ]]; then
./txt2gam.linux soa466.txt "${QSPFILE}" 1> /dev/null
elif [[ "$OSTYPE" == "darwin"* ]]; then
./txt2gam.mac soa466.txt "${QSPFILE}" 1> /dev/null
elif [[ "$OSTYPE" == "msys" ]]; then
if [[ "$MSYSTEM_CARCH" == "x86_64" ]]; then
./txt2gam64.exe soa466.txt "${QSPFILE}" 1> /dev/null
else
./txt2gam.exe soa466.txt "${QSPFILE}" 1> /dev/null
fi
else
echo "Unsupported Operating System"
exit 1
fi
if [ -d "${DESTDIR}" ]; then
cp --reflink=auto "${QSPFILE}" "${DESTDIR}"
fi