Commit graph

9 commits

Author SHA1 Message Date
Glen Barber
fed721c589 Move the ports INDEX fetch functionality from webupdate.wrapper
to webupdate to fix the weekly clean build failures.

When fullbuild-clean.flag exists, all of the trees are removed
and checked out cleanly.  This happens after the INDEX-${INDEXNUM}
is fetched, so when the build enters the htdocs/ports/ directory,
the INDEX-${INDEXNUM} no longer exists.

Approved by:	doceng (implicit)
Sponsored by:	The FreeBSD Foundation
2015-08-18 21:05:16 +00:00
Glen Barber
de2755b681 Update webupdate and webupdate.wrapper to fix several issues.
In webupdate:
 - Output the ports tree checkout to the log file.
 - Set the depth of ports/Mk/ to 'infinity', since its contents
   are needed for 'fetchindex' to work properly.
 - Reduce redundant explicit paths to use the value of 'subdirs'.

In webupdate.wrapper:
 - Set PORTSDIR to the actual path that is being updated by
   webupdate.
 - If PINDEX_OVERRIDE is set, remove the INDEX-INDEXNUM file.

Approved by:	doceng (implicit)
Sponsored by:	The FreeBSD Foundation
2015-06-24 15:41:33 +00:00
Glen Barber
ff02792b59 Revert previous commit, which broke the build.
The problem is the INDEX info isn't being properly generated,
and now I see why.  But I'm going to wait until the in-flight
email service migration stuff is done before fixing this.

Sponsored by:	The FreeBSD Foundation
2015-06-24 03:26:22 +00:00
Glen Barber
dce6c6a1b0 Fix the path to PORTSDIR, which should fix stale ports info
on the website.

Spotted by:	bapt
Prodded by:	peter
Approved by:	doceng (implicit)
Sponsored by:	The FreeBSD Foundation
2015-06-24 02:43:51 +00:00
Glen Barber
5f5622f0f6 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
2014-09-09 12:12:09 +00:00
Glen Barber
8bd14a12f1 Update webupdate and webupdate.wrapper scripts to always
install from a clean build directory.

PUBDIR is where the installed files end up for the public
site.  DESTDIR is now suffixed with '-clean', and always
purged before a new build starts.

When the build finishes, rsync populates PUBDIR from the
resulting DESTDIR files.  When doing a full site refresh,
'rsync --delete' is used to purge stale files.

Sponsored by:	The FreeBSD Foundation
2014-02-18 18:04:03 +00:00
Glen Barber
931f8586f2 Pull in the notice from webupdate that these scripts are not
updated automatically on the cluster.

Approved by:	doceng (implicit)
Sponsored by:	The FreeBSD Foundation
2013-11-07 21:53:09 +00:00
Glen Barber
20b0d371b1 Clean up cruft that has collected over the years.
Approved by:	doceng (implicit)
Sponsored by:	The FreeBSD Foundation
2013-11-07 21:52:10 +00:00
Glen Barber
a9d1f85cc8 Add the webupdate.wrapper script used on build-web.
I do not quite know why this was never committed here, but add
it now so next time I accidentally remove it, it is trivial to
get back.

Approved by:	doceng (implicit)
Sponsored by:	The FreeBSD Foundation
2013-11-07 21:51:14 +00:00