From proff@suburbia.net  Tue Apr  8 23:08:35 1997
Received: from pdx1.world.net (pdx1.world.net [192.243.32.18])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA28785
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Apr 1997 23:08:34 -0700 (PDT)
Received: from suburbia.net (suburbia.net [203.4.184.1]) by pdx1.world.net (8.7.5/8.7.3) with SMTP id XAA01718 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Apr 1997 23:11:00 -0700 (PDT)
Received: (qmail 4072 invoked by uid 110); 9 Apr 1997 06:04:31 -0000
Message-Id: <19970409060431.4071.qmail@suburbia.net>
Date: 9 Apr 1997 06:04:31 -0000
From: proff@suburbia.net
Reply-To: proff@suburbia.net
To: FreeBSD-gnats-submit@freebsd.org, jkh@freebsd.org
Subject: <Synopsis of the problem (one line)> SCRIPTS addition to bsd.prog.mk
X-Send-Pr-Version: 3.2

>Number:         3237
>Category:       misc
>Synopsis:       SCRIPTS addition to bsd.prog.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr  8 23:10:02 PDT 1997
>Closed-Date:    Sun Nov 19 20:38:31 PST 2000
>Last-Modified:  Sun Nov 19 20:41:46 PST 2000
>Originator:     Julian Assange
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

It is painful install executeable bourne/perl/tcl etc scripts, and there currently
exists no rule to do this within <bsd.prog.mk>. PROG is completely C oriented.

	

>How-To-Repeat:

	

>Fix:
	
	

The following patch permits one to use this construct:

#makefile

SCRIPTS= dress devil red in

--- bsd.prog.mk~	Wed Apr  9 15:25:03 1997
+++ bsd.prog.mk	Wed Apr  9 15:25:03 1997
@@ -97,6 +97,12 @@
 .endif
 
 realinstall: beforeinstall
+.if defined(SCRIPTS)
+.for script in ${SCRIPTS}
+        ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+	    ${INSTALLFLAGS} ${script} ${DESTDIR}${BINDIR}
+.endfor
+.endif
 .if defined(PROG)
 	${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
 	    ${INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: mpp 
Responsible-Changed-When: Wed Apr 9 11:57:05 PDT 1997 
Responsible-Changed-Why:  
Misfiled PR. 
Responsible-Changed-From-To: freebsd-bugs->marcel 
Responsible-Changed-By: johan 
Responsible-Changed-When: Mon Aug 21 06:25:56 PDT 2000 
Responsible-Changed-Why:  
Marcel you have become somewhat of our makefile expert. 
Can you please have a look at this and decide what to to? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=3237 

From: Marcel Moolenaar <marcel@cup.hp.com>
To: freebsd-gnats-submit@FreeBSD.org, proff@suburbia.net,
	johan@FreeBSD.org
Cc:  
Subject: Re: misc/3237: SCRIPTS addition to bsd.prog.mk
Date: Mon, 21 Aug 2000 12:14:17 -0700

 Our source tree is set up in such a way that each directory contains 1
 binary or script. Adding a SCRIPTS variable to allow additional scripts,
 violates with this setup. Secondly it is assumed that the SCRIPTS are to
 be installed in the same directory and with the same mods as the PROG.
 This is probably too limited.
 
 In short: I don't see brokenness at this time, so I don't see a need for
 a fix, especially a quick fix like this.
 
 If I overlooked something or simply don't understand the problem, let me
 know.
 
 -- 
 Marcel Moolenaar
   mail: marcel@cup.hp.com / marcel@FreeBSD.org
   tel:  (408) 447-4222
 

From: proff@suburbia.net (Julian Assange)
To: Marcel Moolenaar <marcel@cup.hp.com>
Cc: freebsd-gnats-submit@FreeBSD.org, johan@FreeBSD.org
Subject: Re: misc/3237: SCRIPTS addition to bsd.prog.mk
Date: Tue, 22 Aug 2000 14:00:28 +1000 (EST)

 You can't strip a script.
 
 > Our source tree is set up in such a way that each directory contains 1
 > binary or script. Adding a SCRIPTS variable to allow additional scripts,
 > violates with this setup. Secondly it is assumed that the SCRIPTS are to
 > be installed in the same directory and with the same mods as the PROG.
 > This is probably too limited.
 > 
 > In short: I don't see brokenness at this time, so I don't see a need for
 > a fix, especially a quick fix like this.
 > 
 > If I overlooked something or simply don't understand the problem, let me
 > know.
 > 
 > -- 
 > Marcel Moolenaar
 >   mail: marcel@cup.hp.com / marcel@FreeBSD.org
 >   tel:  (408) 447-4222
 > 
 
 

From: Marcel Moolenaar <marcel@cup.hp.com>
To: Julian Assange <proff@suburbia.net>
Cc: freebsd-gnats-submit@FreeBSD.org, johan@FreeBSD.org
Subject: Re: misc/3237: SCRIPTS addition to bsd.prog.mk
Date: Mon, 21 Aug 2000 21:20:43 -0700

 Julian Assange wrote:
 > 
 > You can't strip a script.
 > 
 
 Correct. This is best solved by having the proper install arguments. A
 NO_STRIP variable will do the trick nicely without implying second order
 functionality we don't actually want. Adding a SCRIPTS variable to
 work-around this problem is like taking a scenic route while you're in a
 hurry :-)
 
 -- 
 Marcel Moolenaar
   mail: marcel@cup.hp.com / marcel@FreeBSD.org
   tel:  (408) 447-4222
 
State-Changed-From-To: open->closed 
State-Changed-By: marcel 
State-Changed-When: Sun Nov 19 20:38:31 PST 2000 
State-Changed-Why:  
Scripts are already handled. There's no immediate need to to add 
a SCRIPTS variable. Multiple scripts can be installed using the 
beforeinstall target as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=3237 
>Unformatted:
