Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

setup_mac.sh 863B

1234567891011121314151617181920
  1. #!/bin/sh
  2. cd `dirname $0`
  3. if [ ! -d "${HOME}/.OpenRaider" ]; then
  4. echo "Setting up OpenRaider for user $USER..."
  5. mkdir -p ~/.OpenRaider
  6. mkdir -p ~/.OpenRaider/paks
  7. mkdir -p ~/.OpenRaider/music
  8. mkdir -p ~/.OpenRaider/data
  9. mkdir -p ~/.OpenRaider/sshots
  10. cp ../Resources/defaults/OpenRaider.ini ~/.OpenRaider/
  11. cp ../Resources/defaults/*.tga ~/.OpenRaider/data
  12. echo "DONE"
  13. osascript -e 'tell app "System Events" to display alert "Initial Configuration stored in ~/.OpenRaider\n\nView and edit OpenRaider.ini to your needs..."'
  14. fi
  15. if [[ ! -n `find "${HOME}/.OpenRaider/paks" -type f -exec echo Found {} \;` ]]; then
  16. echo "Missing level files!"
  17. osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace original Tomb Raider level files there!"'
  18. else
  19. ./OpenRaider
  20. fi