build.sh 703 B

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