Ok, Attached is an updated script: > The changes are: > > > - restartable > > Instead of starting over from scratch, it tries to continue on from where the last run left off (after being CNTRL-Ced or failing). To force a complete rebuild of each target, use the option: > > `-f' (force) will force a new run > > > - stop on failure > > The script, by default, aborts on the first failed build. The assumption is that the problem will be fixed and then the script re-started. This can be overriden with the option: > > `-k' (keep going) will force the script to try and build everything possible (the flag is passed to make as well). > > > - parallel It is possible to specify parallism at two levels. Firstly the number of builds, and secondly the number of jobs MAKE tries to sustain. Two options control this: `-b MAXBUILDS' The number of builds to run in parallel. `-j MAXJOBS' The number of jobs, whithin a build, that MAKE should run in parallel (using `make -j MAXJOBS'). These options are orthoginal, `-b 3 -j 2' will result in the script running up to three simultaneous `make -j 2'. > - testing > > In addition to checking the configure and build, the script also tries to run the built GDB to the point where it checks that '(gdb) maint print architecture' succeeds. > > (NB: The h8500hms target currently barfs when run, I think I might propose that it be booted out of the build list). > > > - selecting targets > > A sub-set of targets can be selected using the option: > > `-e ' Select a subset of the targets using the (grep) regular expression . Multiple expressions can be specified. - more verbose output By default the output from the configure and build is supressed (saved to a log file). This can be disabled with: -v (verbose) Provide more verbose output (e.g., output the configure, build and run results to stdout). This is very useful from within emacs. Something like `M-X compile' `./gdb_build.sh -v .. /tmp' works. David, yes, `gdb_build.sh -k -f' should give you back something like the old behavior. Richard, should `-j 2' be the default? Now that this doesn't lead to two parallel configures (which is what I think hammers the poor host). Andrew