#! /bin/sh # # $TOOLS/lib # # Defines environment variable containing the directory whose RCS library will # be accessed, and the corresponding production directory. # # $L = Directory specification whose RCS library will be accessed. # # Creates RCSLIBR environment variable containing the directory specification # for a given program whose RCS library will be accessed. # # (The calling script must execute this in the context of the parent's shell, # so the environment variable that is defined is accessible by the parent) # # Restrictions: # # 1) To create or access an RCS library, the user must be in the rcssys # group, and the library's parent directory must have R/W access for # the rcssys group. # # Date Programmer Description # 01/25/96 Brian Lomasky Original # RCSLIBR="" if [ $# -eq 0 ]; then echo "lib: Error - No parameter specified" echo "" echo "Use lib to set the directory whose RCS library will be accessed." echo "" echo "Usage: L=" echo " . lib" echo "" echo "Example: L=SOURCE" echo " . lib" echo "" else if [ "$L" = "" ] then echo "Error - Invalid RCS library directory specified\007" else # Define directory which contains the RCS library being accessed RCSLIBR=`eval echo \\$$L` export RCSLIBR fi fi