aboutsummaryrefslogtreecommitdiff
path: root/sbqrun
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-01-12 15:04:47 -0500
committerB. Watson <urchlay@slackware.uk>2025-01-12 15:04:47 -0500
commit69db3a196c69f0e80857b0adb71b5afed0613a9f (patch)
treebd5ef9559f1a33537f8931558c8d6d41096c6a80 /sbqrun
parent7fbd45b8fd2a9ba0d841da7ba7ff29117ec77a0e (diff)
downloadsbostuff-69db3a196c69f0e80857b0adb71b5afed0613a9f.tar.gz
sbrun: get rid of chown warning, fix -i help.
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 "