resave-everything.sh 355 B

1234567891011121314151617
  1. #!/bin/bash
  2. # Resave all levels and worldmaps in both the main game and the addons
  3. set -e
  4. make
  5. if [ $# -eq 0 ]; then
  6. ./supertux-editor.exe --resave ../addons-src/*/*/*/*/*.{stl,stwm} ../addons-src/*/*/*/*.{stl,stwm}
  7. ./supertux-editor.exe --resave ../supertux/data/levels/*/*.{stl,stwm}
  8. else
  9. ./supertux-editor.exe --resave "$@"
  10. fi
  11. # EOF #