-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautomiriad.csh.in
executable file
·72 lines (55 loc) · 1.88 KB
/
automiriad.csh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- shell-script -*-
# Script to set up a C shell environment to use a
# Miriad installation created with the autotools build
# system. A separate script is necessary because the
# directory structure of an autotoolized Miriad install
# is fairly different from that of a binary tree
# built with the classic build system.
#
# Most of the definitions here have just been copied from the
# MIRRC.linux file. I wouldn't be surprised if many of
# them were no longer necessary or useful. (PKGW 07/02/07)
# Get the pgplot definitions.
source "%libdir%/pgplot-miriad-remix/pgplot-config.csh"
# Constants
setenv AIPSTV "XASIN"
setenv MIRPAGER "doc"
setenv MIRDEF .
# Things that come directly from the source tree
setenv MIR "%abs_srcdir%"
setenv MIRNEWS "$MIR/news"
setenv MIRPROG "$MIR/src/prog"
setenv MIRSRC "$MIR/src"
setenv MIRSUBS "$MIR/src/subs"
# Things that are built by the build system. MIRINC must
# go here because of the maxdim headers.
setenv MIRBIN "%bindir%"
setenv MIRLIB "%libdir%"
setenv MIRCAT "%catdir%"
setenv MIRINC "%fincludedir%"
setenv MIRDOC "%pkgdatadir%/doc"
setenv MIRPDOC "$MIRDOC/prog"
setenv MIRSDOC "$MIRDOC/subs"
# FIXME? Haven't copied the code to try to add bindir to the path
# after '.' if the latter is in it.
set path = ("$MIRBIN" $path)
alias mirfind mir.find
alias mirhelp mir.help
alias mirindex mir.index
alias mirbug 'mir.bug.csh bug'
alias mirfeedback 'mir.bug.csh feedback'
# FIXME: we may want to export WIPHELP
# Import site-specific customizations. Hopefully our
# environment variables will be enough to make us
# compatible with existing scripts, even though our
# directory structure is different than that of a
# classic install.
if ( -e "$MIR/MIRRC.local" ) then
source "$MIR/MIRRC.local"
endif
# Import user customizations. Same rationale as above.
if ($?HOME) then
if ( -e "$HOME/.automirsrc" ) then
source "$HOME/.automirsrc"
endif
endif