Deleted Added
full compact
mm-mtree.sh (196434) mm-mtree.sh (254951)
1#!/bin/sh
2
3# mergemaster mtree database generator
4
5# This script is intended to be used as part of the release building
6# process to generate the /var/db/mergemaster.mtree file relevant to
7# the source tree used to create the release so that users can make
8# use of mergemaster's -U option to update their files after csup'ing
9# to -stable.
10
11# Copyright 2009 Douglas Barton
12# dougb@FreeBSD.org
13
1#!/bin/sh
2
3# mergemaster mtree database generator
4
5# This script is intended to be used as part of the release building
6# process to generate the /var/db/mergemaster.mtree file relevant to
7# the source tree used to create the release so that users can make
8# use of mergemaster's -U option to update their files after csup'ing
9# to -stable.
10
11# Copyright 2009 Douglas Barton
12# dougb@FreeBSD.org
13
14# $FreeBSD: head/release/scripts/mm-mtree.sh 196434 2009-08-23 05:42:50Z dougb $
14# $FreeBSD: head/release/scripts/mm-mtree.sh 254951 2013-08-27 04:42:42Z will $
15
16PATH=/bin:/usr/bin:/usr/sbin
17
18display_usage () {
19 VERSION_NUMBER=`grep "[$]FreeBSD:" $0 | cut -d ' ' -f 4`
20 echo "${0##*/} version ${VERSION_NUMBER}"
21 echo "Usage: ${0##*/} [-m /path] [-t /path] [-A arch] [-F <make args>] [-D /path]"
22 echo "Options:"

--- 53 unchanged lines hidden (view full) ---

76 echo " *** The source directory you specified (${SOURCEDIR})"
77 echo " will be reset to ${SOURCEDIR}/.."
78 echo ''
79 sleep 3
80 SOURCEDIR=${SOURCEDIR}/..
81fi
82
83# Setup make to use system files from SOURCEDIR
15
16PATH=/bin:/usr/bin:/usr/sbin
17
18display_usage () {
19 VERSION_NUMBER=`grep "[$]FreeBSD:" $0 | cut -d ' ' -f 4`
20 echo "${0##*/} version ${VERSION_NUMBER}"
21 echo "Usage: ${0##*/} [-m /path] [-t /path] [-A arch] [-F <make args>] [-D /path]"
22 echo "Options:"

--- 53 unchanged lines hidden (view full) ---

76 echo " *** The source directory you specified (${SOURCEDIR})"
77 echo " will be reset to ${SOURCEDIR}/.."
78 echo ''
79 sleep 3
80 SOURCEDIR=${SOURCEDIR}/..
81fi
82
83# Setup make to use system files from SOURCEDIR
84objp=${MAKEOBJDIRPREFIX}
85[ -z "${objp}" ] && objp=/usr/obj
86legacydir=${objp}${SOURCEDIR}/tmp/legacy
87legacypath=${legacydir}/usr/sbin:${legacydir}/usr/bin:${legacydir}/bin
88MM_MAKE_ARGS="${MM_MAKE_ARGS} PATH=${legacypath}:${PATH}"
84MM_MAKE="make ${ARCHSTRING} ${MM_MAKE_ARGS} -m ${SOURCEDIR}/share/mk"
85
86delete_temproot () {
87 rm -rf "${TEMPROOT}" 2>/dev/null
88 chflags -R 0 "${TEMPROOT}" 2>/dev/null
89 rm -rf "${TEMPROOT}" || exit 1
90}
91

--- 64 unchanged lines hidden ---
89MM_MAKE="make ${ARCHSTRING} ${MM_MAKE_ARGS} -m ${SOURCEDIR}/share/mk"
90
91delete_temproot () {
92 rm -rf "${TEMPROOT}" 2>/dev/null
93 chflags -R 0 "${TEMPROOT}" 2>/dev/null
94 rm -rf "${TEMPROOT}" || exit 1
95}
96

--- 64 unchanged lines hidden ---