File: setup-development.sh

package info (click to toggle)
simutrans 124.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,880 kB
  • sloc: cpp: 160,224; ansic: 9,382; sh: 1,237; awk: 1,081; makefile: 932; javascript: 2
file content (24 lines) | stat: -rwxr-xr-x 557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

if grep "Ubuntu" /etc/*-release
	then
	echo "Setup for Ubuntu, please be patient!"
	sudo sh tools/setup-debian.sh
elif grep -q MSYS2 /etc/*-release
	then
	echo "Setup for Mingw, please be patient!"
	tools/setup-mingw.sh
elif grep "Debian" /etc/*-release
	then
	echo "Setup for Debian, please be patient!"
	su -c "sh tools/setup-debian.sh"
fi

read -p "Confirm compile simutrans? (Yy) " reply
if [ $reply = "y" -o $reply = "Y" ]; then
	echo "Compiling using make"
	autoconf
	./configure
	make -j $(nproc)
	echo "Update translations"
	tools/distribute.sh
fi