- Add in some sanity checking. If NOPORTS is set but NODOC is not set,

print an error message and die immediately rather than an hour later.
This commit is contained in:
John Baldwin 2000-07-14 18:03:32 +00:00
parent fa6b9ae389
commit d191a99c2e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63161

View File

@ -174,6 +174,11 @@ rerelease release:
.if !defined(CHROOTDIR) || !defined(BUILDNAME) || !defined(CVSROOT)
@echo "To make a release you must set CHROOTDIR, BUILDNAME and CVSROOT" && false
.endif
.if defined(NOPORTS) && !defined(NODOC)
@echo "Ports are required for building the docs. Either set NODOC or"
@echo "unset NOPORTS!"
@exit 1
.endif
.if make(release)
.if exists(${CHROOTDIR})
# The first command will fail on a handful of files that have their schg