Source
#!/usr/bin/perl
use :: ;
if ( exists $ENV{CASA_INSTALLATION_TYPE} && $ENV{CASA_INSTALLATION_TYPE} eq "rpm-installation" && exists $ENV{CASAPATH} ) {
my @path = split(/\ +/,$ENV{CASAPATH});
$prefix=$path[0];
} else {
$prefix="@PREFIX@";
$include="@INCLUDE@";
}
$lddpath="@LDDPATH@";
$lddpreload="@LDDPRELOAD@";
$libversion="@LIBVERSION@";
$version="@CASA_API_VERSION@";
$revision="@SVNREVISION@";
$srcurl="@CASASRCURL@";
$arch="@arch@";
$mplrc="";
$pythonhome="";
$pythonpath="";
$casapython="";
$tcllib="";
$qtplugin="";
$pgplot="";
#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#SPLIT#
####### code after this point is shared by both developer builds and binary
####### releases and should be written to support either using the variables
####### above...
$HOME = $ENV{HOME};
$os = `uname -s`;
$exec_with_sh = 0;
sub {
my $status = shift(@_);
my $msg = <<'EOF';
Usage: casa-config [OPTION]
--help print this message
--version print CASA version information
--prefix print CASA install root
--revision print CASA source revision information
--libversion print CASA library version number
--exec <command> setup CASA environment and exec a cmd
--sh-exec <command> setup CASA environment and exec a cmd with /bin/sh
EOF
print $msg;
exit $status;
}
sub {
my $cmd = shift(@_);
####
#### setup matplotlib...
####
if ( ! exists $ENV{MATPLOTLIBRC} && $mplrc ) {
$ENV{MATPLOTLIBRC} = $mplrc;
}