Subject: pkg/9120: make readme-all fails if README-all.html doesn't exist
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Eriksson T/K 2 <Michael.Eriksson@era-t.ericsson.se>
List: netbsd-bugs
Date: 01/04/2000 15:30:43
>Number:         9120
>Category:       pkg
>Synopsis:       make readme-all fails if README-all.html doesn't exist
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan  4 15:30:01 2000
>Last-Modified:
>Originator:     Michael Eriksson
>Organization:
Ericsson Radio System AB
>Release:        Doesn't matter
>Environment:
System: NetBSD burken 1.4P NetBSD 1.4P (EMT) #0: Mon Dec 27 11:11:51 CET 1999 eramore@burken:/var/home/eramore/wrk/maestro2/sys/arch/i386/compile/EMT i386

>Description:

There's a bug in the top-level pkgsrc Makefile, so initial creation of
README-all.html is impossible without manual invention.

>How-To-Repeat:

% cd /usr/pkgsrc
% make readme-all
*** Error code 1

Stop.
% 

>Fix:

--- Makefile.orig	Thu Oct 28 00:27:31 1999
+++ Makefile	Wed Jan  5 00:25:05 2000
@@ -84,7 +84,9 @@
 # the category/README.html pages
 #
 readme-all:
-	@[ -f README-all.html ] && mv README-all.html README-all.html.BAK
+	@if [ -f README-all.html ]; then \
+		mv README-all.html README-all.html.BAK; \
+	fi
 	@${MAKE} README-all.html
 	@if cmp -s README-all.html README-all.html.BAK  ; then \
 		mv README-all.html.BAK README-all.html ; \

>Audit-Trail:
>Unformatted: