[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Auto extraction of names from the LSB spec sources.



Stuart Anderson wrote:
> 
> On Tue, 17 Apr 2001, Albert den Haan wrote:
> 
> > How hard would it be to have the dynamically built files always contain a
> > few comments that would describe their provenance so that random browsers
> > like myself would have a clue that they were generated from a database and
> > how?
> 
> For new files that are about to be designed, that would be easy. For some of
> the existing file, the format may be sensitive to extra comments like that
> (ie it doesn't need to show up in the tables in the document), but anywhere
> we could add it without being intrusive would probably be good.
> 
>                                 Stuart

I was thinking of adding SGML comments to the sgml files.  They are
unobtrusive except to the people editing the file.

Something like:

RCS file: /cvsroot/lsb/spec/mkcmdtable,v
retrieving revision 1.1
diff -u -w -r1.1 mkcmdtable
--- spec/mkcmdtable     2001/02/14 04:40:37     1.1
+++ spec/mkcmdtable     2001/04/19 20:11:47
@@ -135,7 +135,14 @@

###############################################################################
#
 
 lsbOpenDB;
+printf("-- Start of text generated from database --\n");
+printf("-- generated from the LSB specification database --\n");
+printf("--    by \$Header:\$ --\n");
+my $now_string = localtime;
+printf("--    at %s --\n", $now_string );
 lsbCommands;
+printf("-- End of text generated from database --\n");
+printf("--    by \$Header:\$ --\n");
 lsbCloseDB;
 
 exit;

--
Albert den Haan, Lead Developer @ Linux Port Team . Corel Corporation
albertd@corel.com  (613) 728-0826 x 5318
-- 
The address in the headers is not the poster's real email address.  Do not send
private mail to the poster using your mailer's "reply" feature.  CC's of mail 
to mailing lists are OK.  Problem reports to "postmaster@umail.corel.com".  
The poster's email address is "albertd@corel.com".



Reply to: