1
1

build.sh 820 B

12345678910111213141516171819202122232425262728
  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=glife.qsp
  8. #######################################################################
  9. ./txtmerge.py locations glife.txt
  10. if [[ "$OSTYPE" == "linux-gnu" ]]; then
  11. ./txt2gam.linux glife.txt "${QSPFILE}" 1> /dev/null
  12. elif [[ "$OSTYPE" == "darwin"* ]]; then
  13. ./txt2gam.mac glife.txt "${QSPFILE}" 1> /dev/null
  14. elif [[ "$OSTYPE" == "msys" ]]; then
  15. if [[ "$MSYSTEM_CARCH" == "x86_64" ]]; then
  16. ./txt2gam64.exe glife.txt "${QSPFILE}" 1> /dev/null
  17. else
  18. ./txt2gam.exe glife.txt "${QSPFILE}" 1> /dev/null
  19. fi
  20. fi
  21. if [ -d "${DESTDIR}" ]; then
  22. cp --reflink=auto "${QSPFILE}" "${DESTDIR}"
  23. fi