Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. source=~/Android/Source/CyanogenMod/Gingerbread
  4. board=mecha
  5. lunch=htc_mecha-eng
  6. date=`date +%Y%m%d`
  7. filepath=~/Android/Nightlies/$board
  8. filename=cm-nightly-$board-full-KANG-$date.zip
  9. hostname=""
  10. username=""
  11. password=""
  12. remotedir=/trident.noodlesoftware.com/wwwroot/Nightlies/$board
  13.  
  14. # Compile
  15. cd $source
  16. repo sync
  17. source build/envsetup.sh
  18. lunch $lunch
  19. make clean
  20. make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`
  21.  
  22. # Move and rename file
  23. mv $source/out/target/product/$board/update.zip $filepath/$filename
  24.  
  25. # Upload file
  26. cd $filepath
  27. ftp -inv $hostname <<EOF
  28. user $username $password
  29. binary
  30. cd $remotedir
  31. put $filename
  32. bye
  33. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement