I've committed a patch to the init package (cshrc.in and login.in at
present) to simplify relocation of cshrc and login files.
Now if you install starlink into a different location and simply
setenv STAR_RELOC /newstar
source /newstar/etc/login
source /newstar/etc/cshrc
This is experimental since:
0. I don't expect it to work on OSX because of the burned in shared
library problem
1. I've not tried all the initialisations[*]
2. STAR_RELOC is probably superfluous - we could simply work out where
the script is and compare it to where it thought it was going to be
3. a quick glance suggests that things seem to work with relocation
(GAIA complaisn about not being able to load rpcvar package but
otherwise seems okay)
4. anything involing tcl will fail because the exec in the script
hasn't been fixed yet (need to write a shell script for relocating
properly)
Obviously you can't build any software when the software is in the wrong
place.
[*] the cshrc is inconsistent as to whether the alias should use
${BLAH_DIR} environement variable or $bindir/app/
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|