-
Notifications
You must be signed in to change notification settings - Fork 2
/
ror.build
executable file
·55 lines (44 loc) · 1.12 KB
/
ror.build
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
#!/bin/bash
URB=0
MODE=''
[[ ! -d ./rigs-of-rods ]] && git clone https://github.com/RigsOfRods/rigs-of-rods.git
cd ./rigs-of-rods
[[ $# == 1 ]] && MODE=$1
if [[ "$MODE" == "stable" ]]; then
ST0=$(git rev-parse --verify fedora-stable-0 2>/dev/null)
if [[ $? != 0 ]]; then
git checkout -b fedora-stable-0
git reset --hard e9edfb7
git checkout master
fi
git checkout fedora-stable-0
$URB=1;
elif [[ "$MODE" == "stable1" ]]; then
ST0=$(git rev-parse --verify fedora-stable-1 2>/dev/null)
if [[ $? != 0 ]]; then
git checkout -b fedora-stable-1
git reset --hard 57d11cd3
git checkout master
fi
git checkout fedora-stable-1
$URB=1;
elif [[ "$MODE" == "commit" ]]; then
git reflog
cd ..
exit
else
git checkout master
git pull origin master
fi
rm -f CMakeCache.txt
find . -name CmakeFiles -exec rm -rf {} \;
cmake -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.8 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.0 .
make -j8
if [[ $? != 0 ]]; then
echo "FAIL MAIKE"
cd ..
exit 1
fi
sed -i -e 's/^PluginFolder=\/usr\/local\/lib/PluginFolder=\/usr\/lib64/' ./bin/plugins.cfg
[[ $URB == 1 ]] && git checkout master
cd ..