[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

1131.0. "Re: Makefiles for scripts extracting comments" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue Dec 13 1994 17:05

Date Of Receipt: 	 1-DEC-1994 18:23:18.76
From: 	WASTED::jmf "Joshua M. Friedman OSF/UNIX SDE"
To: 	myrdal@DEC:.zko.wasted
CC: 	buildhelp terry zap
Subj: 	Re:  Makefiles for scripts extracting comments

(fyi, I've cc'd buildhelp on this - in case there's any more ideas)


Greg, if you use the SCRIPTS= rule, this by default always strips all
comments (and does it fairly stupidly as you've discovered).  

I think you may be able to reset the SED_OPTIONS variable to cause the
stripping not to happen, as in:

	SED_OPTIONS = ""

or maybe
	SED_OPTIONS = -e ''


If this sort of thing doesn't work, you'll have to change it from 
a SCRIPTS= rule to a DATAFILES= rule (which won't know about .sh suffixes)


If you only want the special sed rule to apply to one command, you
can say   filename_SED_OPTIONS =


See, for example, kernel/conf/Makefile


-josh

------
From myrdal  Thu Dec  1 14:45:11 1994
Delivery-Date: Thu, 01 Dec 94 14:45:12 -0500
Return-Path: myrdal
Received: from quarry.zk3.dec.com by flambe.zk3.dec.com; (5.65/1.1.8.2/30Mar94-0502PM)
	id AA01251; Thu, 1 Dec 1994 14:45:11 -0500
Received: from localhost by quarry.zk3.dec.com; (5.65/1.1.8.2/25Apr94-0216PM)
	id AA07366; Thu, 1 Dec 1994 14:45:11 -0500
Message-Id: <[email protected]>
To: jmf, zap
Cc: myrdal, terry
Subject: Makefiles for scripts extracting comments 
Date: Thu, 01 Dec 94 14:45:10 -0500
From: "Gregory P. Myrdal" <myrdal>
X-Mts: smtp


Hi,

We have some shell scripts in ASE that would like to retain comments in
for the customer.  Right now it appears that the build Makefile for shell
scripts strips off commented lines.  Can someone tell me how to create a
token that does not match the one that is being removed in the Makefile
(or where ever this is happening)?


Thanks much

-- Greg

PS This also had another bad side effect of pulling out part of a ksh print
statement I had.  I had something like the following:

	print "
The config failed, please do blah, blah, blah and re run the following
commands as root:

	# /var/ase/sbin/ase_fix_config config_file
	# doconfig -c config_file
"

This was a bummer!  I am glad I found it before we shipped!
  __________________________________________________________________________
  Gregory P. Myrdal                 Internet: [email protected]
  MS ZKO3-3/U14                     UUnet:    decvax!myrdal
  Digital Equipment Corp.           DECnet:   WASTED::MYRDAL
  110 Spit Brook Road               Voice:    1-603-881-0304
  Nashua, New Hampshire 03062-2698  FAX:      1-603-881-2257
  DTN:    381-0304                  WWW:      http://www.zk3.dec.com/~myrdal
  __________________________________________________________________________



T.RTitleUserPersonal
Name
DateLines