[kepler-dev] [Ptolemy] Ptolemy CVS Repository moving

Christopher Brooks cxh at eecs.berkeley.edu
Tue Jul 26 14:53:13 PDT 2005

For Eclipse, try using extssh, not ext

I think ext is ssh v1.  source.eecs does not do ssh v1 because ssh v1
is less secure than v2.  The eclipse instructions in
doc/coding/eclipse.htm say to use extssh.

The confusing thing is that I think "extssh" is an Eclipse extension
that means use an external version of ssh.  "extssh" will not work
with the regular cygwin version of cvs though.
In Eclipse, "ext" means use the internal Eclipse ssh v1

For Eclipse, you could adapt the script I sent around to do the
following substitution:

   sed 's/ext:/extssh:/g'  \$file > ptcvsfix.tmp

I'm not sure if running cvs update from within Cygwin on an eclipse
tree will work very well.

There could be other problems with your account in source.eecs.
Try running 
    ssh source.eecs.berkeley.edu cvs -v

I get:
cxh at maury 48% ssh source.eecs.berkeley.edu cvs -v

Concurrent Versions System (CVS) 1.11.20 (client/server)

Copyright (C) 2005 Free Software Foundation, Inc.

Senior active maintainers include Larry Jones, Derek R. Price,
and Mark D. Baushke.  Please see the AUTHORS and README files from the CVS
distribution kit for a complete list of contributors and copyrights.

CVS may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the CVS distribution kit.

Specify the --help option for further information about CVS

Let me know how it goes.



    I followed the instruction and changed the CVSROOT value by running the 
    script under Cygwin. After a "refresh" of the project in Eclipse, 
    ":ext:source.eecs.berkeley.edu:/home/cvs" is added to the list of CVS 
    When I tried to synchronize the tree in Eclipse, I got the following error 
    Problems reported while synchronizing CVS Workspace. 0 of 1 resources were 
      An error occurred synchronizing /PtolemyII: Unknown response received fro
    cvs server:
        Unknown response received from cvs server:
    I then switched to Cygwin to do cvs update. I got another error message.
    hyzheng at DOPLAP10 /cygdrive/c/hyzheng/ptII/adm
    $ cvs update
    rksh: cvs:  not found
    cvs [update aborted]: end of file from server (consult above messages if 
    ----- Original Message ----- 
    From: "Christopher Brooks" <cxh at eecs.berkeley.edu>
    To: <ptresearch at maury.eecs.berkeley.edu>; <Kepler-dev at ecoinformatics.org>
    Sent: Monday, July 25, 2005 5:30 PM
    Subject: [Ptolemy] Ptolemy CVS Repository moving
    > I'm moving the ptII cvs repository to a new machine.
    > I'll start the move at 5:30 PDT.
    > If you have read/write access, the new CVSROOT value is
    >  :ext:source.eecs.berkeley.edu:/home/cvs
    > If you have read only access, then I've set up a new
    > cvs read only account called "anon" that does not require a password.
    > I think the old ptdevel password will continue to work, I'll check
    > after the move.
    > The canonical instructions for read only access is:
    >  cd c:/directoryofyourchoice
    >  cvs -d :pserver:anon at source.eecs.berkeley.edu:/home/cvs/cvsanon login
    >  # No password needed, hit enter
    >  cvs -d :pserver:anon at source.eecs.berkeley.edu:/home/cvs/cvsanon co ptII
    > There is no need to check out a new tree, you can update the value
    > of the CVS/Root files with the little script below.
    > --start--
    > #!/bin/sh
    > echo "Running find, this could take a minute"
    > cvsRootFiles=/tmp/ptcvsfix.$$
    > /usr/bin/find . -xdev -name Root -print > $cvsRootFiles
    > # Create a script
    > cvsRootScript=/tmp/ptcvsfix$$.sh
    > cat <<EOF > $cvsRootScript
    > #!/bin/sh
    > for file in \$@
    > do
    > echo \$file
    > sed 's/gigasource/source/g' \$file > ptcvsfix.tmp
    > mv ptcvsfix.tmp \$file
    > done
    > EOF
    > chmod a+x $cvsRootScript
    > cat $cvsRootFiles | xargs $cvsRootScript
    > rm -f $cvsRootFiles $cvsRootScript
    > --end--
    > 1. Place the above in a file, for example ptfixcvs
    > 2. Run:
    >     chmod a+x ptfixcvs
    > 3. Run:
    >     ./ptfixcvs
    > _Christopher
    > _______________________________________________
    > Ptolemy maillist  -  Ptolemy at chess.eecs.berkeley.edu
    > http://chess.eecs.berkeley.edu/ptolemy/listinfo/ptolemy

More information about the Kepler-dev mailing list