#! /bin/sh - srcdir=. 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="${srcdir}:${perldir}:${PATH}" export PATH goodsource="${srcdir}/axis.c \ ${srcdir}/box.c \ ${srcdir}/channel.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}/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}/wcsmap.c \ ${srcdir}/winmap.c \ ${srcdir}/xmlchan.c \ ${srcdir}/zoommap.c" goodsource="${goodsource} \ ${srcdir}/ast_link \ ${srcdir}/ast_link_adam" #chmod +x ${srcdir}/addcopyright #chmod +x ${srcdir}/addlinks #chmod +x ${srcdir}/addversion #chmod +x ${srcdir}/doincludes #chmod +x ${srcdir}/getatt #chmod +x ${srcdir}/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 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 ${srcdir}/sun_master.tex \ | selectfc -f | addlinks | addcopyright | addversion >sun210.tex ln -f global_c.labels global.labels doincludes ${srcdir}/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