Im trying to find a tool that will help me edit the cvsroot/passwd file.
(there are multiple cvsroots / passwd files  involved)

I'm in the middle of writing a perl script, but i don't like the way it works.  
It basically does the following:

1. copy passwd to passwd.tmp
2. read passwd.tmp. 
   2a.  (for each line) if the user on the current line is Not the user im 
trying to edit, then print the current line to passwd.
           If it is the user im editing, then print a variable containing the 
new value to passwd instead of what was in passwd.tmp
   2b. If the user was not in passwd.tmp, add an entry for the new user to the 
end of passwd
3. delete passwd.tmp

this will work, but i just think it's sloppy, and would rather use a tool that 
is already been developed.
_______________________________________________
info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs

Reply via email to