TechExhibeo

Legacy Script by Sanyam

Jun 6th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. # My Script :D
  2.  
  3. # Prepare output customization commands
  4. red=$(tput setaf 1) # red
  5. grn=$(tput setaf 2) # green
  6. blu=$(tput setaf 4) # blue
  7. cya=$(tput setaf 6) # cyan
  8. txtbld=$(tput bold) # Bold
  9. bldred=${txtbld}$(tput setaf 1) # red
  10. bldgrn=${txtbld}$(tput setaf 2) # green
  11. bldblu=${txtbld}$(tput setaf 4) # blue
  12. bldcya=${txtbld}$(tput setaf 6) # cyan
  13. txtrst=$(tput sgr0) # Reset
  14.  
  15. # Remove Roomservice
  16. rm -rf .repo/local_manifests/room*.xml
  17.  
  18. # Repo Sync
  19. repo sync -j8
  20.  
  21. # Import command line parameters
  22. ROM="$1"
  23. DEVICE="$2"
  24.  
  25. export ROM=$ROM
  26. export DEVICE=$DEVICE
  27.  
  28. echo -e "${bldred}Compiling Custom ROMs ($ROM) for $DEVICE ${txtrst}";
  29. echo -e "${bldgrn}Start time: $(date) ${txtrst}"
  30.  
  31. # CCACHE
  32. export USE_CCACHE=1
  33. export CCACHE_DIR=/home/jenkins/vfs/drive_ccache
  34. prebuilts/misc/linux-x86/ccache/ccache -M 100G
  35.  
  36. # Build
  37. . build/envsetup.sh
  38. lunch "$ROM"_$DEVICE-userdebug
  39. make bacon -j8
  40.  
  41. mkdir /home/jenkins/vfs/user_common/builds/$ROM/
  42. cp out/target/product/$DEVICE/$ROM-*.zip /home/jenkins/vfs/user_common/builds/$ROM/
Advertisement
Add Comment
Please, Sign In to add comment