diff options
author | Brad Davis <brd@FreeBSD.org> | 2019-05-18 17:13:08 +0000 |
---|---|---|
committer | Brad Davis <brd@FreeBSD.org> | 2019-05-18 17:13:08 +0000 |
commit | 1935b8f92e826828fb3614c7f86b571f8077a22b (patch) | |
tree | 1c6fe98e55107f06774d4626b7698f60bd93d017 /tools | |
parent | bd0b1de42f8d632547aaf3889e5d2342d3ccf576 (diff) | |
download | src-test2-1935b8f92e826828fb3614c7f86b571f8077a22b.tar.gz src-test2-1935b8f92e826828fb3614c7f86b571f8077a22b.zip |
Notes
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build/beinstall.sh | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tools/build/beinstall.sh b/tools/build/beinstall.sh index cd325dafc805..3f34049baf50 100755 --- a/tools/build/beinstall.sh +++ b/tools/build/beinstall.sh @@ -54,10 +54,6 @@ MERGEMASTER_FLAGS="${MERGEMASTER_FLAGS:-"-iFU"}" ######################################################################## -## Constants -ETCUPDATE_CMD="etcupdate" -MERGEMASTER_CMD="mergemaster" - ## Functions cleanup() { [ -z "${cleanup_commands}" ] && return @@ -126,23 +122,22 @@ create_be_dirs() { } update_mergemaster_pre() { - mergemaster -p -m ${srcdir} -D ${BE_MNTPT} -t ${BE_MM_ROOT} ${MERGEMASTER_FLAGS} + ${MERGEMASTER_CMD} -p -m ${srcdir} -D ${BE_MNTPT} -t ${BE_MM_ROOT} ${MERGEMASTER_FLAGS} } update_mergemaster() { - chroot ${BE_MNTPT} \ - mergemaster -m ${srcdir} -t ${BE_MM_ROOT} ${MERGEMASTER_FLAGS} + ${MERGEMASTER_CMD} -m ${srcdir} -D ${BE_MNTPT} -t ${BE_MM_ROOT} ${MERGEMASTER_FLAGS} } update_etcupdate_pre() { - etcupdate -p -s ${srcdir} -D ${BE_MNTPT} ${ETCUPDATE_FLAGS} || return $? - etcupdate resolve -D ${BE_MNTPT} || return $? + ${ETCUPDATE_CMD} -p -s ${srcdir} -D ${BE_MNTPT} ${ETCUPDATE_FLAGS} || return $? + ${ETCUPDATE_CMD} resolve -D ${BE_MNTPT} || return $? } update_etcupdate() { chroot ${BE_MNTPT} \ - etcupdate -s ${srcdir} ${ETCUPDATE_FLAGS} || return $? - chroot ${BE_MNTPT} etcupdate resolve + ${ETCUPDATE_CMD} -s ${srcdir} ${ETCUPDATE_FLAGS} || return $? + chroot ${BE_MNTPT} ${ETCUPDATE_CMD} resolve } @@ -175,6 +170,10 @@ srcdir=$(pwd) objdir=$(make -V .OBJDIR 2>/dev/null) [ ! -d "${objdir}" ] && errx "Must have built FreeBSD from source tree" +## Constants +ETCUPDATE_CMD="${srcdir}/usr.sbin/etcupdate/etcupdate.sh" +MERGEMASTER_CMD="${srcdir}/usr.sbin/mergemaster/mergemaster.sh" + # May be a worktree, in which case .git is a file, not a directory. if [ -e .git ] ; then commit_time=$(git show --format='%ct' 2>/dev/null | head -1) |