Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a52ddd8 authored by Steve Kondik's avatar Steve Kondik
Browse files

Make reposync and mka less insane.

 - reposync will use -j10 for less repository death
 - use ionice with mka

Change-Id: I135ed37da45373def6ae036204715ea1d206e2ce
parent e5cd3d47
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1094,11 +1094,11 @@ function cmremote()
}

function mka() {
    schedtool -B -n 1 -e make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@"
    schedtool -B -n 1 -e ionice -n 1 make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@"
}

function reposync() {
    schedtool -B -n 1 -e ionice -n 1 repo sync -j 50 "$@"
    schedtool -B -n 1 -e ionice -n 1 repo sync -j 10 "$@"
}

# Force JAVA_HOME to point to java 1.6 if it isn't already set