123456789101112131415161718192021222324252627 |
- #!/usr/bin/env bash
- set -x
- # 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=../GL_ECV
- # The file that will be generated or open
- QSPFILE=bestmod.qsp
- #######################################################################
- ./txtmerge.py locations bestmod.txt
- if [[ "$OSTYPE" == "linux-gnu" ]]; then
- ./txt2gam.linux bestmod.txt "${QSPFILE}" 1> /dev/null
- elif [[ "$OSTYPE" == "darwin"* ]]; then
- ./txt2gam.mac bestmod.txt "${QSPFILE}" 1> /dev/null
- elif [[ "$OSTYPE" == "msys" ]]; then
- if [[ "$MSYSTEM_CARCH" == "x86_64" ]]; then
- ./txt2gam64.exe bestmod.txt "${QSPFILE}" 1> /dev/null
- else
- ./txt2gam.exe bestmod.txt "${QSPFILE}" 1> /dev/null
- fi
- fi
- if [ -d "${DESTDIR}" ]; then
- cp --reflink=auto "${QSPFILE}" "${DESTDIR}"
- fi
|