Editing
Getting login access
Anybody within the LSC or Virgo that wants to edit the LIGO Virgo Joint Working Group web pages is welcome to do so. Please follow these directions.- If you want access to the LIGO-Virgo CVS repository, please e-mail your
desired username and an encrypted password string to the UWM-LSC system
administrators
DO NOT USE A PASSWORD FROM SOME OTHER ACCOUNT!!! the cvs pserver sends passwords in the clear and can be intercepted by packet-sniffers.
Here is a program encrypt.c to encrypt a password:
#define _XOPEN_SOURCE #include <stdio.h> #include <unistd.h> int main( int argc, char *argv[] ) { if ( argc != 3 ) return fprintf( stderr, "Usage: %s passwd salt\n", *argv ), 1; return puts( crypt( argv[1], argv[2] ) ); }compile it with (on GNU/Linux):gcc -o encrypt encrypt.c -lcrypt
An example:./encrypt '$hello$' xx
results inxxhjsFIMF7SA2
which is the encryptd version of the password $hello$ with salt (a two-letter string) xx. Here is an encrypt executable that should work on ix86.
- Set your CVSROOT environment variable:
export CVSROOT=:pserver:login@gravity.phys.uwm.edu:/usr/local/cvs/ligovirgo
where login is your CVS account obtained in step one.
- Login to the CVS archive:
$ cvs login Logging in to :pserver:login@gravity.phys.uwm.edu:/usr/local/cvs/ligovirgo CVS password:
- Checkout the module:
$ cvs co web
- Edit and then commit your changes. Your edits will be "live" as soon as they are committed (you may need to refresh your browser).
Making changes and committing them to the CVS archive
Once you've made your changes and checked that everything builds ok, you want to commit the modified file to the CVS repository. To do this, commit the modified file to the CVS repository:
cvs commit myfile.mYou will be asked to provide a comment for the change log. This does not need to be detailed, but should give some indication of the work you were doing.
Updating your copy with changes made by another developer
To update your entire directory simply type:cvs update -Adfrom the web directory. This will download and merge changes into the files from the repository. If you have been working on a local copy and your changes conflict with those made by the other person, you will receive a warning and will need to manually edit the file to remove the conflicts. It is usually good practice to update your local copy of the archive before working on the files; this avoids conflicts. It is also good practice to commit changes reasonably often.
Adding a new file
To add a file to the archive, first place it in the appropriate directory. For convenience, let the filename be myfile.m. Type:cvs add myfile.m cvs commit myfile.m
Adding postscript or pdf figures to the archive
To add a postscript or pdf figure to the archive, first place it in the appropriate directory. Suppose the filename is figure.ps. Type:cvs add -kb figure.ps cvs commit figure.psThe -kb flags are very important. They prevent certain substitutions from being done by CVS. If you commit postscript or PDF without these options, let the project maintainer know and we'll get it fixed.
$Id: editing.html,v 1.3 2005/08/09 00:10:16 sfairhur Exp $