update-subtrees.sh 832 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # Because git subtree doesn't provide an easy way to automatically merge changes
  4. # from upstream, this shell script will do the job instead.
  5. # If you don't have a POSIX-compatible shell on your system, feel free to use
  6. # this as a reference for what commands to run, rather than running it directly.
  7. # Change to the directory containing this script, or exit with failure
  8. # to prevent git subtree scrawling over some other repo.
  9. cd "$(dirname "$0")" || exit 1
  10. # Merge changes from the libco repository.
  11. git subtree pull --prefix=libco https://github.com/higan-emu/libco.git master
  12. # Merge changes from SameBoy
  13. git subtree pull --prefix=bsnes/gb https://github.com/LIJI32/SameBoy.git master
  14. echo "If SameBoy updated, remember to update the SameBoy version"
  15. echo "in bsnes/target-bsnes/presentation/presentation.cpp !"