=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/anoncvs.html,v retrieving revision 1.162 retrieving revision 1.163 diff -c -r1.162 -r1.163 *** www/anoncvs.html 2002/01/29 22:08:36 1.162 --- www/anoncvs.html 2002/02/02 05:10:32 1.163 *************** *** 509,514 **** --- 509,521 ----

Example usages for cvs(1)

+

+ NOTICE: If want to update a branch (such as a patch branch) + to current, you would add the the -A + flag to cvs, but this flag is of little use otherwise. Some older + versions of the OpenBSD documentation recommended use of this flag + in many examples. We no longer recommend this flag unless absolutely necessary. +

A sample use of an anoncvs server would be:

***************
*** 549,555 ****
  
  	# setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
  	# cd /usr
! 	# cvs -q get -PA src
  

(If you are following the patch branch for 2.9): --- 556,562 ----

  	# setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
  	# cd /usr
! 	# cvs -q get -P src
  

(If you are following the patch branch for 2.9): *************** *** 564,570 ****

(If you are following current):

  	# cd /usr/src
! 	# cvs -q up -PAd
  

(If you are following the patch branch for 2.9): --- 571,577 ----

(If you are following current):

  	# cd /usr/src
! 	# cvs -q up -Pd
  

(If you are following the patch branch for 2.9): *************** *** 581,604 **** encounter which are not in the repository.

!

  • NOTES: if you are updating a source tree that you initially fetched from a different server, or from a CD, you must ! add the -d $CVSROOT options to cvs. If you are following ! a patch branch, be sure to always omit the -A ! flag to cvs, or you may find yourself tracking current instead. ! !

    (If you are following current):

      	# cd /usr/src
    - 	# cvs -d $CVSROOT -q up -PAd
    - 
    - -

    (If you are following a patch branch): -

    - 	# cd /usr/src
      	# cvs -d $CVSROOT -q up -Pd
      
    -
  • --- 588,601 ---- encounter which are not in the repository.

    !

  • NOTE: ! If you are updating a source tree that you initially fetched from a different server, or from a CD, you must ! add the -d $CVSROOT options to cvs.
      	# cd /usr/src
      	# cvs -d $CVSROOT -q up -Pd
      
  • *************** *** 609,615 ****
      	# setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
      	# cd /usr
    ! 	# cvs -q get -PA ports
      

    (If you are following the patch branch for 2.9): --- 606,612 ----

      	# setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
      	# cd /usr
    ! 	# cvs -q get -P ports
      

    (If you are following the patch branch for 2.9): *************** *** 622,628 ****

    (If you are following current):

      	# cd /usr
    ! 	# cvs -q up -PAd ports
      

    (If you are following the patch branch for 2.9):

    --- 619,625 ----
      

    (If you are following current):

      	# cd /usr
    ! 	# cvs -q up -Pd ports
      

    (If you are following the patch branch for 2.9):

    ***************
    *** 653,680 ****
      

    X11 Source tree

    ! Anoncvs mirrors also carry the OpenBSD X11 source tree. You can adapt ! the recipe above to update your X11 source tree from the second CD. ! Either copy or use a union mount to get the X11 sources in /usr/X11:

      !
    • copy the tree off it (assuming the 2nd CD is mounted on /mnt):
      !         # cd /mnt; cp -Rp X11 /usr
        
    • use a union mount with the CD below a writable directory.
      !         # mount -t union -o -b /mnt/X11 /usr/X11
        
    ! After this, /usr/X11 will be ready to be used by cvs. You can for example update it to -current source (assuming you've already set the CVSROOT environment variable):
    !         # cd /usr/X11
    !         # cvs -q update -PAd
      

    --- 650,679 ----

    X11 Source tree

    ! Anoncvs mirrors also carry the OpenBSD X11 (XFree86) source tree. You can adapt ! the recipe above to update your XFree86 source tree from the second CD. ! You can copy or download the XFree86 3 source tree with the X11 cvs module, ! although the current module containing XFree86 4 is XF4. ! There are two ways to get the XF4 sources to /usr/XF4:

      !
    • copy the tree off the CD (assuming the 2nd CD is mounted on /mnt):
      !         # cd /mnt; cp -Rp XF4 /usr
        
    • use a union mount with the CD below a writable directory.
      !         # mount -t union -o -b /mnt/XF4 /usr/XF4
        
    ! After this, /usr/XF4 will be ready to be used by cvs. You can for example update it to -current source (assuming you've already set the CVSROOT environment variable):
    !         # cd /usr/XF4
    !         # cvs -q update -Pd
      

    *************** *** 786,792 **** OpenBSD www@openbsd.org !
    $OpenBSD: anoncvs.html,v 1.162 2002/01/29 22:08:36 horacio Exp $ --- 785,791 ---- OpenBSD www@openbsd.org !
    $OpenBSD: anoncvs.html,v 1.163 2002/02/02 05:10:32 chris Exp $