[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

761.0. "bcs header filenames" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Thu Jun 02 1994 13:14

Date Of Receipt: 	26-MAY-1994 14:46:45.58
From: 	FLAMBE::"[email protected]" "26-May-1994 1145"
To: 	[email protected]
CC: 	
Subj: 	bcs header filenames

Hello,

If one wants a header file to be recognized as appropos to a file
being bcreated, how accurate must the match in filenames be?

In particular, will a header file named

  header-foo

match a file that is named

  bar-foo

?

Thank you,
--steve

T.RTitleUserPersonal
Name
DateLines
761.1Re: bcs header filenamesSMURF::FILTERAutomatic Posting Software - mail to flume::puckThu Jun 02 1994 13:2613
Date Of Receipt: 	26-MAY-1994 15:50:36.19
From: 	SEAN::davidson "D. Sean Davidson"
To: 	[email protected], [email protected]
CC: 	
Subj: 	Re:  bcs header filenames

I think that this is based on the file type after the dot.  So for *.c files
you get a c programming header, for *.sh files you get a shell comment header,
for *.man you get a man page comment header, ...


Sean

761.2Re: bcs header filenamesSMURF::FILTERAutomatic Posting Software - mail to flume::puckThu Jun 02 1994 13:5124
Date Of Receipt: 	26-MAY-1994 16:42:53.94
From: 	WASTED::"[email protected]" "26-May-1994 1342"
To: 	D. Sean Davidson <[email protected]>
CC: 	[email protected]
Subj: 	Re: bcs header filenames

) I think that this is based on the file type after the dot.  So for *.c files
) you get a c programming header, for *.sh files you get a shell comment header,
) for *.man you get a man page comment header, ...

Ok, files with .blah extensions seem to work like that, but there's
also README files which get headers, so apparently the whole filename
can match, and a header is still placed in the file.

So, my question is: are "total filename matching" and ".blah matching"
the only two successful ways to match files for header purposes?  Or
could a partial match---say everything to the right of the string 
"header" in the header filename---work as well.  (It doesn't seem to.)

Thanks much,
--steve



761.3Re: bcs header filenamesSMURF::FILTERAutomatic Posting Software - mail to flume::puckThu Jun 02 1994 14:0618
Date Of Receipt: 	26-MAY-1994 16:49:51.97
From: 	SEAN::davidson "D. Sean Davidson"
To: 	[email protected], [email protected]
CC: 	[email protected]
Subj: 	Re: bcs header filenames

bcreate only matches on the WHOLE filename or the .suffix.  If you look in
/usr/sde/ode2.0/tools/headers you will find files Makefile, README, USAGE, ...

The bcreate command can look in an alternate directory for matching headers
by setting the BCSHEADERS environment variable.  In that directory you could
have the exact file name that matches the one to check in.

Normally the .suffix is used to identify the file and when it gets installed
the .suffix is dropped off.

Sean

761.4Re: bcs header filenamesSMURF::FILTERAutomatic Posting Software - mail to flume::puckThu Jun 02 1994 16:0723
Date Of Receipt: 	27-MAY-1994 10:33:08.32
From: 	WASTED::jmf "Joshua M. Friedman OSF/UNIX SDE"
To: 	[email protected], [email protected]
CC: 	
Subj: 	Re:  bcs header filenames

Here's how it works.  The files in the BCSHEADERS directory are
of two forms: "filename" or "header.extension".  If your actual
filename is an exact match, like Makefile, or if it matches the
extension, like foobar.c (matches header.c), then bcreate will
use this.    Once the file's created, however, you can set the
comment leader to anything, and put in the appropriate header:

	i.e. 

	bcreate some-script
	bcs -c"# " some-script
	in the editor put /usr/sde/osf1/headers/header.sh
	  at the top of some-script
	  (default BCSHEADERS = /usr/sde/ode2.0/tools/headers)

Hope this tells you what you need to know...	-josh