]> git.ozlabs.org Git - next-scripts/commitdiff
do_merge: add pre-build actions
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Sep 2015 04:34:54 +0000 (14:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 25 Sep 2015 03:28:06 +0000 (13:28 +1000)
do_merge

index 888dd251c05bacfcb1e76ed33937adc87eda6034..b9ed8f968c18696079e24a4c9b392a5946747e3d 100755 (executable)
--- a/do_merge
+++ b/do_merge
@@ -182,6 +182,14 @@ for h in $heads; do
                pushover "linux-next push failed for $tree!"
                bash -i || exit
        }
+       [ -x "../pre-build/$tree" ] && {
+               "../pre-build/$tree" || {
+                       echo Prebuild script failed 1>&2
+                       notify-send -t 0 -u critical "linux-next pre-build script failed for $tree!"
+                       pushover "linux-next pre-build script failed for $tree!"
+                       bash -i || exit
+               }
+       }
        "$bin_dir/do_build" || {
                echo Build failed 1>&2
                notify-send -t 0 -u critical "linux-next build failed for $tree!"