Browse Source

Removed included level.

Mac App Bundle now starts only with added levels and a modified config file.
Thomas Buck 11 years ago
parent
commit
2e3f366c04
4 changed files with 19 additions and 7 deletions
  1. 1
    1
      data/OpenRaider.init
  2. BIN
      data/Yvel.tr2
  3. 17
    4
      mac_dist/OpenRaider.sh
  4. 1
    2
      setup.sh

+ 1
- 1
data/OpenRaider.init View File

@@ -34,7 +34,7 @@ DumpTexture=false
34 34
 #Music=tr4/039_TR4_Title_Q10.wav
35 35
 #Music=tr4/103_A3_Out_Night.wav
36 36
 #Music=tr4/108_A8_Coastal.wav
37
-Map=custom/Yvel.tr2
37
+#Map=custom/Yvel.tr2
38 38
 #Map=custom/villa2.phd
39 39
 #Map=custom/fenician1.phd
40 40
 #Map=custom/1984.tr2

BIN
data/Yvel.tr2 View File


+ 17
- 4
mac_dist/OpenRaider.sh View File

@@ -1,19 +1,32 @@
1 1
 #!/bin/sh
2 2
 cd `dirname $0`
3
-if [ ! -d "~/.OpenRaider" ]; then
3
+if [ ! -d "${HOME}/.OpenRaider" ]; then
4 4
     echo "Setting up OpenRaider for user $USER..."
5 5
     mkdir -p ~/.OpenRaider
6 6
     cp ../Resources/defaults/OpenRaider.init ~/.OpenRaider/
7 7
     cp ../Resources/defaults/custom.cfg ~/.OpenRaider/
8
-    mkdir -p ~/.OpenRaider/paks/custom
8
+    mkdir -p ~/.OpenRaider/paks
9 9
     mkdir -p ~/.OpenRaider/music
10 10
     mkdir -p ~/.OpenRaider/data
11 11
     mkdir -p ~/.OpenRaider/sshots
12 12
     cp ../Resources/defaults/*.tga ~/.OpenRaider/data
13 13
     cp ../Resources/defaults/*.wav ~/.OpenRaider/data
14 14
     cp ../Resources/defaults/*.ttf ~/.OpenRaider/data
15
-    cp ../Resources/defaults/*.tr2 ~/.OpenRaider/paks/custom
16 15
     echo "DONE"
17 16
     osascript -e 'tell app "System Events" to display alert "Initial Configuration stored in ~/.OpenRaider\n\nView and edit OpenRaider.init to your needs..."'
18 17
 fi
19
-./OpenRaider-bin
18
+if [[ ! -n `find "${HOME}/.OpenRaider/paks" -type f -exec echo Found {} \;` ]]; then
19
+    echo "Missing level files!"
20
+    osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace level files there and edit ~/.OpenRaider/OpenRaider.init"'
21
+else
22
+    if [[ ! `diff "${HOME}/.OpenRaider/OpenRaider.init" "../Resources/defaults/OpenRaider.init"` ]]; then
23
+        if [[ ! `diff "${HOME}/.OpenRaider/custom.cfg" "../Resources/defaults/custom.cfg"` ]]; then
24
+            echo "Unconfigured user!"
25
+            osascript -e 'tell app "System Events" to display alert "Please edit ~/.OpenRaider/OpenRaider.init or ~/.OpenRaider/custom.cfg"'
26
+        else
27
+            ./OpenRaider-bin
28
+        fi
29
+    else
30
+        ./OpenRaider-bin
31
+    fi
32
+fi

+ 1
- 2
setup.sh View File

@@ -6,12 +6,11 @@ echo "Setting up OpenRaider for user $USER..."
6 6
 mkdir -p ~/.OpenRaider
7 7
 cp data/OpenRaider.init ~/.OpenRaider/
8 8
 cp data/custom.cfg ~/.OpenRaider/
9
-mkdir -p ~/.OpenRaider/paks/custom
9
+mkdir -p ~/.OpenRaider/paks
10 10
 mkdir -p ~/.OpenRaider/music
11 11
 mkdir -p ~/.OpenRaider/data
12 12
 mkdir -p ~/.OpenRaider/sshots
13 13
 cp data/*.tga ~/.OpenRaider/data
14 14
 cp data/*.wav ~/.OpenRaider/data
15 15
 cp data/*.ttf ~/.OpenRaider/data
16
-cp data/*.tr2 ~/.OpenRaider/paks/custom
17 16
 echo "DONE"

Loading…
Cancel
Save