aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2020-09-14 15:58:10 +0000
committerGlen Barber <gjb@FreeBSD.org>2020-09-14 15:58:10 +0000
commit5fb8eca8700bbf0047c8d9a4472eb71dca8f6d0c (patch)
tree05a98997fb58cad38da14317563339d48fcd6d9c /release/release.sh
parent9e4c35f867aca020df8d01fb7371bf5ae1cc8a2d (diff)
downloadsrc-5fb8eca8700bbf0047c8d9a4472eb71dca8f6d0c.tar.gz
src-5fb8eca8700bbf0047c8d9a4472eb71dca8f6d0c.zip
Fix setting RELENGDIR when release.sh is called from an external
script. Sponsored by: Rubicon Communications, LLC (netgate.com)
Notes
Notes: svn path=/head/; revision=365725
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/release.sh b/release/release.sh
index 7e89c83266d7..6e76b0cb37d1 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -57,7 +57,9 @@ usage() {
env_setup() {
# The directory within which the release will be built.
CHROOTDIR="/scratch"
- RELENGDIR="$(dirname $(realpath ${0}))"
+ if [ -z "${RELENGDIR}" ]; then
+ export RELENGDIR="$(dirname $(realpath ${0}))"
+ fi
# The default version control system command to obtain the sources.
for _dir in /usr/bin /usr/local/bin; do