Advertisement
techmik

build.sh

Jul 14th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. COMMAND="$1"
  4.  
  5. # Starting Timer
  6. START=$(date +%s)
  7.  
  8. # Device specific settings
  9. case "$COMMAND" in
  10. clean)
  11. cd ~/cm10
  12. make clobber
  13. cd kernel/samsung/msm8660-common
  14. make mrproper
  15. cd ~/cm10
  16. exit
  17. ;;
  18. *)
  19. . build/envsetup.sh
  20. ./vendor/cm/get-prebuilts
  21. brunch cm_skyrocket-userdebug
  22. ;;
  23. esac
  24.  
  25. END=$(date +%s)
  26. ELAPSED=$((END - START))
  27. E_MIN=$((ELAPSED / 60))
  28. E_SEC=$((ELAPSED - E_MIN * 60))
  29. printf "${txtgrn}Elapsed: "
  30. [ $E_MIN != 0 ] && printf "%d min(s) " $E_MIN
  31. printf "%d sec(s)\n ${txtrst}" $E_SEC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement