Subject: port-i386/1303: i386-current fails to build install diskettes
To: None <gnats-bugs@gnats.netbsd.org>
From: Giles Lean <giles@nemeton.com.au>
List: netbsd-bugs
Date: 08/01/1995 19:55:42
>Number:         1303
>Category:       port-i386
>Synopsis:       i386-current fails to build install diskettes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug  1 07:35:01 1995
>Last-Modified:
>Originator:     Giles Lean
>Organization:
Giles Lean                                             Nemeton Pty Ltd
<giles@nemeton.com.au>                           phone: +61 3 480 2118        
>Release:        July 29 1995
>Environment:
	
System: NetBSD topaz.nemeton.com.au 1.0A NetBSD 1.0A (TOPAZ) #12: Sun Jul 30 09:02:49 EST 1995 giles@topaz.nemeton.com.au:/usr/src/sys/arch/i386/compile/TOPAZ i386


>Description:
	Building install diskettes fails since 'rm -f usr/mdec'
	fails as usr/mdec is a newly created directory.
>How-To-Repeat:
	Try to build install diskettes for the i386.
>Fix:
	The following fix isn't "nice"; enhancement to the input
	to list2sh.awk to specfically support directories would
	probably be better.  This is good enough to work.

*** list2sh.awk.orig	Sun Jul 30 12:33:45 1995
--- list2sh.awk	Sun Jul 30 12:40:37 1995
***************
*** 10,16 ****
  }
  $1 == "COPY" {
  	printf("echo '%s'\n", $0);
! 	printf("rm -f ${TARGDIR}/%s\n", $3);
  	printf("cp %s ${TARGDIR}/%s\n", $2, $3);
  	next;
  }
--- 10,16 ----
  }
  $1 == "COPY" {
  	printf("echo '%s'\n", $0);
! 	printf("test -d ${TARGDIR}/%s || rm -f ${TARGDIR}/%s\n", $3, $3);
  	printf("cp %s ${TARGDIR}/%s\n", $2, $3);
  	next;
  }
>Audit-Trail:
>Unformatted: