Operating System - HP-UX
1831549 Members
3593 Online
110025 Solutions
New Discussion

Re: RCS $Log Output does not use # character for comments for files with .pl extension

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

RCS $Log Output does not use # character for comments for files with .pl extension

I've included the $Log keyword in my perl programs so that the revision history will show up in the program. Checking in/out the file fails to include a pound (#) sign before each line of change text.

Is there anything I can do to tell RCS to always use the pound sign for the comment character?

I have other data files that I want to also include the pound sign as a comment as output from $Log. Can I change the default for these also?

Changing the file to remove the .pl or any other .suffix will return to using the pound sign.



Jack...
2 REPLIES 2
Mark Seaman
Advisor
Solution

Re: RCS $Log Output does not use # character for comments for files with .pl extension

You can use the 'rcs -c' command to change the comment leader for a source file. It has deftault for a number of extensions, I guess .pl is not one of them.

Here is a list of known suffixes from the rcs man page:
c c '*'
C C Header '*'
sh shell '#'
s Assembly '#'
p pascal '*'
r ratfor '#'
e efl '#'
l lex '*'
y yacc '*'
yr yacc-rarfor '*'
ye yacc-efl '*'
ml mocklisp ';'
mac macro ';'
f fortran 'c'
ms ms-macros '\'
me me-macros '\'
"" empty suffix '#'
nil unknown suffix '""'
Jack C. Mahaffey
Super Advisor

Re: RCS $Log Output does not use # character for comments for files with .pl extension

I was hoping I could add the suffix or have rcs always default to #.

I got rcs -c"# " to work. It was a little messy however because I needed to go back and delete the previous comments that were not flagged.

jack..


Thanks ...