dk-nds-build.sh 501 B

1234567891011121314151617181920212223242526
  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/nds/CONFIG.NDS
  13. make debuglink -j8
  14. make package
  15. make archive
  16. mv build/dist/nds/* /mzx-build-workingdir/zips/
  17. make distclean