-
Notifications
You must be signed in to change notification settings - Fork 11
/
builddocs.in
150 lines (137 loc) · 5.21 KB
/
builddocs.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#! /bin/sh -
here=.
perldir=`dirname @PERL@`
if test -z "$SST_DIR"; then
if test -x starconf.status; then
finder=`./starconf.status --show finder`
test -n "$finder" && prolat_path=`$finder --path prolat`
fi
if test -z "$prolat_path" -a -f $STARLINK/bin/sst/prolat; then
prolat_path=$STARLINK/bin/sst/prolat
fi
if test -z "$prolat_path"; then
# not all shells have the which builtin, but try anyway
prolat_path=`which prolat 2>/dev/null`
fi
if test -z "$prolat_path"; then
echo "SST_DIR isn't set, and can't find prolat" >&2
exit 1
fi
SST_DIR=`dirname $prolat_path`
export SST_DIR
echo "SST_DIR set to $SST_DIR"
fi
PATH="${here}:${perldir}:${PATH}"
export PATH
srcdir="${here}/src"
goodsource="${srcdir}/yamlchan.c \
${srcdir}/axis.c \
${srcdir}/box.c \
${srcdir}/channel.c \
${srcdir}/chebymap.c \
${srcdir}/circle.c \
${srcdir}/cmpframe.c \
${srcdir}/cmpmap.c \
${srcdir}/cmpregion.c \
${srcdir}/dsbspecframe.c \
${srcdir}/dssmap.c \
${srcdir}/ellipse.c \
${srcdir}/error.c \
${srcdir}/fchannel.c \
${srcdir}/fitschan.c \
${srcdir}/fitstable.c \
${srcdir}/fluxframe.c \
${srcdir}/frame.c \
${srcdir}/frameset.c \
${srcdir}/grismmap.c \
${srcdir}/interval.c \
${srcdir}/intramap.c \
${srcdir}/keymap.c \
${srcdir}/lutmap.c \
${srcdir}/mapping.c \
${srcdir}/mathmap.c \
${srcdir}/matrixmap.c \
${srcdir}/moc.c \
${srcdir}/mocchan.c \
${srcdir}/nullregion.c \
${srcdir}/object.c \
${srcdir}/pcdmap.c \
${srcdir}/permmap.c \
${srcdir}/plot.c \
${srcdir}/plot3d.c \
${srcdir}/pointlist.c \
${srcdir}/pointset.c \
${srcdir}/polygon.c \
${srcdir}/polymap.c \
${srcdir}/prism.c \
${srcdir}/normmap.c \
${srcdir}/ratemap.c \
${srcdir}/region.c \
${srcdir}/shiftmap.c \
${srcdir}/sphmap.c \
${srcdir}/skyaxis.c \
${srcdir}/skyframe.c \
${srcdir}/slamap.c \
${srcdir}/specframe.c \
${srcdir}/specfluxframe.c \
${srcdir}/specmap.c \
${srcdir}/stc.c \
${srcdir}/stcresourceprofile.c \
${srcdir}/stcsearchlocation.c \
${srcdir}/stccatalogentrylocation.c \
${srcdir}/stcobsdatalocation.c \
${srcdir}/stcschan.c \
${srcdir}/table.c \
${srcdir}/timeframe.c \
${srcdir}/timemap.c \
${srcdir}/tranmap.c \
${srcdir}/selectormap.c \
${srcdir}/switchmap.c \
${srcdir}/unitmap.c \
${srcdir}/unitnormmap.c \
${srcdir}/wcsmap.c \
${srcdir}/winmap.c \
${srcdir}/xmlchan.c \
${srcdir}/zoommap.c"
goodsource="${goodsource} \
${here}/ast_link \
${here}/ast_link_adam"
#chmod +x ${here}/addcopyright
#chmod +x ${here}/addlinks
#chmod +x ${here}/addversion
#chmod +x ${here}/doincludes
#chmod +x ${here}/getatt
#chmod +x ${here}/selectfc
rm -f .sst.tmp
getatt -class -f ${goodsource} >f_classes.tex
cat getatt.labels >global_f.labels; rm -f getatt.labels
getatt -class ${goodsource} >c_classes.tex
cat getatt.labels >global_c.labels; rm -f getatt.labels
getatt -att -f ${goodsource} >f_attribs.tex
cat getatt.labels >>global_f.labels; rm -f getatt.labels
getatt -att ${goodsource} >c_attribs.tex
cat getatt.labels >>global_c.labels; rm -f getatt.labels
getatt -f ${goodsource} >f_routines.tex
cat getatt.labels >>global_f.labels; rm -f getatt.labels
getatt ${goodsource} >c_routines.tex
cat getatt.labels >>global_c.labels; rm -f getatt.labels
getatt ${srcdir}/memory.c > memory_routines.tex
cat getatt.labels >>global_c.labels; rm -f getatt.labels
getatt -u -f ${goodsource} >f_commands.tex
cat getatt.labels >>global_f.labels; rm -f getatt.labels
getatt -u ${goodsource} >c_commands.tex
cat getatt.labels >>global_c.labels; rm -f getatt.labels
ln -f global_f.labels global.labels
doincludes ${here}/sun_master.tex \
| selectfc -f | addlinks | addcopyright | addversion >sun210.tex
ln -f global_c.labels global.labels
doincludes ${here}/sun_master.tex \
| selectfc | addlinks | addcopyright | addversion >sun211.tex
rm -f global.labels global_f.labels global_c.labels
rm -f c_attribs.tex c_classes.tex c_routines.tex c_commands.tex
rm -f f_attribs.tex f_classes.tex f_routines.tex f_commands.tex
rm -f memory_routines.tex
TEXINPUTS=@STARLINK@/share/latexsupport//:${TEXINPUTS} pdflatex -interaction=nonstopmode sun210
TEXINPUTS=@STARLINK@/share/latexsupport//:${TEXINPUTS} pdflatex -interaction=nonstopmode sun210
TEXINPUTS=@STARLINK@/share/latexsupport//:${TEXINPUTS} pdflatex -interaction=nonstopmode sun211
TEXINPUTS=@STARLINK@/share/latexsupport//:${TEXINPUTS} pdflatex -interaction=nonstopmode sun211