summaryrefslogtreecommitdiff
path: root/localserver/build.sh
blob: 133de9eb1cada7c37e4e66e49b5ed4fe651ca600 (plain) (blame)
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
#!/usr/bin/env bash

export DIR=`pwd`

# Apply beta.patch if it exists to server-data
# It will only exist on BETA SERVERS, though
if [ -e "./beta.patch" ]
  then
    echo "Apply beta.patch ........"
    cd ../../server-data
    git apply ../tools/localserver/beta.patch
    cd $DIR
    mv beta.patch .~beta.patch
    ls
    echo "........ Done."
fi

# Apply beta.patch2 if it exists to server-code
# It will only exist on BETA SERVERS, though
if [ -e "./beta.patch2" ]
  then
    echo "Apply server updates ........"
    python applicator.py
    echo "Apply beta.patch2 ........"
    cd ../../server-code
    git apply ../tools/localserver/beta.patch2
    cd $DIR
    #mv beta.patch2 .~beta.patch2
    ls
    echo "........ Done."
fi

./checktime.sh
source ./clean.sh
./build.sh old > /dev/null