Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. source=~/Android/Source/CyanogenMod/Gingerbread
  4. vendor=htc
  5. board=mecha
  6. lunch=htc_mecha-eng
  7. done=update-cm-nightly-signed.zip
  8. build=DETERMINE BUILD NUMBER HERE
  9. filepath=~/Android/Nightlies/$board
  10. file=cm-nightly-$board-full-KANG-$build.zip
  11. file_md5=cm-nightly-$board-full-KANG-$build.zip.md5sum
  12. hostname="noodlesoftware.com"
  13. username="bryan_trident"
  14. password="eowens14"
  15. remotedir=/trident.noodlesoftware.com/wwwroot/Nightlies/$board
  16.  
  17. # Compile
  18. cd $source
  19. rm -r $source/device/$vendor/$board
  20. sleep 5
  21. repo sync
  22. sleep 10
  23. source build/envsetup.sh
  24. lunch $lunch
  25. sleep 5
  26. make clean
  27. sleep 5
  28. make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`
  29. sleep 5
  30.  
  31. # Move and rename file
  32. mv $source/out/target/product/$board/$done $filepath/$file
  33. cd $filepath
  34. md5sum $file > $file_md5
  35.  
  36. # Upload file
  37. ftp -inv $hostname <<EOF
  38. user $username $password
  39. binary
  40. cd $remotedir
  41. put $filepath/$file
  42. put $filepath/$file_md5
  43. bye
  44. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement