Modify a pre-existing program: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:
NOTE:  This section on modifications is incomplete.
NOTE:  This section on modifications is incomplete.


Here are some CVS commands you might find handy.
<pre>
> cvs update -d <directory>                # Bring a new directory into your sandbox.
> cvs log <file>                          # List log messages for a file.
                                 
> cvs add -m "add directory" <directory>  # Create a new directory.
> cvs add -m "add file" <file>            # Create a new file.
> cvs commit -m "commit file" <file>
> cvs delete <file>                        # To delete first remove the file from your sandbox.
> cvs commit -m "gone" <file>
> cvs export -D NOW <directory>            # Snapshot without administative directories.
> tar cvf <project>.tar <directory>        # Make a tar ball.
> gzip <project>.tar                      # Compress it into: <project>.tar.gz
> cvs checkout -D yesterday <directory>    # Get previous versions of a directory.
> cvs checkout -D "<#> hour ago"
> cvs checkout -D "<month>/<day>/<year>"
</pre>


== Install a program or library. ==
== Install a program or library. ==

Latest revision as of 13:52, 27 August 2009

Modify a program or library.

NOTE: This section on modifications is incomplete.


Install a program or library.

Programs and libraries can be installed to your sandbox or the shared public $G installation directories. The installation directory is named install_$GARCH; where $GARCH is the platform name (e.g. install_linux or install_WIN32). By default the installation directory is at the top of your sandbox; which can be your home directory or in the $G user area.

Advanced users can designate any installation location by setting the $GTO variable. This variable should be used with caution and you should fully understand its usage before setting it. When it is not set the make files will prevent you from building or installing programs into any sub-directory of the public $G area. This helps protects public areas from accidental corruption.

To set up an installation directory in your sandbox first you need to create the directory. If you do not want to use either of the default locations you will also need to set the GTO variable to the parent directory.

> mkdir   -p   $GROOT/users/$USER/my_sandbox/install_$GARCH/
> setenv  GTO  $GROOT/users/$USER/my_sandbox

When you run make install software will be copied to the $GTO/install_$GARCH/ directory. Then you can install and test software in your sandbox without interfering with the public $G installations.

After you are confident the software works you can install it in the public area by setting GTO to G. Always unset this when you are done to avoid unintentionally corrupting the public installations.

> setenv  GTO  $G         # Allow installs into $G.
> make install            # Copy files to:  $G/install_$GARCH
> unsetenv  GTO           # GTO considered harmful.