CVS Tagging Script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting CVS Tagging Script
# 1  
Old 01-05-2006
Lightbulb CVS Tagging Script

Hi All,

We have to tag all source code files to prepare a release kit. We have one CVS Project under which all files have to be tagged.

We use the following cvs command to tag a specific version of a file:

'cvs rtag -r X.XX -F "newbuild" somefile'

This command asks for the CVS Login password everytime executed.

What I plan to is to minimize the manual tagging of files with the newbuild and just have a list of fil_name, version changed since the last build.

file_list.csv
-----------------
file_name,version
-----------------

If we have the information in the following format, can write a shell script to tag all files against the version specified with the newbuild name.

Note: The cvs commands asks for a password everytime it is executed. Can I pass the password just once?


Thanks,
Rahul.
# 2  
Old 01-05-2006
Question Expect

I've found out that the expect utility can pass input to such commands through stored files.

Where can i get expect for Sun Solaris 5.8?

Thanks,
Rahul.
# 3  
Old 01-05-2006
Right here
# 4  
Old 01-05-2006
Hi Rahul,
Try this
for i in * # or whatever list of filenames
do
cvs your_cvs_processing << EOF
userid
password
EOF
done
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Discussion (Thread) Tagging Upgrades

Dear All, I have made significant progress coding new discussion thread tagging features. As always, we want all users to tag thread and moderators to tag threads with relevant keywords. Moving forward, in addition to the #1 important "human tagging", we will also auto tag threads with one... (4 Replies)
Discussion started by: Neo
4 Replies

2. UNIX for Beginners Questions & Answers

BASH SCRIPT - Insert date into cells in cvs file

Hi, I'm looking to accomplish the following. Insert current date into three places/cells within a cvs, every time the bash script is executed. The cells are column A,B,C row 2. Row 1 is reserved for the headers. The file name is always orders.csv. These three cells we always have an old... (1 Reply)
Discussion started by: Rookievmc
1 Replies

3. Solaris

Solaris 9 VLAN tagging with ce interface

Hi, Is it possible to VLAN tag with a ce interface on Solaris 9? Link speed is gb. ce:0:ce0:link_speed 1000 I have a ce0 interface I would need to have access to another VLAN as well as the one it's currently on. What commands would I need to run? Thanks.;) (2 Replies)
Discussion started by: sparcman
2 Replies

4. UNIX for Dummies Questions & Answers

How to retrive data from DB(Aqua studio) in CVS format using UNIX script?

I am using aqua studio DB. I need to retrive the data from my database using uxin script in .csv format. i am using select query along with the joins. my o/p in the DB is of the below format. Cycle IDCycle StatusRecord 98N-0000ACV23-3636FCliet Level (Af)Success1689393HF-J7879-09090RCliet Level... (1 Reply)
Discussion started by: Mugivz
1 Replies

5. Shell Programming and Scripting

Automate CVS login using shell script

Hi, Can anyone pls help me to automate login to cvs. I basically want to login to cvs and update a file. the script always gets to the login and returns the prompt for a password. Is there any way to send the password in the script itself. Here is the script: #!/bin/ksh... (0 Replies)
Discussion started by: raghu_shekar
0 Replies

6. Shell Programming and Scripting

script grabbing cvs file .....

how do I write a script to checkout a file in cvs and cat the file into a file in my home directory Commands are cd /home/smr/sandbox cvsroot choose option 1 cvs co filename cat filename > /home/smr/newfilename Thank you! (4 Replies)
Discussion started by: llsmr777
4 Replies

7. Shell Programming and Scripting

ID3 tagging script

I'm trying to get a little script working with DropScript 0.5 that edits the ID3 tags of an MP3. Here's what I've got: #!/bin/sh # Strip directory part but leave extension. in_base=`basename "$@"` # Strip extension. in_noext=`echo "$in_base" | sed 's/\.*$//'` /opt/local/bin/id3v2... (4 Replies)
Discussion started by: SimonDorfman
4 Replies
Login or Register to Ask a Question