Update the webupdate.wrapper to match the running
version: - Don't assume or hard-code PORTSDIR is in /usr. - Set PINDEX_OVERRIDE based on the running OSVERSION. - Fetch the ports/INDEX file if ENOENT. - Group all exported variables together. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6cf22f2188
commit
5f5622f0f6
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45572
1 changed files with 10 additions and 8 deletions
|
@ -12,20 +12,22 @@ SVNROOT=svn://svn.FreeBSD.org
|
|||
PUBDIR=/usr/local/www/www.freebsd.org
|
||||
DESTDIR="${PUBDIR}-clean"
|
||||
RSYNC_FLAGS="-avH"
|
||||
PINDEX_OVERRIDE=/usr/ports/INDEX-9
|
||||
GEN_INDEX=yes
|
||||
export USER=www-data
|
||||
export PATH DESTDIR PINDEX_OVERRIDE GEN_INDEX PUBDIR
|
||||
|
||||
WEBMAILTO=freebsd-doc@FreeBSD.org
|
||||
export WEBMAILTO
|
||||
|
||||
FLAGDIR=/usr/local/www/build
|
||||
|
||||
# We always build these - they are fast
|
||||
: ${PORTSDIR:=/usr/local/www/ports}; export PORTSDIR
|
||||
: ${INDEXNUM:=$(make -C ${PORTSDIR} -V OSREL)}
|
||||
: ${PINDEX_OVERRIDE:=${PORTSDIR}/INDEX-${INDEXNUM%%.*}}
|
||||
export USER=www-data
|
||||
export PATH DESTDIR PINDEX_OVERRIDE GEN_INDEX PUBDIR PORTSDIR
|
||||
export WEBMAILTO
|
||||
export WITH_PORTS_GROWTH=YES
|
||||
export WITH_PRSTATS=YES
|
||||
|
||||
if [ ! -e "${PINDEX_OVERRIDE}" ]; then
|
||||
make -C ${PORTSDIR} fetchindex
|
||||
fi
|
||||
|
||||
# Flags are ordered by more extensive to less
|
||||
if [ -e $FLAGDIR/fullbuild-clean.flag ]; then
|
||||
export BUILD_RELNOTES=YES
|
||||
|
|
Loading…
Reference in a new issue