source: nikanabo/current/xbackup.sh@ 763

Last change on this file since 763 was 185, checked in by geyser, 18 years ago
File size: 1009 bytes
Line 
1#!/bin/sh
2cd dat/original
3if [ ! -e ../../../GameDataFolder ]
4then
5 echo "Can't find GameDataFolder!"
6 echo "Make sure this is Oni/nikanabo"
7else
8 echo "GameDataFolder detected!"
9 if [ -e backupok.txt ]
10 then
11 echo "Game content already backed up."
12 else
13 echo "Backing up game content..."
14 cp ../../../GameDataFolder/*.dat .
15 cp ../../../GameDataFolder/*.raw .
16 cp ../../../GameDataFolder/*.sep .
17 echo "Game content backup complete."
18 mv nobackup.txt backupok.txt
19 fi
20fi
21cd ../..
22cd bsl/mybackup
23if [ ! -e ../../../GameDataFolder/IGMD ]
24then
25 echo "Can't find IGMD folder!"
26 echo "Make sure this is Oni/nikanabo"
27else
28 echo "IGMD folder detected!"
29 if [ -e backupok.txt ]
30 then
31 echo "Level logic already backed up."
32 else
33 echo "Backing up level logic..."
34 cp -r ../../../GameDataFolder/IGMD IGMD
35 echo "Level logic backup complete."
36 mv nobackup.txt backupok.txt
37 fi
38fi
39cd ../..
Note: See TracBrowser for help on using the repository browser.