diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2019-07-24 16:44:17 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2019-07-24 16:44:17 +0100 |
commit | 7ea89f842bd11fd4f1785888d437eb9b01401f06 (patch) | |
tree | eaa5cccbc63387d907b4cab224973ce2d72eb96e | |
parent | 5aa3a1adbdfe95ae0e038872547fc97482ffd13e (diff) |
allow to change easily the build script
-rwxr-xr-x | spice-server/rebase | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spice-server/rebase b/spice-server/rebase index fe350ed..aab3de4 100755 --- a/spice-server/rebase +++ b/spice-server/rebase @@ -90,6 +90,10 @@ processed='' declare -A commits +build_it() { + make -j +} + try_compile() { local last_failed='' if test "$COMPILE" = "no"; then @@ -103,7 +107,7 @@ try_compile() { echo "checking branch $branch commit $commit" git checkout $commit &> /dev/null if [ "${commits[$commit]}" = "" ]; then - if ! make -j &> compile_err_$branch.txt; then + if ! build_it &> compile_err_$branch.txt; then commits[$commit]='no' else commits[$commit]='yes' @@ -120,7 +124,7 @@ try_compile() { done failed_compile+="$last_failed" else - if ! make -j &> compile_err_$branch.txt; then + if ! build_it &> compile_err_$branch.txt; then failed_compile+=" $branch" else |