-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprebuilt.sh
More file actions
executable file
·30 lines (30 loc) · 806 Bytes
/
prebuilt.sh
File metadata and controls
executable file
·30 lines (30 loc) · 806 Bytes
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
#!/bin/bash
# by fuldaros
source ./tools/func.sh
clear
ver=$(sed -n 2p tools/akb.prop);
device=$(sed -n 12p make.prop);
e="\x1b[";c=$e"39;49;00m";y=$e"93;01m";cy=$e"96;01m";r=$e"1;91m";g=$e"92;01m";m=$e"95;01m";
conf=$(sed -n 6p make.prop);
arch=$(sed -n 4p make.prop);
echo -e "
$cy****************************************************
$cy* Automatic kernel builder v"$ver" *
$cy* by fuldaros *
$cy****************************************************
$y";
sleep 3
set -e
./tools/clean.sh
rm -f gen.info
mkdir out
mkdir outkernel
mkdir outzip
exportcm;
stamp=$(date +"%H:%M:%S %Y.%m.%d");
echo "generated by fuldaros's script on "$stamp" " > gen.info
cd sources
make O=../out/akb_"$device" "$conf"
cd ../
./build.sh
####### script v1.2 (stable)