25th February 2011, 03:30 PM
(Last edited by nicandris; 24th January 2012 at 06:23 PM .)
Reason: bacon
Recognized Developer -
OP
Thanks Meter
177
Posts: 1,097
Join Date: Jan 2009
Location: Nicosia
[DEV] Building CM from scratch (the easy way)! - *nix Shell Script
<BACON>
This will Allow you to build CM7-Nightlies or "Kangs" at any time you please.
Compatible with Ubuntu or rpm distros
It's a bash/sh script for automation, as simple as a double click.
it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. (If you already have some of this installed, it prompts before installing)
-------
Please test it, and report bugs here (files attached)
No donations wanted, just click that THANKS button
Github: https://github.com/nicandris/CM-from-scratch
-------
new build.sh menu
just unzip on ubuntu/linux and run ./douchebuild.sh
if ./douchebuild.sh is not recognized as an executable, just
Code:
sudo chmod 775 douchebuild.sh
You will be asked for sudo pass (since you edit repos and add adb in bin) and some info for git.
after completing you can always create a fresh build from the Desktop shortcut build.sh
ofcourse i don't take any credits for cm, all credit goes to cyanogen and teamdouche. the script is just a shell compilation of the cm wiki.
</BACON>
The Following 100 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
.droid (13th June 2011),
123shree (2nd July 2012),
adityalahiri13 (22nd May 2013),
af974 (15th March 2011),
allofusjw (13th March 2011),
Andersondj (23rd June 2012),
arkerio (26th December 2012),
artistaditya (16th April 2013),
benjamingwynn (27th January 2012),
bombayboy (8th August 2012),
bordax20 (5th February 2013),
bruce2728 (13th June 2011),
ccdreadcc (3rd December 2012),
ch33kybutt (26th February 2011),
cordell12 (12th February 2012),
Cosmoon (10th March 2012),
cp320703 (3rd June 2012),
crachel (27th February 2011),
CTown (24th August 2011),
david636 (6th April 2011),
daxiaamu (27th March 2012),
DKaine (15th June 2012),
exiquio (22nd March 2012),
fcanmekikoglu (27th October 2012),
FineDroid (24th June 2011),
fromnowon (20th March 2012),
ganassa (14th March 2011),
ganeshbiyer (22nd February 2012),
Geo411m (25th February 2011),
gleenfield97 (17th February 2012),
globula_neagra (31st January 2013),
hearts king101 (23rd March 2012),
isaiahe97 (7th August 2012),
itthipon555 (5th October 2012),
jhpdroid (18th February 2013),
JimJam707 (9th April 2011),
johnhale (7th February 2012),
Jonathon Grigg (26th March 2011),
jscott30 (23rd June 2012),
jvsykes (11th August 2011),
k0k0t0 (5th February 2013),
karmakula (25th November 2012),
kenrick11 (9th July 2011),
kryptoner (27th August 2012),
Kstarz (2nd May 2011),
Lenn (8th August 2011),
liberie (10th March 2011),
luishka (11th January 2012),
Lultima (25th February 2011),
Maverick029 (7th May 2013),
meer_mortal (27th July 2012),
mhwarfield (16th January 2012),
mikedj84 (14th March 2011),
mithrial (1st July 2012),
mohammadsp (3rd August 2012),
moonzbabysh (1st July 2012),
MrHassell (13th March 2011),
msquared (21st June 2012),
mvgadagi (9th February 2013),
Mystenes (14th March 2011),
Namaless (27th January 2012),
nerdtaco (17th March 2011),
ogaitz (21st March 2012),
orbital_71 (18th September 2012),
ORiZorrie (1st March 2012),
p2pjack (20th January 2012),
Panayiotis (2nd March 2011),
Peteragent5 (18th March 2012),
pficrx (8th February 2013),
Prasad007 (30th June 2011),
prettyboy85712 (25th February 2011),
proxuser (3rd February 2012),
rabidityfactor (20th February 2013),
Rajneeshgadge17 (10th April 2012),
rchtk (20th March 2012),
richardkemp (24th June 2011),
Rom-Addict (19th February 2012),
Ron G (29th March 2012),
s1lang (7th April 2011),
SamSamoon (18th August 2011),
shockem (9th June 2011),
SOHKis (14th June 2011),
spikiller (5th September 2012),
StaticX (26th February 2012),
SuperLamic (16th April 2012),
t0ucht0ne (30th April 2011),
thegoldfishvn (14th July 2012),
TheKiD075 (28th July 2011),
trenbeth (22nd February 2012),
tufadorin (23rd July 2011),
VanillaTbone (28th July 2011),
williamfold (17th May 2013),
x-dira (16th April 2012),
xumuk37 (14th May 2011),
yelow79 (11th August 2011),
You_Know_Who (14th June 2012),
yuripg1 (7th April 2012),
zardaloo (26th August 2012),
Zer4tul (11th June 2011)
25th February 2011, 03:30 PM
(Last edited by nicandris; 8th June 2011 at 07:19 PM .)
Recognized Developer -
OP
Thanks Meter
177
Posts: 1,097
Join Date: Jan 2009
Location: Nicosia
Reserved
If you want to set only udev try this script
udev.zip
unzip and
-----
If you already used the main script and want to have the new build.sh menu, run this script
buildshcreator.zip
-----
if you don't want all the files for all the devices to be synced, follow
this!
The Following 9 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
25th February 2011, 03:30 PM
(Last edited by nicandris; 24th January 2012 at 06:23 PM .)
Reason: changelog
Recognized Developer -
OP
Thanks Meter
177
Posts: 1,097
Join Date: Jan 2009
Location: Nicosia
Reserved
CHANGELOG
v1
Supporting only Nexus One (initial release)
v2
Supporting all cyanogenmod official devices. Added menu selection for device
v2.0.1
Fixed some nohup issues. Changed some code lines. fixed an if statement
v2.0.2
HD2/Leo support added
v2.1
Various Bugfixes
New build menu
v2.2
Few bug fixes
Some name changes
MORE options in build.sh!!
v2.3
Minor Bug Fixes
Added new devices:
Motorola Cliq XT
LG G2x
LG Optimus 2X
Samsung Captivate
Samsung Vibrant
Barnes & Noble - Nook Color support
Added udev support for Nook Color
v2.3.2
Fixed selection list
Added HTC Incredible 2 Support
v2.4.1
Added Samsung Galaxy S II and Fascinate support
Added Motorola Droid X support
udevs fixed
v2.4.3
Added HTC Tattoo
v2.5.1
Updated Android SDK to v13
Forced repo to sync from github and not from kernel.org (since kernel.org is down for maintenance)
Bugfix
v2.5.2
Added Nexus S 4G
v2.5.3/2.5.4
minor bugfix x4 :P
changed repo fetch URL
v2.7.1
RPM compatibility
Small bugfix
The Following 11 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
.droid (13th June 2011),
crachel (21st January 2012),
jklong03 (27th July 2011),
mohammadsp (3rd August 2012),
osama_m2s (28th September 2012),
Reptilez_DK (11th January 2012),
richardkemp (24th June 2011),
Rom-Addict (19th February 2012),
Ron G (29th March 2012),
shockem (9th June 2011),
VanillaTbone (28th July 2011)
25th February 2011, 03:34 PM
Recognized Developer
Thanks Meter
298
Posts: 893
Join Date: Jan 2009
Location: Newington CT
DONATE TO ME
Quote:
Originally Posted by
nicandris
guys i made a small shell script for automation. tried it twice on clean ubuntu builds and it works just fine!
it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. if anyone has a clean installation (or has the time to create a new vbox to test it try it)
http://dl.dropbox.com/u/6751304/androidmake
just unzip on ubuntu/linux and run ./androidmake
if you are on x64 run this first:
Code:
sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind pngcrush && sudo update-java-alternatives -s java-6-sun
after completing you can always create a fresh build from the Desktop shortcut build.sh
Thanks. this should come in handy since I just reinstalled my linux desktop. I'll try it out later tonight.
The Following 2 Users Say Thank You to Geo411m For This Useful Post: [ Click to Expand ]
25th February 2011, 03:39 PM
Senior Member
Thanks Meter
48
Posts: 994
Join Date: Jun 2007
Location: Tucson, AZ
Quote:
Originally Posted by
nicandris
guys i made a small shell script for automation. tried it twice on clean ubuntu builds and it works just fine!
it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. if anyone has a clean installation (or has the time to create a new vbox to test it try it)
http://dl.dropbox.com/u/6751304/androidmake
just unzip on ubuntu/linux and run ./androidmake
if you are on x64 run this first:
Code:
sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind pngcrush && sudo update-java-alternatives -s java-6-sun
after completing you can always create a fresh build from the Desktop shortcut build.sh
ofcourse i don't take any credits for cm, all credit goes to cyanogen and teamdouche. the script is just a shell compilation of the cm wiki.
I was planning to do a GUI or text-based version with more options (more phone support etc) but i don't have the time. if anyone wants to do it the script is there have fun
Thanks. I'll give it a shot tonight.
Phone - Rooted LG G2x
ROM - ParanoidAndroid
Nexus 7
25th February 2011, 03:57 PM
Senior Member
Thanks Meter
446
Posts: 3,817
Join Date: Aug 2009
Location: Vienna
DONATE TO ME
canīt test it anymore, as I got all setup..but for future, just great!
The Following User Says Thank You to rori~ For This Useful Post: [ Click to Expand ]
25th February 2011, 04:13 PM
Recognized Developer -
OP
Thanks Meter
177
Posts: 1,097
Join Date: Jan 2009
Location: Nicosia
Quote:
Originally Posted by
rori~
canīt test it anymore, as I got all setup..but for future, just great!
well take the ./build.sh only :P it's helpfull (for me that i'm bored to type the make bacon)
25th February 2011, 04:26 PM
Portal Administrator
Thanks Meter
1410
Posts: 4,710
Join Date: Apr 2010
Location: ǝɹoɯıʇlɐq, MD̡̳̮̖͖ͮ̎̊̄
DONATE TO ME
Excellent work, and thanks for sharing. This will be very useful for others. I modified the title and stickied this.
25th February 2011, 04:30 PM
Senior Member
Thanks Meter
503
Posts: 283
Join Date: Sep 2010
Location: Port Royal
Sounds Good i'm on testing...
I don't ask for donation, just only hit THANKS BUTTON
[Recovery] OpenRecovery
[System] Android 4.2.1
[ROM] Stock Odexed + Chainfire Root
[Radio] 2.0.1700.33
[Kernel] Faux 003 r2
[Launcher] Stock
The Following 2 Users Say Thank You to Lultima For This Useful Post: [ Click to Expand ]
25th February 2011, 04:34 PM
Recognized Developer -
OP
Thanks Meter
177
Posts: 1,097
Join Date: Jan 2009
Location: Nicosia
thanx for sticking this up
guys please test and if you find anyth wrong msg me to check it out.
Thread Tools
Search this Thread
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Go to top of page...
Most Thanked In This Thread
11 Reserved CHANGELOG v1 Supporting
only …9 Reserved If you want to set only
udev try …5 Very useful guide! Appreciate hard work! 3 v2.7.1
Added RPM
compatibility (thanx … 3 You'll actually need to
edit …