Content-type: text/html Manpage of newrel

newrel

Section: User Commands (1)
Updated: April 27, 1999
Index Return to Main Contents

 

NAME

newrel - Create a release within SoftRelTools

 

SYNOPSIS

newrel [-?, --help] [-p, -r, --frozen] [-d, --development] [-t, --test] [-e, --empty] [--boot] [-g <path>] [-f <file>]

 

DESCRIPTION

newrel creates a new release within the software tree. Two flavors are supported, called test and production. The production release can be either frozen or development.

A test release is created within a user's file tree for development and debugging purposes. No packages are initially included within it - the user is expected to use addpkg to include the particular subset of all packages that are needed for development.

A production release is created in $SRT_DIST/releases, and is how code is "published" for use by the collaboration. If the -f option is specified, newrel reads a list of packages and versions from file pfile, and uses the same version as in the base release for each package that isn't listed in pfile. If the -f option is not specified, newrel goes through the list of packages in the base release, and prompts for which version of each to use in the new release.

 

System preferences for newrel

newrel sources the file $SRT_DIST/srt/srtrc for directory creation preferences. If the variable ``extra_dirs'' is defined, it is merged with the list of directories to be created. It should be in the form of a space-separated list of directory names. extra_dirs has two purposes:

1. Extra directories can be created.

2. Directories can be made into links to other
   areas. The syntax for this is ``foo>/tmp/bar'',
   which means that the directory foo will be made
   into a link to /tmp/bar. If /tmp/bar does not
   exist, newrel will (attempt to) create it.

As in other places, srtrc is really a script which is sourced, so shell logic can be used. All that matters is the final value of extra_dirs. If ``extra_dirs'' is not defined, newrel looks for ``stddirs'' for backward compatibility with the old SoftRelTools.

The variable ``release'' (the name of the new release) is guaranteed to be available when srtrc is sourced.

 

User preferences for newrel

newrel also sources the file $HOME/.srtrc (note the leading dot) for directory creation preferences. See above for details. The following example .srtrc file is useful:

extra_dirs="$extra_dirs tmp>/tmp/$release/tmp bin>/tmp/$release/bin lib>/tmp/$release/lib "

It redirects all the directories containing large binary files to /tmp in such a way as not to interfere with other releases. Adding to the previous value of $extra_dirs makes certain that system-level defaults are also respected.

 

OPTIONS

-?, --help


 Prints the usage message

-p, -r, --frozen


 Create a frozen (production) release

-d, --development


 Create a development release

-t, --test


 Create a test release

-e, --empty


 Create an empty release, i.e., do not use a base
 release. This option requires ommitting the
 <base release> argument.

 

--boot


  Create a boot release. All other options except
 -g will be ignored.

-g <path>


 Path to GNUmakefile.boot for boot release.

-f <file>


 Use the version file specified by <file>,
 which should have format:


 pkgA    V01-02-03
 pkgB    V01-03-02
 pkgC    delete
 ...     ...
This may contain completely new packages (not found in the base release), and/or packages that were in the base release. If the version specified is "delete", then that package will not be included in the new release. Each package in the base release but not in <file> will use the same version in the new release as in the base release.

 

EXAMPLES

To add a create a test release foobar based on the development release and include the package Hello:

example% newrel --test development foobar
example% cd foobar
example% addpkg --head Hello

 

FILES

$SRT_DIST/srt/srtrc, $HOME/.srtrc

 

AUTHOR

Bob Jacobsen. (Bob_Jacobsen@lbl.gov) Updated for SoftRelTools version 2 by James Amundson. (amundson@fnal.gov)

 

ORIGIN

SoftRelTools version 2


 

Index

NAME
SYNOPSIS
DESCRIPTION
System preferences for newrel
User preferences for newrel
OPTIONS
EXAMPLES
FILES
AUTHOR
ORIGIN

This document was created by man2html, using the manual pages.
Time: 01:07:57 GMT, January 04, 2001