乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      竹筍炒肉: OSW:12.CVS設置與應用

       jllu_7 2005-09-30
      ------安裝-------
      1)從 www.cvshome.org 下載 cvs-1.11.2.tar.gz
      2)上傳至unix
      3)gunzip -c cvs-1.11.2.tar.gz|tar xvf -
      4)cd cvs-1.11.2
      4.5)./configure //可能要運行
      5)make
      6)make check
      可能出現(xiàn)錯誤信息,但編譯正常
      7)su
      8)make install
      9)vi /etc/services,增加二行
      cvspserver 2401/tcp # cvs client/server operations
      cvspserver 2401/udp # cvs client/server operations
      vi /etc/inetd.conf,增加一行
      cvspserver stream tcp nowait root /usr/local/bin/cvs -f --allow-root=/export/home0/cvsroot pserver
      10)vi /etc/profile,增加一行
      CVSROOT=/export/home0/cvsroot;export CVSROOT
      vi /.profile,增加一行
      CVSROOT=/export/home0/cvsroot;export CVSROOT
      11)/usr/sbin/groupadd cvs
      12)/usr/sbin/useradd -g cvs -d /export/home0/cvsroot -m cvsroot
      passwd cvsroot
      /usr/sbin/useradd cvspub
      /usr/sbin/usermod -G cvs cvspub
      13)chmod 755 /export/home0/cvsroot
      14)ps -aef|grep inetd
      kill inetd
      /usr/sbin/inetd -s
      15)su - cvsroot
      16)cvs -d /export/home0/cvsroot init
      17)cvs -d :pserver:cvsroot@localhost:/export/home0/cvsroot login
      [input the password of cvsroot]

      -------管理-------
      1)su - cvsroot
      2)cd $CVSROOT/*T
      3)/usr/local/apache/bin/htpasswd -b passwd ali alipwd
      /usr/local/apache/bin/htpasswd -b passwd hehe hehepwd
      4)vi passwd 在每行后面加
      :cvspub
      5)vi writers
      ali
      6)vi readers
      hehe

      ----------------使用-----------------------


      1、初始,將所有文件上傳至cvs
      cd qacodes
      cvs import -m "qa:codes2 .h " qacodes yoyo start   
      下行作參考
      cvs import -m "this is a cvstest project" cvstest v_0_0_1 start

      2、在當前工作目錄下,將修改訴文件上傳
      cd qacodes
      cvs commit -m "Made some useful changes on some files"

      3、增加新的文件
      cd qacodes
      cvs add new.c new.h
      cvs commit -m "add 2 files:new.c new.h" new.c new.h


      4、刪除文件
      cd qacodes
      rm new.h
      cvs remove new.h
      cvs commit -m "delete new.h" new.h

      5、定版本
      cvs tag v0_0_1
      取指定版本
      cvs checkout -r v0_0_1 qacodes
      6、更新工作目錄中的文件
      cvs update

      --------------------------wincvs配置及使用------------------------
      1)菜單
       admin->preference->general
      "Enter the CVSROOT"
      :pserver:ali@168.160.1.106:/export/home0/cvsroot
      "Authentication"
      "passwd" file on the cvs server
      2)菜單
       admin->login
      3)上傳

      左上modules中選定存放原文件的目錄。
      菜單
       create->import module
      4)checkout
      菜單
       create->checkout module
      5)菜單
       admin->logout


      使用cvs
      1)cvs checkout workdir //檢出并生成一個工作目錄,
      U ...
      .....

      cd workdir
      ls -l
      2)cvs update //當工作目錄中的文件被修改,并要做檢入保存
        U......某一文件被他人修改了,但你未修改
        Merging...
      M file 你與別人改了同一個文件file,但沒有行沖突,故cvs將兩者合并
      cvs update //再次確認沒有別的人改了這個文件
      M file 確實只有你修改了這個文件
      cvs commit file //只提交這個文件就可
      3)cvs log file //查看file的修改歷史
      4)cvs diff -c -r 1.6 -r 1.7 file //比較file的1.6與1.7版的具體差異 
      此時的輸出中,舊本從****開始,新的從----開始,數(shù)字是行號
      如果***一行與----一行緊挨在一起,且一些行前有+,則是新對增加了幾行。
      5)ls newfile //增加一個新的文件
      cvs update
      newfile
      cvs add newfile
      cvs update
      A newfile
      cvs commit newfile
      6)rm afile
      cvs rm afile
      cvs commit
      7)cvs update
      ...
      C afile//沖突
      看文件沖突

      8)cvs tag v_0_0_1 先標記一個版本:

      然后你可以發(fā)布并刪除你自己的工作目錄里這個版本的文件(注意:不是刪除倉庫里的.):

      $cvs release -d nasdaq

      然后你再生成一個新分支:

      $cvs rtag -b -r v_0_0_1 v_0_0_1_1 nasdaq

      然后再建立v_0_0_1_1的分支

      $cvs checkout -r v_0_0_1_1 nasdaq

      編輯并修改這個分支的文件,這樣的做法比較好

      ------------------------------------------------------
      需要說明的是,如果在linux用xinetd啟動服務的話,前面的設置會有些不同。
      即需要在/etc/xinetd.d/目錄下增加一名為cvspserver的文件,內容如下:
      service cvspserver
      {
      socket_type = stream
      protocol = tcp
      wait = no
      user =root
      passenv =
      server = /usr/local/bin/cvs
      server_args = --allow-root=/usr/cvsroot pserver -f
      disable = no
      }


        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多