pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Turn _MANCOMPRESSED into a strictly "yes" and "no" ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc019619f0be
branches: trunk
changeset: 493978:cc019619f0be
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue May 17 22:07:56 2005 +0000
description:
Turn _MANCOMPRESSED into a strictly "yes" and "no" variable
(case-sensitive) to simplify writing the do-install target code that
automatically compresses or decompresses man pages after installation.
diffstat:
mk/bsd.pkg.mk | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 9b993118d541 -r cc019619f0be mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Tue May 17 22:00:13 2005 +0000
+++ b/mk/bsd.pkg.mk Tue May 17 22:07:56 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1668 2005/05/17 21:46:59 dmcmahill Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1669 2005/05/17 22:07:56 jlam Exp $
#
# This file is in the public domain.
#
@@ -876,7 +876,11 @@
# the BSD-style makefile causes the man pages to be compressed or not.
#
.if !defined(_MANCOMPRESSED)
-_MANCOMPRESSED?= ${MANCOMPRESSED:Uno}
+. if defined(MANCOMPRESSED) && !empty(MANCOMPRESSED:M[yY][eE][sS])
+_MANCOMPRESSED= yes
+. else
+_MANCOMPRESSED= no
+. endif
. if defined(MANCOMPRESSED_IF_MANZ) && defined(PKGMAKECONF)
_MANCOMPRESSED!= \
{ ${ECHO} ".include \""${PKGMAKECONF:Q}"\""; \
Home |
Main Index |
Thread Index |
Old Index