RCS Issue


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers RCS Issue
# 1  
Old 09-19-2011
RCS Issue

Hi there, I am trying to utalise RCS on unix. I am including the following tags in my source code for RCS to populate based on rlog.

#$Author:$
#$Log:$

Everything i have read on the "co" man page of RCS indicates that the lines from the Log will be populated in the source file using the same char that comes before the "$Log:$" tag. However the problem i have is that the Log lines do not get started with the # and as such unix shell tries to execute these.

Code:
#!/bin/ksh

#######################################
# A simple test script                #
#                                     #
# Apps:                               #
# DBs:                                #
#                                     #
# $Author: usimbea $
#                                     #
#$Log:  chris_rcs_test.ksh,v $
Revision 1.10  2011/09/19  10:04:42  10:04:42  usimbea (USIM user)
*** empty log message ***
                                     #
#                                     #
#                                     #
#######################################



Can anyone tell me why the log lines are notbeing populated with # at the start of the line.

---------- Post updated at 03:40 PM ---------- Previous update was at 10:16 AM ----------

After some digging I have found that RCS sets the comment leader based on the file extention of the file being checked in.

The full table can be see in the man page of RCS.

In my case I am using ".ksh" file extention which RCS does not have in its table so didnt generate a comment leader.

This can be addressed by setting a comment leader after checking the file in

rcs -c"# " file.ksh


This will set the comment leader to the string value in the -c.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

suppress RCS messages

ci filename This command displays a message. I don't want it to. How can I keep RCS from doing so? (5 Replies)
Discussion started by: robin_simple
5 Replies

2. Linux

Migrating RCS from HP-UX to Linux

Hello all, We would be migrating from HP-UX 11 to Red Hat Linux 5 shortly. On HP-UX we've been using RCS (Revision Control system). On RHEL I think there is an equivilant utility called Subversion..Is there a way to export the current contents from RCS in HP-UX and import it into Linux's... (2 Replies)
Discussion started by: luft
2 Replies

3. Shell Programming and Scripting

RCS archive in /etc

Well it is not a bad idea. I have worked for one place that did that. It wasn't my idea but I did not object. The reason it is done is to put critical files like nsswitch.conf, hosts, and so on under RCS control. Previous versions are then available to see how stuff changed over the years. ... (0 Replies)
Discussion started by: Perderabo
0 Replies

4. Shell Programming and Scripting

creating an RCS archive in /etc

Hi Why is creating an RCS archive in /etc a "good thing"? Hi Why is creating an RCS archive in /etc a "good thing"? (2 Replies)
Discussion started by: scofiled83
2 Replies

5. UNIX for Dummies Questions & Answers

Rcs

does anyone know if RCS is part of UNIX? Does a copy come with all UNIX systesm? Is it a seperate program? Is it purchased? Or is RSC a freeware program downloaded for everyone to use? (3 Replies)
Discussion started by: rtoba
3 Replies

6. UNIX for Advanced & Expert Users

rcs,sccs

I am not really sure whether i am posting this question in the right forum.....Can someone tell me why I should go for a rational Clearcase version controller when I can use the version controllers 'rcs' or 'sccs' available in UNIX. I want to know the advantage of Rational over these two. Also, I... (2 Replies)
Discussion started by: Abhishek Ghose
2 Replies

7. UNIX for Dummies Questions & Answers

RCS Question

I am a new user. Can anyone tell me where I can get documentation on the RCS feature? Thanks (1 Reply)
Discussion started by: Terry
1 Replies

8. UNIX for Dummies Questions & Answers

RCS, what is it? how do i install it...

One of our DBAs is requesting RCS be installed on one of our boxes...what is it? Where do I get it from? Thanks. (2 Replies)
Discussion started by: debaire
2 Replies
Login or Register to Ask a Question