Skip to content

Commit

Permalink
build scripts: killa java process when done
Browse files Browse the repository at this point in the history
sometimes it hangs taking a lot of ram
  • Loading branch information
ezio84 committed Feb 18, 2017
1 parent 1d5ef94 commit 451709d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ fi
# Get elapsed time
res2=$(date +%s.%N)
echo "${bldgrn}Total time elapsed: ${txtrst}${grn}$(echo "($res2 - $res1) / 60"|bc ) minutes ($(echo "$res2 - $res1"|bc ) seconds) ${txtrst}"

#kill java if it's hanging on
pkill java
3 changes: 3 additions & 0 deletions build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ fi
# Get elapsed time
res2=$(date +%s.%N)
echo "${bldgrn}Total time elapsed: ${txtrst}${grn}$(echo "($res2 - $res1) / 60"|bc ) minutes ($(echo "$res2 - $res1"|bc ) seconds) ${txtrst}"

#kill java if it's hanging on
pkill java
3 changes: 3 additions & 0 deletions build_rom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ echo -e ${txtrst}

BUILDTIME="Build time: $(echo $((${END}-${START})) | awk '{print int($1/60)" minutes and "int($1%60)" seconds"}')"

#kill java if it's hanging on
pkill java

# Shutdown the system if required by the user
if [ "$SHUTDOWN" == "off" ]
then
Expand Down

0 comments on commit 451709d

Please sign in to comment.