mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Move PATH and export to the same line.
Handle svn or svnlite being installed in /usr/bin or /usr/local/bin. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a12fa24967
commit
5dbf38dcca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-arm-redux/; revision=282541
|
@ -36,8 +36,7 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
|
||||
export PATH
|
||||
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
|
||||
|
||||
VERSION=2
|
||||
|
||||
|
@ -60,7 +59,13 @@ env_setup() {
|
|||
RELENGDIR="$(realpath $(dirname $(basename ${0})))"
|
||||
|
||||
# The default version control system command to obtain the sources.
|
||||
VCSCMD="svn checkout"
|
||||
for _dir in /usr/bin /usr/local/bin; do
|
||||
for _svn in svn svnlite; do
|
||||
[ -x "${_dir}/${_svn}" ] && VCSCMD="${_dir}/${_svn}"
|
||||
[ ! -z "${VCSCMD}" ] && break 2
|
||||
done
|
||||
done
|
||||
VCSCMD="${VCSCMD} checkout"
|
||||
|
||||
# The default svn checkout server, and svn branches for src/, doc/,
|
||||
# and ports/.
|
||||
|
|
Loading…
Reference in a new issue