forked from kazzmir/paintown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-compile-fedora
executable file
·71 lines (69 loc) · 3.74 KB
/
easy-compile-fedora
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
#!/bin/bash
# If you are trying to compile Paintown from source but have no idea what to do
# try running this script. It will attempt to install all the dependencies you
# need and compile Paintown.
#I stole part of this from jonrafkind
echo This script uses 'sudo' to install packages. 'sudo' temporarily elevates
echo your priveleges so that new packages can be installed on your system.
echo When prompted for a password type the password you use to login.
echo -e "
\033[31m::::::::: ::: ::::::::::: :::: ::: ::::::::::: :::::::: ::: ::: :::: :::
:+: :+: :+: :+: :+: :+:+: :+: :+: :+: :+: :+: :+: :+:+: :+:
+:+ +:+ +:+ +:+ +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ +:+ :+:+:+ +:+
+#++:++#+ +#++:++#++: +#+ +#+ +:+ +#+ +#+ +#+ +:+ +#+ +:+ +#+ +#+ +:+ +#+
+#+ +#+ +#+ +#+ +#+ +#+#+# +#+ +#+ +#+ +#+ +#+#+ +#+ +#+ +#+#+#
#+# #+# #+# #+# #+# #+#+# #+# #+# #+# #+#+# #+#+# #+# #+#+#
### ### ### ########### ### #### ### ######## ### ### ### ####
"
echo "Paintown Fedora/centos/redhat installer by scristopher"
echo "this installer will install Development tools and a few other things"
echo -e "\033[31mIf you do not have rpmfusions/epel repos installed this installation may fail see http://rpmfusion.org/ for more info on rpmfusion"
echo -e "\033[031mIf you do not want the repos installed select f"
echo -e "\033[31m#########################"
echo "#which distro are you? #"
echo "#a. fedora 15,16 or 17 #"
echo "#b. fedora 18 (rawhide) #"
echo "#c. RHEL 5 (or centos 5)#"
echo "#d. RHEL 6 (or centos 6)#"
echo "#f. Do not install #"
echo "#########################"
echo -e "\033[0m"
read dist
if [ "$dist = a" ]; then
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
else
if [ "$dist = b" ]; then
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'
else
if [ "$dist = c" ]; then
su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm ttp://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm'
su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
else
if [ "$dist = d" ]; then
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm'
else
continue
fi
fi
fi
fi
sudo yum groupinstall 'Development Tools'
sudo yum install scons SDL SDL-devel libpng libpng-devel freetype-devel zlib zlib-devel python python-devel make libogg libvorbis libvorbis-devel libmpg123-devel libmpg123 make
echo -e "\033[31mwould you like to install the tools for the animation and level editor?"
echo -e "\033[31m[y/N]"
echo "be advised if compile fails because of editor try without editor and report issue on irc #paintown on freenode"
read anim
if [ "$anim = y" ]; then
sudo yum install ant
cd editor && make
cd ../
make
else
make
fi
make
ls -l paintown
echo -e "\033[31mHere is the executable. To run it type: ./paintown"
echo -e "\033[31mIf you opted to install the animation editor tools goto the editor folder and run make then ./run.sh"
echo -e "\033[0m"