pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Abort "make readme-all" before it fails (when there ar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58e0d8f1af9c
branches:  trunk
changeset: 461493:58e0d8f1af9c
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Tue Sep 16 20:31:00 2003 +0000

description:
Abort "make readme-all" before it fails (when there are no README.html files
available) and tell the user what to do.  Addresses PR pkg/22413.

diffstat:

 Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 788d623d83ac -r 58e0d8f1af9c Makefile
--- a/Makefile  Tue Sep 16 20:24:18 2003 +0000
+++ b/Makefile  Tue Sep 16 20:31:00 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2003/07/25 02:44:09 grant Exp $
+# $NetBSD: Makefile,v 1.59 2003/09/16 20:31:00 jmmv Exp $
 #
 
 .include "mk/bsd.prefs.mk"
@@ -187,6 +187,11 @@
        fi
 .endfor
        @${ECHO} "."
+       @if [ ! -f $@.new ]; then \
+               ${ECHO} "There are no categories with README.html files available."; \
+               ${ECHO} "You need to run \`${MAKE} readme' to generate them before running this target."; \
+               ${FALSE}; \
+       fi
        @${SORT} -f -t '">' +2 <$@.new >$@.newsorted
        @${WC} -l $@.newsorted | ${AWK} '{ print $$1 }'  >$@.npkgs
        @${CAT} templates/README.all \



Home | Main Index | Thread Index | Old Index