Results 1 to 5 of 5

Thread: Setting up CVS

  1. #1
    Join Date
    Apr 2005
    Beans
    269

    Post Setting up CVS

    Hi,

    I've installed CVS.

    I want to use it to keep track of different versions of websites I hope to develop.

    I want everything in my home directory for easy backup.

    I have setup apache to use ~/www as my document root.

    I created a repo at ~/cvsrepo in my home directory. I checked it. Its there and it has a CVSROOT directory in it.

    when I type CVSROOT=~/cvsrepo then export CVSROOT and echo CVSROOT I get CVSROOT as a reply instead of ~/cvsrepo

    I tried it with sudo thinking perhaps it was a permissions thing but it said command not found (I replaced ~ with /home/brickbat/

  2. #2
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Setting up CVS

    Try
    Code:
    echo $CVSROOT
    You need to prepend the environement variable with a $.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  3. #3
    Join Date
    Apr 2005
    Beans
    269

    Re: Setting up CVS

    Ah-ha! Thankyou. I didn't know that. So why don't you need the $ with the "export CVSROOT"?

    Works like a charm now

    I have just imported my first project...A blank index.html and a directory!

  4. #4
    Join Date
    Jan 2006
    Beans
    22

    Re: Setting up CVS

    The '$' before a variable produces an expansion of the environment variable, is you write
    Code:
    Var="helow"
    export $Var
    it's like you write
    Code:
    export "helow"
    which makes no sense to bash as it expects a variable name after export.

    Cheers

  5. #5
    Join Date
    Apr 2005
    Beans
    269

    Re: Setting up CVS

    I see. Thank you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •