-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·130 lines (128 loc) · 4.67 KB
/
setup.sh
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
clear
echo Installing Dependencies in 5 Seconds...
sleep 1
echo Installing Dependencies in 4 Seconds...
sleep 1
echo Installing Dependencies in 3 Seconds...
sleep 1
echo Installing Dependencies in 2 Seconds...
sleep 1
echo Installing Dependencies in 1 Seconds...
sleep 1
sudo apt-get update
sudo apt-get install openjdk-7-jdk
y
sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-7-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib python pngquant liblz4-*
y
clear
echo Dependencies have been installed!
sleep 4
clear
echo Installing REPO in 5 Seconds...
sleep 1
echo Installing REPO in 4 Seconds...
sleep 1
echo Installing REPO in 3 Seconds...
sleep 1
echo Installing REPO in 2 Seconds...
sleep 1
echo Installing REPO in 1 Seconds...
sleep 1
mkdir ~/bin
PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
clear
echo REPO has been Downloaded!
sleep 3
clear
echo Where do you want to initialize RR source? Enter the desired directory name similar to this:
echo " /home/$USER/rr or /media/$USER/yourdrive/rr"
read rrpath
clear
sleep 2
echo Creating and Initializing RR Source at $rrpath in 5...
sleep 1
echo Creating and Initializing RR Source at $rrpath in 4...
sleep 1
echo Creating and Initializing RR Source at $rrpath in 3...
sleep 1
echo Creating and Initializing RR Source at $rrpath in 2...
sleep 1
echo Creating and Initializing RR Source at $rrpath in 1...
sleep 1
mkdir -p $rrpath
cd $rrpath
repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b lollipop5.1
clear
echo RR Source Code has been initialized!
sleep 4
clear
echo Starting Source Download...
sleep 3
echo Enter number of jobs to repo sync with.
echo Type 4 for connections lower than 15mbps
echo Type 6 for connections ranging from 20-50mbps
echo Type 16 for anything more than 100mbps
read jobs
echo Syncing/Downloading in 5 seconds...
sleep 1
echo Syncing/Downloading in 4 seconds...
sleep 1
echo Syncing/Downloading in 3 Seconds...
sleep 1
echo Syncing/Downloading in 2 Seconds...
sleep 1
echo Syncing/Downloading in 1 Seconds...
repo sync -j $jobs
clear
echo Unpacking all Resurrection Remix Resources in 5 seconds...
sleep 1
echo Unpacking all Resurrection Remix Resources in 4 seconds...
sleep 1
echo Unpacking all Resurrection Remix Resources in 3 seconds...
sleep 1
echo Unpacking all Resurrection Remix Resources in 2 seconds...
sleep 1
echo Unpacking all Resurrection Remix Resources in 1 seconds...
sleep 1
clear
echo How much CCache do you want to utilize?
echo Recommended CCache ranges from 50 to 100 Gigabytes
echo HINT: CCache will help to increase build times by taking up your hard-drive space
echo If you dont want CCache or are not sure, type 0
read ccsize
echo Enter path to directory you want to use for ccache.
echo Something like /home/$USER/.ccache
read ccpath
export USE_CCACHE=1
export CCACHE_DIR=$ccpath/
prebuilts/misc/linux-x86/ccache/ccache -M $ccsize
sleep 3
clear
echo Resurrection Remix Source code has been Set-Up Succesfully in
echo $rrpath
sleep 3
echo
echo To build Resurrection Remix later, initialize the RR Build Wizard by typing:
echo "./build-rr.sh"
echo in $rrpath
sleep 3
echo Starting the Resurrection Remix Build Wizard in 10 seconds!
echo To exit the Build Wizard and build later, Press CTRL + C
sleep 5
echo Starting the Build Wizard in 5...
sleep 1
echo Starting the Build Wizard in 4...
sleep 1
echo Starting the Build Wizard in 3...
sleep 1
echo Starting the Build Wizard in 2...
sleep 1
echo Starting the Build Wizard in 1...
sleep 1
clear
cd $rrpath
./build-rr.sh
#Here is where the Build Wizard stats. If the user exits, then it wont continue