summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-26 11:22:46 +0000
committerru <ru@FreeBSD.org>2002-07-26 11:22:46 +0000
commit586720da580290d017bd435f6c0d59827305bceb (patch)
treeb5fdb0898a631ee64e7b6bcdfa39ce35503bde82 /release
parent6a35fde02ca4a664b337544b4cbe9d8a9bd238fb (diff)
downloadFreeBSD-src-586720da580290d017bd435f6c0d59827305bceb.zip
FreeBSD-src-586720da580290d017bd435f6c0d59827305bceb.tar.gz
Make building docs possible on systems where sed(1) can't do in-place editing.
Obtained from: ports/Mk/bsd.port.mk
Diffstat (limited to 'release')
-rw-r--r--release/Makefile.inc.docports13
1 files changed, 13 insertions, 0 deletions
diff --git a/release/Makefile.inc.docports b/release/Makefile.inc.docports
index bd6786b..60b7ec3 100644
--- a/release/Makefile.inc.docports
+++ b/release/Makefile.inc.docports
@@ -9,6 +9,16 @@
# names, so the required part of the ports infrastructure will
# be cvs co'ed accordingly.
#
+
+# Get __FreeBSD_version
+.if !defined(OSVERSION)
+.if exists(/sbin/sysctl)
+OSVERSION!= /sbin/sysctl -n kern.osreldate
+.else
+OSVERSION!= /usr/sbin/sysctl -n kern.osreldate
+.endif
+.endif
+
MINIMALDOCPORTS= \
ports/Mk \
ports/archivers/unzip \
@@ -47,6 +57,9 @@ MINIMALDOCPORTS= \
ports/textproc/xhtml \
ports/www/links1 \
ports/www/tidy
+.if ${OSVERSION} < 460101 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500036 )
+MINIMALDOCPORTS+= ports/textproc/sed_inplace
+.endif
.if ${MACHINE_ARCH} == "alpha"
MINIMALDOCPORTS+= ports/textproc/openjade
.else
OpenPOWER on IntegriCloud