Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- source=~/Android/Source/CyanogenMod/Gingerbread
- board=mecha
- lunch=htc_mecha-eng
- date=`date +%Y%m%d`
- filepath=~/Android/Nightlies/$board
- filename=cm-nightly-$board-full-KANG-$date.zip
- hostname=""
- username=""
- password=""
- remotedir=/trident.noodlesoftware.com/wwwroot/Nightlies/$board
- # Compile
- cd $source
- repo sync
- source build/envsetup.sh
- lunch $lunch
- make clean
- make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`
- # Move and rename file
- mv $source/out/target/product/$board/update.zip $filepath/$filename
- # Upload file
- cd $filepath
- ftp -inv $hostname <<EOF
- user $username $password
- binary
- cd $remotedir
- put $filename
- bye
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement