Remove get_rev_branch(), functionality exists in the release/Makefile.

Submitted by:	hrs
This commit is contained in:
Glen Barber 2013-08-13 21:01:23 +00:00
parent 7d1ffcb72a
commit 4756295ebb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254298

View File

@ -73,17 +73,6 @@ NODOC=
NOPORTS=
MAKE_FLAGS="${MAKE_FLAGS}"
get_rev_branch () {
# Set up the OSVERSION, BRANCH, and REVISION based on the src/ tree
# checked out.
OSVERSION=$(grep '#define __FreeBSD_version' ${CHROOTDIR}/usr/src/sys/sys/param.h | awk '{print $3}')
BRANCH=$(grep '^BRANCH=' ${CHROOTDIR}/usr/src/sys/conf/newvers.sh \
| awk -F\= '{print $2}' | sed -e 's,",,g')
REVISION=$(grep '^REVISION=' ${CHROOTDIR}/usr/src/sys/conf/newvers.sh \
| awk -F\= '{print $2}' | sed -e 's,",,g')
OSRELEASE="${REVISION}-${BRANCH}"
}
usage() {
echo "Usage: $0 [-c release.conf]"
exit 1
@ -171,8 +160,6 @@ if [ "x${NOPORTS}" = "x" ]; then
svn co ${SVNROOT}/${PORTBRANCH} ${CHROOTDIR}/usr/ports
fi
get_rev_branch
cd ${CHROOTDIR}/usr/src
make ${CHROOT_WMAKEFLAGS} buildworld
make ${CHROOT_IMAKEFLAGS} installworld DESTDIR=${CHROOTDIR}