forked from jasonrohrer/OneLife
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdateServerCode.sh
More file actions
executable file
·86 lines (42 loc) · 1.34 KB
/
Copy pathupdateServerCode.sh
File metadata and controls
executable file
·86 lines (42 loc) · 1.34 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# script run on main server to shutdown all servers and update them
# to the latest binary server code. Does NOT update game data for the servers.
# shuts down each server and rebuilds them, one by one, allowing
# players to continue playing on the other servers in the mean time
echo ""
echo "Re-compiling non-running local server code base as a sanity check"
echo ""
cd ~/checkout/minorGems
git pull --tags
cd ~/checkout/OneLife/server
git pull --tags
./configure 1
make
echo "About to post and tag server code."
echo ""
echo -n "Hit [ENTER] when ready: "
read
echo ""
echo "Tagging live server code with OneLife_liveServer"
echo ""
cd ~/checkout/OneLife
git tag -fa OneLife_liveServer -m "Tag automatically generated by data-only diffBundle script."
echo ""
echo "Pushing tag change to central git server"
echo ""
git push
git push origin -f --tags
echo ""
echo "Tagging live minorGems code with OneLife_liveServer"
echo ""
cd ~/checkout/minorGems
git tag -fa OneLife_liveServer -m "Tag automatically generated by data-only diffBundle script."
echo ""
echo "Pushing tag change to central git server"
echo ""
git push
git push origin -f --tags
~/checkout/OneLifeWorking/scripts/updateServerCodeStep1.sh
~/checkout/OneLifeWorking/scripts/updateServerCodeStep2.sh
echo ""
echo "Done updating code on all servers."
echo ""