Require REGENT_BUILD_HOST instead of defaulting to a specific machine
The wrapper fell back to one hard-coded build host when the variable was unset, so it silently only worked on that one machine. It now exits with a clear message pointing at the variable, and the dev doc marks it required (REGENT_REPO_PATH keeps its `~/src/regent` default).
This commit is contained in:
2 files changed
+9
-5
No files matched your search
@@ -12,7 +12,7 @@
|
||||
# # beside the stable one (regent-devel)
|
||||
#
|
||||
# Environment:
|
||||
# REGENT_BUILD_HOST ssh target of the build host (default: nuc-zt)
|
||||
# REGENT_BUILD_HOST ssh target of the build host (required)
|
||||
# REGENT_REPO_PATH repo path on the build host (default: ~/src/regent)
|
||||
# REGENT_PROFILE `default` (stable) or `development` (nightly `.Devel`);
|
||||
# see meson.options. The nightly installs as `regent-devel`
|
||||
@@ -20,7 +20,7 @@
|
||||
# runs alongside a stable install instead of replacing it.
|
||||
set -euo pipefail
|
||||
|
||||
HOST=${REGENT_BUILD_HOST:-nuc-zt}
|
||||
HOST=${REGENT_BUILD_HOST:-}
|
||||
REPO=${REGENT_REPO_PATH:-'~/src/regent'}
|
||||
REMOTE="$REPO/build-aux/deploy-dev.sh"
|
||||
REMOTE_SELF="$REPO/build-aux/regent-deploy.sh"
|
||||
@@ -46,6 +46,10 @@ case "$PROFILE" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# The build host has no sensible default — it used to fall back to a specific
|
||||
# machine, which silently only ever worked there. Require it instead.
|
||||
[ -n "$HOST" ] || die "REGENT_BUILD_HOST is not set — point it at your build host's ssh target (e.g. user@build-host)"
|
||||
|
||||
# Keep this script current.
|
||||
#
|
||||
# It is installed as a *copy*, so without this it silently keeps running whatever
|
||||
|
||||
@@ -112,11 +112,11 @@ ssh BUILD_HOST 'cat PATH/TO/regent/build-aux/regent-deploy.sh' > ~/.local/bin/re
|
||||
chmod +x ~/.local/bin/regent-deploy
|
||||
```
|
||||
|
||||
Then point it at your build host and repository path, either by exporting them or
|
||||
by editing the defaults at the top of the script:
|
||||
Then point it at your build host and repository path — either export them or edit
|
||||
the script:
|
||||
|
||||
```sh
|
||||
export REGENT_BUILD_HOST=user@build-host # default: nuc-zt
|
||||
export REGENT_BUILD_HOST=user@build-host # required
|
||||
export REGENT_REPO_PATH='~/src/regent' # default: ~/src/regent
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user