Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- source=~/Android/Source/CyanogenMod/Gingerbread
- vendor=htc
- board=mecha
- lunch=htc_mecha-eng
- done=update-cm-nightly-signed.zip
- build=DETERMINE BUILD NUMBER HERE
- filepath=~/Android/Nightlies/$board
- file=cm-nightly-$board-full-KANG-$build.zip
- file_md5=cm-nightly-$board-full-KANG-$build.zip.md5sum
- hostname="noodlesoftware.com"
- username="bryan_trident"
- password="eowens14"
- remotedir=/trident.noodlesoftware.com/wwwroot/Nightlies/$board
- # Compile
- cd $source
- rm -r $source/device/$vendor/$board
- sleep 5
- repo sync
- sleep 10
- source build/envsetup.sh
- lunch $lunch
- sleep 5
- make clean
- sleep 5
- make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`
- sleep 5
- # Move and rename file
- mv $source/out/target/product/$board/$done $filepath/$file
- cd $filepath
- md5sum $file > $file_md5
- # Upload file
- ftp -inv $hostname <<EOF
- user $username $password
- binary
- cd $remotedir
- put $filepath/$file
- put $filepath/$file_md5
- bye
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement