📄 cvs.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><!-- Copyright (c) 1996-2000 by Cetus Team --><HEAD><META HTTP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML; CHARSET=ISO-8859-1"><META NAME="COPYRIGHT" CONTENT="Copyright (c) 1996-2000 by Cetus Team"><META NAME="AUTHOR" CONTENT="Wolfgang Lugmayr"><META NAME="ROBOTS" CONTENT="INDEX,FOLLOW"><META NAME="REVISIT-AFTER" CONTENT="7 DAYS"><META NAME="DESCRIPTION" CONTENT="Cetus Links: 18,846 Links on Objects and Components / How to use CVS"><META NAME="KEYWORDS" CONTENT="Object, Objects, Component, Components, Orientation, Object-Orientation, Component-Orientation, Object Orientation, Component Orientation,OO, OOP, CBD, Class, Interface, Software, Analysis, Design, Programming, Testing, Maintenance, Deployment, Development, Engineering, Cetus Links, Cetus, Link, Links, Collection, Resource, Archive"><TITLE>Cetus Links: 18,846 Links on Objects and Components / How to use CVS</TITLE><LINK REV="MADE" HREF="mailto:w.lugmayr@kpnqwest.at"></HEAD><BODY BGCOLOR="#FFFFFF" LANG=EN BACKGROUND="side.gif"><A NAME="legal"><IMG SRC="pixel.gif" WIDTH="1" HEIGHT=1></A><TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%"> <TR> <TD ALIGN=LEFT><IMG SRC="pixel.gif" WIDTH=165 HEIGHT=1><BR><IMG SRC="pixel.gif" WIDTH=20 HEIGHT=1> <A TARGET="_top" HREF="software.html"><IMG ALT="Home" SRC="home.gif" BORDER=0 WIDTH=40 HEIGHT=40></A> <IMG SRC="pixel.gif" WIDTH=20 HEIGHT=1> <A TARGET="_top" HREF="#oo_search_menue"><IMG ALT="[Menue]" SRC="go_search.gif" BORDER=0 WIDTH=40 HEIGHT=40></A> <TD ALIGN=CENTER><H3>How to use CVS</H3> <TD ALIGN=RIGHT><IMG ALT="[Logo]" SRC="whale.gif" WIDTH=165 HEIGHT=57> </TR></TABLE><HR NOSHADE SIZE=1><P>This document is a quick tutorial on checking out the latest CetusWWW tree and maintaining changes.<UL> <LI><A HREF="#Unix">Unix Installation</A> <LI><A HREF="#UnixUsage">Unix CVS Usage</A> <LI><A HREF="#Win32">Windows Installation</A> <LI><A HREF="#WinUsage">WinCVS Usage</A></UL><BR><P><H3><A NAME="Unix">Unix Installation</A></H3>For Unix maintenance you should have the following packages installed:<UL> <LI>cvs <LI>ssh or ssh2</UL>First you need to setup a few environmental variables:<BR>You need (sh, bash):<BLOCKQUOTE><PRE>bash$ export CVSROOT=cvsusr@cetus-links.org:/home/objenv.com/cvsrootbash$ export CVS_RSH=ssh2bash$ export EDITOR=vi</PRE></BLOCKQUOTE>You need (csh, tcsh):<BLOCKQUOTE><PRE>tcsh> setenv CVSROOT cvsusr@cetus-links.org:/home/objenv.com/cvsroottcsh> setenv CVS_RSH ssh2tcsh> setenv EDITOR vi</PRE></BLOCKQUOTE>Environment variables:<UL> <LI><TT>CVSROOT</TT> identifies the host/path to the cvs repository. <LI><TT>CVS_RSH</TT> is used by cvs to transfer the data from the repository to the local host. <LI><TT>EDITOR</TT> identifies the editor for comments on the changes (optional). Any editor can be used.</UL><BR><P><H3><A NAME="UnixUsage">Unix CVS Usage</A></H3>This section is just a quick & dirty introduction, but it should be sufficient for most needs. A full tutorial on cvs can be found<A HREF="http://www.loria.fr/cgi-bin/molli/wilma.cgi/doc">here</A>.<P>To check out the whole CVS archive use the following command:<BLOCKQUOTE><PRE>cvs checkout cetus</PRE></BLOCKQUOTE>Now <TT>ssh</TT> connects to the host given in the <TT>CVSROOT</TT>environment variable and you should type in the cetus password. If you donot have the password please request it from <A HREF="mailto:wellner@objenv.com">Rich Wellner</A>. If the login was successful the Cetus pages are downloaded.<P>Now you should have a directory <TT>cetus</TT> in your current directory.You can edit the files as you want and submit it to the archive bycalling the following command in the cetus directory:<BLOCKQUOTE><PRE>cvs commit</PRE></BLOCKQUOTE>Now you can add notes about your changes and the files are uploaded to the cvs archive.<P><I>Please, note that anybody who has access to the archive can change allfiles!<BR> (e.g. a robot which automatically changes the header, etc.)</I><P>Therefore you should call the following command every time in the cetus directory before you update your pages:<BLOCKQUOTE><PRE>cvs update .</PRE></BLOCKQUOTE><P>You can see the changes of a file by calling:<BLOCKQUOTE><PRE>cvs diff oo_java.htmlcvs log oo_java.html</PRE></BLOCKQUOTE><P>The simplest way to restore a file from the archive (e.g. you've made someunwanted changes) is as follows:<BLOCKQUOTE><PRE>rm oo_yourfile.htmlcvs update oo_yourfile.html</PRE></BLOCKQUOTE><BR><P><H3><A NAME="Win32">Windows Installation</A></H3>For Windows maintenance you should have the following packages installed:<UL><LI><A HREF="http://www.wincvs.org/">WinCVS</A><LI><A HREF="http://www.luxnet.at/sw/win32/ssh-1.2.14-win32bin.zip">ssh-1.2.14-win32bin.zip</A></UL>This are Win32 binaries and have been tested on Windows NT 4.0. Unzip the files to a directory in your path (e.g. <TT>C:\tools</TT>).<P>First you need to setup a few environmental variables. Add the following lines to Autoexec.bat (In Windows NT , set them from Environment Tab).<BLOCKQUOTE><PRE>C:\> set HOME=C:\HomeC:\> set CVSROOT=cvsusr@cetus-links.org:/home/objenv.com/cvsrootC:\> set CVS_RSH=C:\tools\ssh.exeC:\> set EDITOR=C:\Progra~1\Accessories\WORDPAD.EXEC:\> set PATH=%PATH%;C:\tools</PRE></BLOCKQUOTE>Environment variables:<UL> <LI><TT>CVSROOT</TT> identifies the host/path to the cvs repository. <LI><TT>CVS_RSH</TT> is used by cvs to transfer the data from the repository to the local host. <LI><TT>EDITOR</TT> identifies the editor for comments on the changes (optional). Any editor can be used. With Notepad you should save and exit.</UL>Assumptions from above lines:<BR><BR>The file "<B>ssh-1.2.14-win32bin.zip</B>" was extracted into "<B>C:\tools\</B>" folder. These files are still required. WinCvs by default does provide with these files required for SSH authentication. Also the "PATH" must include the "<B>C:\tools\</B>"<BR><BR><P><H4>Setting Up WinCvs</H4><UL><P>Start WinCvs <P>Close any dialog boxes that appear <P>From the top menu select "Admin" (Hot Key Alt+A) <P>From the drop down list, select "Preferences" <P>In the <B>First Tab "General"</B> , under CVSROOT enter "<A HREF="mailto:cvsusr@cetus-links.org:/home/objenv.com/cvsroot"><B>Error! Bookmark not defined.</B></A>" <P>Next from the Authentication Drop Down List Box , Select "<B>SSH Server</B>" <B><P>Select</B> the check box "<B>RAS Identity</B>" <P>Now the Editable Drop Down box is enabled, right to "RAS Identity", In this box Enter "<B>C:\tools\ssh.exe</B>" <P>For the "Use Version" drop down box, select "<B>cvs 1.1.0(standard)</B>" <P>Next click on <B>Next Tab "Globals"</B> <P>Select the Check Box which says, <B>Checkout text Files with the Unix LF (0x10)</B> -- This is the one that helps in avoiding the checkout files to become one line of text <P>Next click on <B>"WinCvs" Tab</B>. <P>For default viewer, click on "<B>Change Program</B>" button. Select path to "<B>Wordpad.exe</B>" , This one understands any extra characters that were created in Unix Platform. "Windows Notepad" has some problems and is unable to interpret files correctly. <P>For <B>Home Folder</B> , Click on "Change Folder" and select path to "<B>C:\Tools</B>" <P>Click on Ok Button. <P>WinCVs is all setup and ready to use.<P>You should see this line in the output window if everything went well <P><B>NEW CVSROOT: cvsusr@cetus-links.org:/home/objenv.com/cvsroot (ssh authentication)</B></UL><BR><P><H3><A NAME="WinUsage">WinCVS Usage</A></H3><P><H4>Checking Out Files</H4><UL><P>Make sure none of the dialog boxes are open in the WinCvs application.<P>In the Left side window, you should be seeing all the directories of <B>C:\. </B><I>If this window is not visible, then from the Top Menu, Select "View/Browser" (Hot Key Alt+V). Select WorkSpace from the menu.</I><P>Next Right click on "<B>c:\Tools"</B> Folder and select "<B>CheckOut Module</B>" from the Drop Down Menu.<P>It will show the select directory dialog box. Select the directory you wish to store <B>cetus</B> files. I was working in "<B>C:\Tools</B>" folder. So I keep the default selection and click on Ok Button.<P>Next a Dialog Box titled "<B>Checkout settings</B>" will appear. <P>In the first <B>Tab "Checkout Settings"</B> , in the module name and path on the server text field enter "<B>cetus</B>"<P>No more changes are required. But make sure, the settings you had set previosuly are still the same in the other tabs. Especially the <B>check box </B> in <B>Globals</B> Tab with "<B>Checkout text Files with the Unix LF (0x10)</B>" should be <B>Selected</B>.<P>Click on Ok. <P>Next you will see a Dos Window (Minimized by Default).<P>Open this Dos Window. You will see a line requesting Password.<P>Enter the Cetus CVS password and press Enter. That抯 it all the files will be checked out into "<B>C:\Tools\Cetus</B>" folder. (Or which ever folder was selected as Destination)</UL><P><H4>Updating and Commiting Files</H4><UL><P>Press "F5" key on Keyboard to refresh the contents of the WorkSpace Window.<P>Right Click either on the "<B>Cetus</B>" folder <I>(Not the Tools Folder)</I> or select any files that needs to be either Updated or Commited.<P>From the Drop Down Menu select either "Update Selection" or "Commit Selection"<P>That should do the work.</UL><P><H4>Adding New Files</H4><UL><P>First open the Cetus Folder in <B>WinCvs</B><P>All the files in the folder will be visible. <P>Now the New file will be Listed as "Non CVS" file. <P>Select that file. <P>From the Top Menu select "Modify" (Hot Key ALT+M) <P>From the Drop Down List select "Add Selection"<P>That means the file will be added. Next with right click select "Commit Selection"<I><P>Please Note</I>: All the above steps may not be required for updating the files. Did not explore all options. But it works. No Problems with Images and Text Files. If you find some thing is not required, please be sure to update this document.</UL><HR NOSHADE SIZE=1><A NAME="oo_search_menue"></A><CENTER><A TARGET="_top" HREF="software.html">Home</A> <A TARGET="_top" HREF="mirrors.html">Mirrors/Hosts</A> <BR><FONT SIZE=+1> </FONT><A TARGET="_top" HREF="new.html">What磗 New?</A> <A TARGET="_top" HREF="hitlist.html">Most Wanted</A> <A TARGET="_top" HREF="about.html">About Cetus</A> <A TARGET="_top" HREF="team.html">Cetus Team</A> <BR><FONT SIZE=+1> </FONT><A TARGET="_top" HREF="download.html">Download</A> <A TARGET="_top" HREF="suggest.html">Suggest</A> <A TARGET="_top" HREF="moved_broken.html">Moved/Broken</A> <A TARGET="_top" HREF="survey.html">Feedback</A> <A TARGET="_top" HREF="minder.html">URL-Minder</A> <A TARGET="_top" HREF="pointers.html">Link to Cetus</A></CENTER><HR NOSHADE SIZE=1><ADDRESS> Copyright © 1996-2000 by <A TARGET="_top" HREF="mailto:w.lugmayr@kpnqwest.at">Cetus Team</A> <BR> Page maintained by <A TARGET="_top" HREF="mailto:w.lugmayr@kpnqwest.at">Wolfgang Lugmayr</A> <BR> Last revision: $Date: 2000/08/17 15:35:15 $ <BR> Site visits: <IMG ALT="[Site visits]" SRC="http://sleepytrees.com/cgi-bin/Count.cgi?df=cetus.dat&dd=C&negate=T&ft=0&comma=T" HEIGHT=15 ALIGN=absbottom BORDER=0> since May 1996</ADDRESS><HR NOSHADE SIZE=1></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -