# Multi-build script for testing compilation of all maintained
# configs of GDB.
-# Copyright (C) 2002-2018 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
# Contributed by Richard Earnshaw (rearnsha@arm.com)
Usage: gdb_mbuild.sh [ <options> ... ] <srcdir> <builddir>
Options:
-j <makejobs> Run <makejobs> in parallel. Passed to make.
- On a single cpu machine, 2 is recommended.
+ On a single cpu machine, 2 is recommended.
-k Keep going. Do not stop after the first build fails.
--keep Keep builds. Do not remove each build when finished.
-e <regexp> Regular expression for selecting the targets to build.
keepgoing=-k
;;
--keep )
- keep=true
+ keep=true
;;
-e )
# A regular expression for selecting targets
if test "${keepgoing}" != ""
then
#exit 1
- continue
+ return 1
else
kill $$
exit 1