svn commit: r365725 - head/release

Glen Barber gjb at FreeBSD.org
Mon Sep 14 15:58:11 UTC 2020


Author: gjb
Date: Mon Sep 14 15:58:10 2020
New Revision: 365725
URL: https://svnweb.freebsd.org/changeset/base/365725

Log:
  Fix setting RELENGDIR when release.sh is called from an external
  script.
  
  Sponsored by:	Rubicon Communications, LLC (netgate.com)

Modified:
  head/release/release.sh

Modified: head/release/release.sh
==============================================================================
--- head/release/release.sh	Mon Sep 14 15:48:30 2020	(r365724)
+++ head/release/release.sh	Mon Sep 14 15:58:10 2020	(r365725)
@@ -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


More information about the svn-src-head mailing list