pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Some licenses are pretty long, so use $PAGER instea...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d6ff715097e
branches:  trunk
changeset: 467309:2d6ff715097e
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Wed Jan 28 20:29:46 2004 +0000

description:
Some licenses are pretty long, so use $PAGER instead of $CAT, if $PAGER
is set.

diffstat:

 mk/bsd.pkg.mk |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 263c6e74ad47 -r 2d6ff715097e mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Wed Jan 28 17:11:16 2004 +0000
+++ b/mk/bsd.pkg.mk     Wed Jan 28 20:29:46 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1362 2004/01/27 16:11:47 agc Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1363 2004/01/28 20:29:46 jschauma Exp $
 #
 # This file is in the public domain.
 #
@@ -4386,7 +4386,11 @@
 show-license show-licence:
        @if [ "${LICENSE}" != "" ]; then                                \
                if [ -e ${_PKGSRCDIR}/licenses/${LICENSE} ]; then       \
-                       ${CAT} ${_PKGSRCDIR}/licenses/${LICENSE};       \
+                       if [ "${PAGER}" != "" ]; then                   \
+                               ${PAGER} ${_PKGSRCDIR}/licenses/${LICENSE};\
+                       else                                            \
+                               ${CAT} ${_PKGSRCDIR}/licenses/${LICENSE};\
+                       fi                                              \
                else                                                    \
                        ${ECHO} "Generic ${LICENSE} information not available"; \
                        ${ECHO} "See the package description (pkg_info -d ${PKGNAME}) for more information."; \



Home | Main Index | Thread Index | Old Index