build.sh 831 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. set -x
  3. # Set those lines to fit your setup.
  4. # This is where glife.qsp will be copied. If you don't want to move it just comment (#) the line below.
  5. #DESTDIR=../GL_ECV
  6. # The file that will be generated or open
  7. QSPFILE=bestmod.qsp
  8. #######################################################################
  9. ./txtmerge.py locations bestmod.txt
  10. if [[ "$OSTYPE" == "linux-gnu" ]]; then
  11. ./txt2gam.linux bestmod.txt "${QSPFILE}" 1> /dev/null
  12. elif [[ "$OSTYPE" == "darwin"* ]]; then
  13. ./txt2gam.mac bestmod.txt "${QSPFILE}" 1> /dev/null
  14. elif [[ "$OSTYPE" == "msys" ]]; then
  15. if [[ "$MSYSTEM_CARCH" == "x86_64" ]]; then
  16. ./txt2gam64.exe bestmod.txt "${QSPFILE}" 1> /dev/null
  17. else
  18. ./txt2gam.exe bestmod.txt "${QSPFILE}" 1> /dev/null
  19. fi
  20. fi
  21. if [ -d "${DESTDIR}" ]; then
  22. cp --reflink=auto "${QSPFILE}" "${DESTDIR}"
  23. fi