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

Commit 5b42f9df authored by Steve Kondik's avatar Steve Kondik Committed by AdHoc
Browse files

Add "reposync" command to envsetup.sh

Performs a "repo sync -j50" using SCHED_BATCH and ionice to enable
the user to sync quickly without completely demolishing the workstation.

Change-Id: I493f24c16466fb75570de177202d941bcadf67b6
parent 902f11f0
Loading
Loading
Loading
Loading

envsetup.sh

100755 → 100644
+7 −2
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
- godir:   Go to the directory containing a file.
- cmgerrit: Send patch request request to CyanogenMod repos
- mka:     Builds using SCHED_BATCH on all processors
- reposync: Parallel repo sync using ionice and SCHED_BATCH

Look at the source to view more functions. The complete list is:
EOF
@@ -1175,6 +1176,10 @@ function mka() {
    schedtool -B -n 1 -e make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@"
}

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

# Force JAVA_HOME to point to java 1.6 if it isn't already set
function set_java_home() {
    if [ ! "$JAVA_HOME" ]; then