-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrunToBuild
58 lines (33 loc) · 1.06 KB
/
runToBuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
#
# Modification History
#
# 2010-April-2 Andy Sommerville
# - Added a few "|| exit 1" to terminate as soon as error occurs.
# - Read menu choice from argv[1].
# - Added "-p" to mkdir to suppress "already exists" message.
# - Added automatic backup of "resourceCache". (wish I'd thought of that a few minutes ago....)
#
# 2007-November-12 Jason Rohrer
# Copied from Cultivation.
#
cd CastleDoctrine
chmod u+x ./configure
./configure $@ || exit 1
cd gameSource
echo "Building CastleDoctrine..."
make || exit 1
cd ../..
mkdir -p graphics
mkdir -p gameElements
mkdir -p settings
mkdir -p languages
cp CastleDoctrine/gameSource/CastleDoctrine ./CastleDoctrineApp
cp CastleDoctrine/documentation/Readme.txt .
cp CastleDoctrine/no_copyright.txt .
cp CastleDoctrine/gameSource/graphics/* ./graphics
cp CastleDoctrine/gameSource/settings/* ./settings
cp CastleDoctrine/gameSource/languages/* ./languages
cp CastleDoctrine/gameSource/language.txt ./
cp -r CastleDoctrine/gameSource/gameElements/* ./gameElements
echo "Run CastleDoctrineApp to play."