aboutsummaryrefslogtreecommitdiff
path: root/sbqrun
diff options
context:
space:
mode:
Diffstat (limited to 'sbqrun')
-rwxr-xr-xsbqrun10
1 files changed, 9 insertions, 1 deletions
diff --git a/sbqrun b/sbqrun
index 1551a9c..92c08d8 100755
--- a/sbqrun
+++ b/sbqrun
@@ -6,13 +6,14 @@
if [ "$1" = "" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
cat <<EOF
-Usage: $( basename $0 ) [-n] [-t] [-p] arg [arg ...]
+Usage: $( basename $0 ) [-n] [-t] [-p] [-d] arg [arg ...]
Options:
-t Don't track filesystem writes (passed to sbrun).
-n Allow network access (passed to sbrun).
-p If a binary package already exists for a given build, install
it instead of building a new one.
+ -d Download sources only; do not build or install packages.
Run this script from the top level of a SBo repo clone!
@@ -45,6 +46,8 @@ cdsb
for arg; do
if [ "$arg" = "-p" ]; then
use_prebuilt=yes
+ elif [ "$arg" = "-d" ]; then
+ download_only=yes
elif [ "$arg" = "-t" -o "$arg" = "-n" ]; then
SBRUN_OPTS="$SBRUN_OPTS $arg"
elif [ "$arg" = "-" ]; then
@@ -95,6 +98,11 @@ for build in $BUILDS; do
sbodl || echo "==== sbqrun: WARN: download failed, trying build anyway"
+ if [ "$download_only" = "yes" ]; then
+ echo "==== sbqrun: downloaded source for $build"
+ continue
+ fi
+
if ! sbrun -c $SBRUN_OPTS; then
echo "==== sbqrun: BUILD FAILED: $build, see $(pwd)/build.log"
FAILED+="$build "