Source
#-----------------------------------------------------------------------------
# doover: Generate a function which returns CASA version information
#-----------------------------------------------------------------------------
#
# Copyright (C) 1996
# Associated Universities, Inc. Washington DC, USA.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Correspondence concerning CASA should be addressed as follows:
# Internet email: aips2-request@nrao.edu.
# Postal address: CASA Project Office
# National Radio Astronomy Observatory
# 520 Edgemont Road
# Charlottesville, VA 22903-2475 USA
#
#-----------------------------------------------------------------------------
# Usage: doover
#-----------------------------------------------------------------------------
# doover generates C++ code which records version information found in
# $AIPSCODE/VERSION. It is intended to be used only by the CASA makefiles.
#
# Options:
# none
#
# Status returns:
# 0: success
# 1: initialization error
# 2: VERSION file not found
#
# Original: 1996/02/29 by Mark Calabretta, ATNF
# $Id$
#=============================================================================
# Fundamentals.
if [ "$CASAPATH" = "" ]
then
echo "doover: CASAPATH is not defined, abort!" 1>&2
exit 1
fi
AIPSROOT=`echo $CASAPATH | awk '{ print $1 }'`
# Define CASA directory names.
AIPSCODE=$AIPSROOT/code
# Check number of arguments.
if [ "$#" != 0 ]
then
exec 1>&2
echo "Usage: doover (no options)"