Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # Start compilation with or without log
  2.  
  3. if [ "$LOG" == "log" ]
  4. then
  5. echo -e "${bldblu}Compiling for $DEVICE and saving a build log file ${txtrst}"
  6. mka bacon 2>&1 | tee build.log;
  7. else
  8. echo -e "${bldblu}Compiling for $DEVICE without saving a build log file ${txtrst}"
  9. mka bacon;
  10. fi
  11.  
  12. # If the above was successful
  13. if [ `ls $BUILD_PATH/AospExtended*.zip 2>/dev/null | wc -l` != "0" ]
  14. then
  15. BUILD_RESULT="Build successful"
  16.  
  17. # If the build failed
  18. else
  19. BUILD_RESULT="Build failed"
  20. fi
  21.  
  22. # Stop tracking time
  23. END=$(date +%s)
  24. echo -e ${bldblu}
  25. echo -e "-------------------------------------"
  26. echo -e "SCRIPT ENDING AT $(date +%D\ %r)"
  27. echo -e ""
  28. echo -e "${BUILD_RESULT}!"
  29. echo -e "TIME: $(echo $((${END}-${START})) | awk '{print int($1/60)" MINUTES AND "int($1%60)" SECONDS"}')"
  30. echo -e "-------------------------------------"
  31. echo -e ${txtrst}
  32.  
  33. if [ "$SHUTDOWN" == "off" ]
  34. then
  35. qdbus org.kde.ksmserver /KSMServer logout 0 2 2
  36. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement