dk-3ds-build.sh 512 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # $1 = branch
  3. [ -z "$DEVKITPRO" ] && { echo "DEVKITPRO environment variable must be set!"; exit 1; }
  4. [ -z "$1" ] && { echo "argument 1 required."; exit 1; }
  5. export DEVKITPRO=`cygpath -u "$DEVKITPRO"`
  6. export PATH="$PATH:$DEVKITPRO/devkitARM/bin"
  7. export PATH="$PATH:$DEVKITPRO/tools/bin"
  8. cd /mzx-build-workingdir
  9. mkdir -p zips
  10. cd megazeux
  11. git checkout $1
  12. arch/3ds/CONFIG.3DS
  13. make debuglink -j8
  14. make archive
  15. mv build/dist/3ds/* /mzx-build-workingdir/zips/
  16. make distclean