1234567891011121314151617181920 |
- #!/bin/sh
- cd `dirname $0`
- if [ ! -d "${HOME}/.OpenRaider" ]; then
- echo "Setting up OpenRaider for user $USER..."
- mkdir -p ~/.OpenRaider
- mkdir -p ~/.OpenRaider/paks
- mkdir -p ~/.OpenRaider/music
- mkdir -p ~/.OpenRaider/data
- mkdir -p ~/.OpenRaider/sshots
- cp ../Resources/defaults/OpenRaider.ini ~/.OpenRaider/
- cp ../Resources/defaults/*.tga ~/.OpenRaider/data
- echo "DONE"
- osascript -e 'tell app "System Events" to display alert "Initial Configuration stored in ~/.OpenRaider\n\nView and edit OpenRaider.ini to your needs..."'
- fi
- if [[ ! -n `find "${HOME}/.OpenRaider/paks" -type f -exec echo Found {} \;` ]]; then
- echo "Missing level files!"
- osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace original Tomb Raider level files there!"'
- else
- ./OpenRaider
- fi
|