On Wed, 5 Aug 2009, Roderick Johnstone wrote:
> Peter W. Draper wrote:
>> On Tue, 4 Aug 2009, Roderick Johnstone wrote:
>>
>>> I'm having some problems with the linux x86_64 bit install of nanahope on
>>> Fedora 10.
>>>
>>> Some commands like kappa work:
>>> linux> kappa
>>>
>>>
>>> KAPPA commands are now available -- (Version 1.10-10)
>>>
>>> Type kaphelp for help on KAPPA commands.
>>> Type 'showme sun95' to browse the hypertext documentation.
>>>
>>> NOTE, several applications have had major changes made to their
>>> parameter lists. See the 'Release Notes' section of SUN/95 for
>>> details.
>>>
>>> But others don't, like:
>>> linux> figaro
>>> bash: /figaro/figaro.sh: No such file or directory
>>>
>>> I think the problem is in star-nanahope/etc/profile. In the second figaro
>>> setup section figaro is defined as:
>>>
>>> figaro () { . ${bindir}/figaro/figaro.sh; }
>>>
>>> but bindir is not defined at run time.
>>>
>>> kappa is defined like:
>>> kappa () { . $KAPPA_DIR/kappa.sh; }
>>>
>>> and KAPPA_DIR is defined at run time
>>
>> Hi Roderick,
>>
>> thanks for the report. Tim stopped the export of $bindir so a few package
>> initialisation commands have been broken like FIGARO (EXTRACTOR, DIPSO and
>> DATACUBE). I've fixed this in the attached "profile" which should get you
>> working again. Just replace your existing file.
>>
>> Brad, committed to master as 3dabcb41270 if you want to issue an official
>> patch.
>>
>> Cheers,
>>
>> Peter.
>>
> Thanks for the response... With your attached file I now get:
>
> : command not found
> : command not found
> : command not found
> : command not found
> : command not found
> 'ash: /data/soft3/starlink/star-nanahope/etc/profile: line 140: syntax error
> near unexpected token `in
> 'ash: /data/soft3/starlink/star-nanahope/etc/profile: line 140: ` case
> "x86_64-unknown-linux-gnu" in
Hi Roderick,
you are using bash, not ash? As far as I know the non-csh scripts will
only work with a bash compatible shell.
Either way I realised that the script in the last message had an incorrect
installation root, so try the attached version instead.
Cheers,
Peter.
# -*- Shell-Script -*-
# File: /star-nanahope/etc/profile
# Init Version: 1.1-27
# From CVS $Revision$
# This file must be sourced before Starlink software can be used.
# This script contains environment and alias definitions and must
# be sourced rather than executed. It is suitable for use from a bash
# shell
# This can be achieved by adding the line:
#
# source /star-nanahope/etc/profile
#
# to your .profile file. for the ultra paranoid, add a check for file
# existence as well.
# Break the file up along the lines of the cshrc and login rather
# than combining tests into a single block.
# Make ${1+"$@"} portability feature work on zsh, too.
test "${ZSH_VERSION+set}" = set && alias -g '${1+"$@"}'='"$@"'
# To simplify relocation use local variables rather than using the
# /star-nanahope/bin everywhere
relocate=0
if test "${STARLINK_DIR}" != ""; then
if [ -e ${STARLINK_DIR} ]; then
if test "${STARLINK_DIR}" != "/star-nanahope"; then
if [ -e ${STARLINK_DIR}/bin ]; then
relocate=1
fi
fi
fi
fi
if [ ${relocate} -ne 0 ]; then
exec_prefix=${STARLINK_DIR}
bindir=${exec_prefix}/bin
staretcdir=${exec_prefix}/etc
starhelpdir=${exec_prefix}/help
libdir=${exec_prefix}/lib
sharelibdir=${exec_prefix}/lib
datadir=${exec_prefix}/share
mandir=${exec_prefix}/man
starjavadir=${exec_prefix}/starjava
else
export STARLINK_DIR=/star-nanahope
exec_prefix=/star-nanahope
bindir=/star-nanahope/bin
staretcdir=/star-nanahope/etc
starhelpdir=/star-nanahope/help
libdir=/star-nanahope/lib
sharelibdir=/star-nanahope/lib
datadir=/star-nanahope/share
mandir=/star-nanahope/man
starjavadir=/star-nanahope/starjava
fi
# Add Starlink directories to relevant paths.
tmppath="${PATH}"
if((`echo ${tmppath} | grep -c ':${bindir}/startcl:'`)); then
tmppath=`echo ${tmppath} | sed -e 's#:${bindir}/startcl:#:#g'`
fi
if((`echo ${tmppath} | grep -c ':${bindir}/startcl$'`)); then
tmppath=`echo ${tmppath} | sed -e 's#:${bindir}/startcl##g'`
fi
if((`echo ${tmppath} | grep -c '^${bindir}/startcl'`)); then
tmppath=`echo ${tmppath} | sed -e 's#${bindir}/startcl:##g'`
fi
if((`echo ${tmppath} | grep -c ':${bindir}:'`)); then
tmppath=`echo ${tmppath} | sed -e 's#:${bindir}:#:#g'`
fi
if((`echo ${tmppath} | grep -c ':${bindir}$'`)); then
tmppath=`echo ${tmppath} | sed -e 's#:${bindir}##g'`
fi
if((`echo ${tmppath} | grep -c '^${bindir}'`)); then
tmppath=`echo ${tmppath} | sed -e 's#${bindir}:##g'`
fi
if((`echo ${tmppath} | grep -c ':${starjavadir}/bin:'`)); then
tmppath=`echo ${tmppath} | sed -e 's#:${starjavadir}/bin:#:#g'`
fi
if((`echo ${tmppath} | grep -c ':${starjavadir}/bin$'`)); then
tmppath=`echo ${tmppath} | sed -e 's#:${starjavadir}/bin##g'`
fi
if((`echo ${tmppath} | grep -c '^${starjavadir}/bin'`)); then
tmppath=`echo ${tmppath} | sed -e 's#${starjavadir}:##g'`
fi
export PATH="${tmppath}:${bindir}/startcl:${bindir}:${starjavadir}/bin"
#
# Prepend Starlink JRE (and JDK) paths to PATH.
# Do JRE after JDK so that the JRE takes precidence.
JREHOME=${exec_prefix}/java/jre/bin
JDKHOME=${exec_prefix}/java/bin
if test -d ${JDKHOME}; then
export PATH="${JDKHOME}:${PATH}"
fi
if test -d ${JREHOME}; then
export PATH="${JREHOME}:${PATH}"
fi
unset JREHOME JDKHOME
# Check if LD_LIBRARY_PATH is set, needed on all platforms
# that have shareable libraries, plus all platforms that
# have Java JNI libraries.
# Is LD_LIBRARY_PATH set?
if test "${LD_LIBRARY_PATH}" != ""; then
# LD_LIBRARY_PATH is set. Search it for required components and
# Set appropriate flag variables.
found_sharelib="no"
if test "`echo ${LD_LIBRARY_PATH} | grep -c ':${sharelibdir}'`" != "0"; then
found_sharelib="yes"
fi
if test "`echo ${LD_LIBRARY_PATH} | grep -c '^${sharelibdir}'`" != "0"; then
found_sharelib="yes"
fi
# Add required components to end of LD_LIBRARY_PATH if flag variables
# indicate they are not present.
if test "$found_sharelib" == "no"; then
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${sharelibdir}"
case "x86_64-unknown-linux-gnu" in
*-osf*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/alpha"
;;
x86_64*-linux*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/amd64"
;;
*-linux*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/i386"
;;
*-cygwin*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/x86"
;;
*-sun*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/sparc"
;;
*pc-apple-darwin*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/ppc"
;;
*86*-apple-darwin*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/i386"
;;
esac
fi
else
# LD_LIBRARY_PATH is not set. Add required components.
export LD_LIBRARY_PATH=${sharelibdir}
case "x86_64-unknown-linux-gnu" in
*-osf*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/alpha"
;;
x86_64*-linux*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/amd64"
;;
*-linux*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/i386"
;;
*-cygwin*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/x86"
;;
*-sun*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/openwin/lib:${starjavadir}/lib/sparc"
;;
*pc-apple-darwin*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/ppc"
;;
*86*-apple-darwin*)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${starjavadir}/lib/i386"
;;
esac
fi
# Define the Starlink environment first
# ATOOLS
if test -f ${bindir}/atools/atools.sh; then
export ATOOLS_DIR=${bindir}/atools
export ATOOLS_HELP=${starhelpdir}/atools/atools
fi
# AUTOASTROM
if test -f ${exec_prefix}/Perl/bin/autoastrom; then
export AUTOASTROM_DIR=${exec_prefix}/Perl/bin
fi
# CCDPACK
if test -f ${bindir}/ccdpack/ccdpack.sh; then
export CCDPACK_DIR=${bindir}/ccdpack
export CCDPACK_HELP=${starhelpdir}/ccdpack/ccdpack
fi
# Convert
if test -f ${bindir}/convert/convert.sh; then
export CONVERT_DIR=${bindir}/convert
export CONVERT_HELP=${starhelpdir}/convert/convert
fi
# CUPID
if test -f ${bindir}/cupid/cupid.sh; then
export CUPID_DIR=${bindir}/cupid
export CUPID_HELP=${starhelpdir}/cupid/cupid
fi
# DATACUBE
if test -f ${bindir}/datacube/datacube.csh; then
export DATACUBE_DIR=${bindir}/datacube
export DATACUBE_HELP=${starhelpdir}/datacube/datacube
fi
# ESP
if test -f ${bindir}/esp/esp.sh; then
export ESP_DIR=${bindir}/esp
export ESP_HELP=${starhelpdir}/esp/esp
fi
#
# EXTRACTOR
if test -f ${bindir}/extractor/extractor.sh; then
export EXTRACTOR_DIR=${bindir}/extractor
export EXTRACTOR_HELP=${starhelpdir}/extractor/extractor
fi
# FIGARO
if test -f ${bindir}/figaro/figaro.csh; then
export FIG_DIR=${bindir}/figaro
export FIG_HELP=${starhelpdir}/figaro/figaro
export FIG_HTML=${exec_prefix}/docs/sun86.htx
export FIGARO_FORMATS="ndf,dst"
export FIGARO_PROG_S=${staretcdir}/figaro
export FIGARO_PROG_N=${bindir}/figaro
fi
# Fluxes - note that we can run with fluxes.csh
# (assuming that csh exists on the system)
if test -f ${bindir}/fluxes/fluxes.csh; then
export FLUXES_DIR=${bindir}/fluxes
fi
# GAIA
if test -f ${bindir}/gaia/gaia.sh; then
export GAIA_DIR=${bindir}/gaia
fi
# HDSTOOLS
if test -f ${bindir}/hdstools/hdstools.sh; then
export HDSTOOLS_DIR=${bindir}/hdstools
export HDSTOOLS_HELP=${starhelpdir}/hdstools/hdstools
fi
# HDSTRACE
if test -f ${bindir}/hdstrace; then
export HDSTRACE_DIR=${bindir}
export HDSTRACE_HELP=${starhelpdir}/hdstrace
fi
# ICL
if test -f ${bindir}/icl; then
export ADAM_PACKAGES=${starhelpdir}/adam_packages.shl
export ICL_LOGIN_SYS=${staretcdir}/icl_login_sys.icl
fi
# JPL
if test -f ${staretcdir}/jpleph.dat; then
export JPL_DIR=${staretcdir}
fi
# Kappa
if test -f ${bindir}/kappa/kappa.sh; then
export KAPPA_DIR=${bindir}/kappa
export KAPPA_HELP=${starhelpdir}/kappa/kappa
fi
# Kappa Retirement Home (kaprh)
if test -f ${bindir}/kaprh/kaprh.sh; then
export KAPRH_DIR=${bindir}/kaprh
export KAPRH_HELP=${starhelpdir}/kaprh/kaprh
fi
# ORAC-DR
if test -f ${bindir}/oracdr/src/etc/oracdr_start.sh; then
export ORAC_DIR=${bindir}/oracdr/src
export ORAC_PERL5LIB=${ORAC_DIR}/lib/perl5
export ORAC_CAL_ROOT=${bindir}/oracdr/cal
else
if test -f ${bindir}/oracdr/etc/oracdr_start.sh; then
export ORAC_DIR=${bindir}/oracdr
export ORAC_PERL5LIB=${ORAC_DIR}/lib/perl5
export ORAC_CAL_ROOT=${ORAC_DIR}/cal
fi
fi
# PERIOD
if test -f ${bindir}/period/period; then
export PERIOD_DIR=${bindir}/period
export PERIOD_HELP=${starhelpdir}/period
fi
# PERL
if [ ${relocate} -ne 0 ]; then
export PERL5LIB=${exec_prefix}/Perl/lib/perl5/site_perl
export PERL5LIB=${exec_prefix}/Perl/lib/perl5/:${PERL5LIB}
fi
# PGPLOT
if test -z "${PGPLOT_DIR}"; then
export PGPLOT_DIR=${bindir}/
fi
# PHOTOM
if test -f ${bindir}/photom/photom.sh; then
export PHOTOM_DIR=${bindir}/photom
export PHOTOM_HELP=${starhelpdir}/photom/photomhelp
fi
# Polpack
if test -f ${bindir}/polpack/polpack.sh; then
export POLPACK_DIR=${bindir}/polpack
export POLPACK_HELP=${starhelpdir}/polpack/polpack
fi
#
# PONGO
#
if test -f ${bindir}/pongo/pongo.icl; then
export PONGO_BIN=${bindir}/pongo
export PONGO_HELP=${starhelpdir}/pongo/pongohelp
export PONGO_EXAMPLES=${datadir}/pongo
fi
# SMURF
if test -f ${bindir}/smurf/smurf.sh; then
export SMURF_DIR=${bindir}/smurf
export SMURF_HELP=${starhelpdir}/smurf/smurf
fi
#
# SOURCEPLOT
if test -f ${exec_prefix}/Perl/etc/poi.dat; then
export SPLOT_CAT=${exec_prefix}/Perl/etc/poi.dat
fi
#
# SPECX
#
if test -f ${datadir}/specx/specxstart.sh; then
export SYS_SPECX=${datadir}/specx
export SPECX_HELP=${starhelpdir}/specx
fi
# SPLAT
if test -f ${starjavadir}/bin/splat/splat; then
export SPLAT_DIR=${starjavadir}/bin/splat
fi
# SST
if test -f ${bindir}/sst/sst.sh; then
export SST_DIR=${bindir}/sst
export SST_HELP=${starhelpdir}/sst/sst
fi
# STARBENCH
if test -f ${bindir}/starbench/starbench.sh; then
export BENCH_DIR=${bindir}/starbench
fi
# STARMAN
if test -f ${bindir}/starman/starman.sh; then
export STARMAN_DIR=${bindir}/starman
export STARMAN_HELP=${starhelpdir}/starman
export STARMAN_DATA=${staretcdir}/starman
fi
# STILTS
if test -x ${starjavadir}/bin/stilts; then
export STILTS_DIR=${starjavadir}/bin/stilts
fi
# SURF
if test -f ${bindir}/surf/surf.sh; then
export SURF_DIR=${bindir}/surf
export SURF_HELP=${starhelpdir}/surf/surf
fi
# TSP
if test -f ${bindir}/tsp/tsp.sh; then
export TSP_DIR=${bindir}/tsp
fi
# Aliases
# Use sh functions rather than bash aliases for improved
# portability. Use 'declare -F' in bash to list all the functions.
# ATOOLS
if test -f ${bindir}/atools/atools.sh; then
atools () { . $ATOOLS_DIR/atools.sh; }
atools () { . $ATOOLS_DIR/atools.sh; }
else
atools () { ${staretcdir}/notinst atools; }
atoolssetup () { ${staretcdir}/notinst atools; }
fi
# AUTOASTROM
if test -f ${exec_prefix}/Perl/bin/autoastrom; then
autoastrom () { ${exec_prefix}/Perl/bin/perl $AUTOASTROM_DIR/autoastrom; }
else
autoastrom () { ${staretcdir}/notinst autoastrom; }
fi
# CCDPACK
if test -f ${bindir}/ccdpack/ccdpack.sh; then
ccdpack () { . $CCDPACK_DIR/ccdpack.sh; }
ccdpacksetup () { . $CCDPACK_DIR/ccdpack.sh; }
else
ccdpack () { ${staretcdir}/notinst ccdpack; }
ccdpacksetup () { ${staretcdir}/notinst ccdpack; }
fi
# CONVERT
if test -f ${bindir}/convert/convert.sh; then
convert () { . $CONVERT_DIR/convert.sh; }
convertsetup () { . $CONVERT_DIR/convert.sh; }
else
convert () { ${staretcdir}/notinst convert; }
convertsetup () { ${staretcdir}/notinst convert; }
fi
# CUPID
if test -f ${bindir}/cupid/cupid.sh; then
cupid () { . $CUPID_DIR/cupid.sh; }
cupidsetup () { . $CUPID_DIR/cupid.sh; }
else
cupid () { ${staretcdir}/notinst cupid; }
cupidsetup () { ${staretcdir}/notinst cupid; }
fi
# DATACUBE
if test -f ${bindir}/datacube/datacube.sh; then
datacube () { . $DATACUBE_DIR/datacube.sh; }
datacubestart () { . $DATACUBE_DIR/datacube.sh; }
datacubesetup () { . $DATACUBE_DIR/datacube.sh; }
else
datacube () { ${staretcdir}/notinst datacube; }
datacubestart () { ${staretcdir}/notinst datacubestart; }
datacubesetup () { ${staretcdir}/notinst datacubesetup; }
fi
# DIPSO
if test -f ${bindir}/dipso/dipsosetup.sh; then
export DIPSODIR=${bindir}/dipso
dipsosetup () { . $DIPSODIR/dipsosetup.sh; }
dipso () { . $DIPSODIR/dipsosetup.sh; }
else
dipsosetup () { ${staretcdir}/notinst dipsosetup; }
dipso () { ${staretcdir}/notinst dipso; }
fi
# ESP
if test -f ${bindir}/esp/esp.sh; then
esp () { . $ESP_DIR/esp.sh; }
espsetup () { . $ESP_DIR/esp.sh; }
else
esp () { ${staretcdir}/notinst esp; }
espsetup () { ${staretcdir}/notinst esp; }
fi
#
# Extractor
#
if test -f ${bindir}/extractor/extractor.sh; then
extractorsetup () { . $EXTRACTOR_DIR/extractor.sh; }
extractsetup () { . $EXTRACTOR_DIR/extractor.sh; }
extractor () { . $EXTRACTOR_DIR/extractor.sh; }
extract () { . $EXTRACTOR_DIR/extractor.sh; }
else
extractorsetup () { ${staretcdir}/notinst extractorsetup; }
extractsetup () { ${staretcdir}/notinst extractsetup; }
extractor () { ${staretcdir}/notinst extractor; }
extract () { ${staretcdir}/notinst extract; }
fi
# FIGARO
if test -f ${bindir}/figaro/figaro.sh; then
figaro () { . $FIG_DIR/figaro.sh; }
figarosetup () { . $FIG_DIR/figaro.sh; }
specdre () { . $FIG_DIR/specdre.sh; }
specdresetup () { . $FIG_DIR/specdre.sh; }
twodspec () { . $FIG_DIR/twodspec.sh; }
twodspecsetup () { . $FIG_DIR/twodspec.sh; }
else
figaro () { ${staretcdir}/notinst figaro; }
figarosetup () { ${staretcdir}/notinst figarosetup; }
specdre () { ${staretcdir}/notinst specdre; }
specdresetup () { ${staretcdir}/notinst specdresetup; }
twodspec () { ${staretcdir}/notinst twodspec; }
twodspecsetup () { ${staretcdir}/notinst twodspecsetup; }
fi
# Fluxes
if test -f ${bindir}/fluxes/fluxes; then
fluxes () { $FLUXES_DIR/fluxes.csh; }
fluxnow () { $FLUXES_DIR/fluxnow.csh; }
else
fluxes () { ${staretcdir}/notinst fluxes; }
fluxnow () { ${staretcdir}/notinst fluxnow; }
fi
#
# Gaia
#
if test -f ${bindir}/gaia/gaia.sh; then
gaia () { $GAIA_DIR/gaia.sh ${1+"$@"}; }
gaiadisp () { $GAIA_DIR/gaiadisp.sh ${1+"$@"}; }
else
gaia () { ${staretcdir}/notinst gaia; }
gaiadisp () { ${staretcdir}/notinst gaiadisp; }
fi
# Kappa
if test -f ${bindir}/kappa/kappa.sh; then
kappa () { . $KAPPA_DIR/kappa.sh; }
kappasetup () { . $KAPPA_DIR/kappa.sh; }
else
kappa () { ${staretcdir}/notinst kappa; }
kappasetup () { ${staretcdir}/notinst kappa; }
fi
# Kappa Retirement Home (KAPRH)
if test -f ${bindir}/kaprh/kaprh.sh; then
kaprh () { . $KAPRH_DIR/kaprh.sh; }
kaprhsetup () { . $KAPRH_DIR/kaprh.sh; }
else
kaprh () { ${staretcdir}/notinst kaprh; }
kaprhsetup () { ${staretcdir}/notinst kaprh; }
fi
# HDSTOOLS
if test -f ${bindir}/hdstools/hdstools.sh; then
hdstools () { . $HDSTOOLS_DIR/hdstools.sh; }
hdstoolssetup () { . $HDSTOOLS_DIR/hdstools.sh; }
else
hdstools () { ${staretcdir}/notinst hdstools; }
hdstoolssetup () { ${staretcdir}/notinst hdstools; }
fi
# ORAC-DR
if test -f ${bindir}/oracdr/src/etc/profile; then
source ${bindir}/oracdr/src/etc/profile
else
if test -f ${bindir}/oracdr/etc/profile; then
source ${bindir}/oracdr/etc/profile
else
oracdr_acsis () { ${staretcdir}/notinst oracdr_acsis; }
oracdr_cgs4 () { ${staretcdir}/notinst oracdr_cgs4; }
oracdr_classiccam () { ${staretcdir}/notinst oracdr_classiccam; }
oracdr_gmos () { ${staretcdir}/notinst oracdr_gmos; }
oracdr_ingrid () { ${staretcdir}/notinst oracdr_ingrid; }
oracdr_ircam () { ${staretcdir}/notinst oracdr_ircam; }
oracdr_ircam_old () { ${staretcdir}/notinst oracdr_ircam_old; }
oracdr_iris2 () { ${staretcdir}/notinst oracdr_iris2; }
oracdr_isaac () { ${staretcdir}/notinst oracdr_isaac; }
oracdr_michelle () { ${staretcdir}/notinst oracdr_michelle; }
oracdr_naco () { ${staretcdir}/notinst oracdr_naco; }
oracdr_niri () { ${staretcdir}/notinst oracdr_niri; }
oracdr_scuba () { ${staretcdir}/notinst oracdr_scuba; }
oracdr_scuba2l () { ${staretcdir}/notinst oracdr_scuba2l; }
oracdr_scuba2s () { ${staretcdir}/notinst oracdr_scuba2s; }
oracdr_scuba2lq () { ${staretcdir}/notinst oracdr_scuba2lq; }
oracdr_scuba2sq () { ${staretcdir}/notinst oracdr_scuba2sq; }
oracdr_sofi () { ${staretcdir}/notinst oracdr_sofi; }
oracdr_spex () { ${staretcdir}/notinst oracdr_spex; }
oracdr_swfcam () { ${staretcdir}/notinst oracdr_swfcam; }
oracdr_swfcam1 () { ${staretcdir}/notinst oracdr_swfcam1; }
oracdr_swfcam2 () { ${staretcdir}/notinst oracdr_swfcam2; }
oracdr_swfcam3 () { ${staretcdir}/notinst oracdr_swfcam3; }
oracdr_swfcam4 () { ${staretcdir}/notinst oracdr_swfcam4; }
oracdr_ufti () { ${staretcdir}/notinst oracdr_ufti; }
oracdr_ufti_old () { ${staretcdir}/notinst oracdr_ufti_old; }
oracdr_uist () { ${staretcdir}/notinst oracdr_uist; }
xoracdr () { ${staretcdir}/notinst xoracdr; }
fi
fi
# Polpack
if test -f ${bindir}/polpack/polpack.sh; then
polpack () { . $POLPACK_DIR/polpack.sh; }
polpacksetup () { . $POLPACK_DIR/polpack.sh; }
else
polpack () { ${staretcdir}/notinst polpack; }
polpacksetup () { ${staretcdir}/notinst polpack; }
fi
#
# Photom
#
if test -f ${bindir}/photom/photom.sh; then
photomstart () { . $PHOTOM_DIR/photom.sh; }
photom () { . $PHOTOM_DIR/photom.sh; }
photomsetup () { . $PHOTOM_DIR/photom.sh; }
else
photomstart () { ${staretcdir}/notinst photomstart; }
photom () { ${staretcdir}/notinst photom; }
photomsetup () { ${staretcdir}/notinst photomsetup; }
fi
#
# Pongo
#
if test -f ${bindir}/pongo/pongo.icl; then
pongo () { icl $PONGO_BIN/pongo; }
else
pongo () { ${staretcdir}/notinst pongo; }
fi
# SMURF - SCUBA-2 SURF
if test -f ${bindir}/smurf/smurf.sh; then
smurf () { . $SMURF_DIR/smurf.sh; }
smurfsetup () { . $SMURF_DIR/smurf.sh; }
else
smurf () { ${staretcdir}/notinst smurf; }
smurfsetup () { ${staretcdir}/notinst smurf; }
fi
#
# SPECX
#
if test -f ${datadir}/specx/specxstart.sh; then
specx () { . $SYS_SPECX/specxstart.sh; command specx; }
specxsetup () { . $SYS_SPECX/specxstart.sh; }
specxstart () { . $SYS_SPECX/specxstart.sh; }
else
specx () { ${staretcdir}/notinst specx; }
specxsetup () { ${staretcdir}/notinst specxsetup; }
specxstart () { ${staretcdir}/notinst specxstart; }
fi
# SPLAT
if test -f ${starjavadir}/bin/splat/splat; then
splat () { $SPLAT_DIR/splat ${1+"$@"}; }
splatdisp () { $SPLAT_DIR/splatdisp ${1+"$@"}; }
splatdispmany () { $SPLAT_DIR/splatdispmany ${1+"$@"}; }
else
splat () { ${staretcdir}/notinst splat; }
splatdisp () { ${staretcdir}/notinst splat; }
splatdispmany () { ${staretcdir}/notinst splat; }
fi
# SST
if test -f ${bindir}/sst/sst.sh; then
sst () { . $SST_DIR/sst.sh; }
sstsetup () { . $SST_DIR/sst.sh; }
else
sst () { ${staretcdir}/notinst sst; }
sstsetup () { ${staretcdir}/notinst sst; }
fi
# STARBENCH
if test -f ${bindir}/starbench/starbench.sh; then
starbench () { . $BENCH_DIR/starbench.sh; }
else
starbench () { ${staretcdir}/notinst starbench; }
fi
# STARMAN
if test -f ${bindir}/starman/starman.sh; then
starman () { . $STARMAN_DIR/starman.sh; }
starmansetup () { . $STARMAN_DIR/starman.sh; }
else
starman () { ${staretcdir}/notinst starman; }
starmansetup () { ${staretcdir}/notinst starman; }
fi
# SURF
if test -f ${bindir}/surf/surf.sh; then
surf () { . $SURF_DIR/surf.sh; }
surfsetup () { . $SURF_DIR/surf.sh; }
else
surf () { ${staretcdir}/notinst surf; }
surfsetup () { ${staretcdir}/notinst surf; }
fi
# TSP
if test -f ${bindir}/tsp/tsp.sh; then
tsp () { . $TSP_DIR/tsp.sh; }
tspsetup () { . $TSP_DIR/tsp.sh; }
else
tsp () { ${staretcdir}/notinst tsp; }
tspsetup () { ${staretcdir}/notinst tsp; }
fi
#
# Unset local shell variables to prevent them from leaking out
unset exec_prefix
unset bindir
unset staretcdir
unset starhelpdir
unset libdir
unset sharelibdir
unset datadir
unset mandir
unset starjavadir
#
# ADAM_ABBRV environment variable to allow abbreviated parameters.
export ADAM_ABBRV=1
# 64-bit mode for HDS
export HDS_64BIT=1
# Done
export STAR_LOGIN=''
|