Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Start compilation with or without log
- if [ "$LOG" == "log" ]
- then
- echo -e "${bldblu}Compiling for $DEVICE and saving a build log file ${txtrst}"
- mka bacon 2>&1 | tee build.log;
- else
- echo -e "${bldblu}Compiling for $DEVICE without saving a build log file ${txtrst}"
- mka bacon;
- fi
- # If the above was successful
- if [ `ls $BUILD_PATH/AospExtended*.zip 2>/dev/null | wc -l` != "0" ]
- then
- BUILD_RESULT="Build successful"
- # If the build failed
- else
- BUILD_RESULT="Build failed"
- fi
- # Stop tracking time
- END=$(date +%s)
- echo -e ${bldblu}
- echo -e "-------------------------------------"
- echo -e "SCRIPT ENDING AT $(date +%D\ %r)"
- echo -e ""
- echo -e "${BUILD_RESULT}!"
- echo -e "TIME: $(echo $((${END}-${START})) | awk '{print int($1/60)" MINUTES AND "int($1%60)" SECONDS"}')"
- echo -e "-------------------------------------"
- echo -e ${txtrst}
- if [ "$SHUTDOWN" == "off" ]
- then
- qdbus org.kde.ksmserver /KSMServer logout 0 2 2
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement