/[MITgcm]/MITgcm/doc/api_reference/configure
ViewVC logotype

Contents of /MITgcm/doc/api_reference/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations) (download)
Wed May 5 22:50:54 2004 UTC (19 years, 9 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint57t_post, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint52n_post, checkpoint53d_post, checkpoint58u_post, checkpoint58w_post, checkpoint54a_pre, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint57s_post, checkpoint54a_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint53c_post, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint53b_pre, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint54d_post, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint53a_post, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint53b_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, checkpoint53, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post, HEAD
Changes since 1.8: +2 -2 lines
Preliminary Api Reference documentation for pkg/kpp, sbo, and seaice

1 #! /usr/bin/env sh
2 #
3 # $Header: /u/gcmpack/MITgcm/doc/api_reference/configure,v 1.8 2004/04/06 21:01:45 edhill Exp $
4 #
5 # A script to generate the Makefile for the API Reference
6
7 if ! test -r ./dir_list ; then
8 cat <<EOF
9 ERROR: cannot read the directory list -- please verify that this
10 script is run in MITGCM_ROOT/doc/api_reference and that the
11 "dir_list" file is readable.
12 EOF
13 exit 1
14 fi
15
16 cat ./dir_list | grep -v '^[ ]*#' | grep -v '^[ ]*$' > ./.dir_list_nocomments
17
18 name=$0
19 cat <<EOF > Makefile
20 #
21 # ================================================
22 #
23 # CREATED BY "$name" -- DO NOT EDIT !!!
24 #
25 # ================================================
26 #
27
28 .SUFFIXES:
29
30 all: all_protex
31
32 EOF
33
34 rm -rf ./.targets ./.all_clean
35 cat ./.dir_list_nocomments | while read line ; do
36
37 echo >> Makefile
38 base_target=`echo $line | awk '{print $1}' | sed -e 's|/|__|g'`
39 target=$base_target".tex"
40 printf " $target" >> ./.all_clean
41 echo "Finding files for \"$target\" in: $line"
42 tex_files=""
43 h_files=""
44 F_files=""
45 c_files=""
46 for i in $line ; do
47 tex_files="$tex_files"`ls -1 ../../$i/*.tex 2>/dev/null`
48 h_files="$h_files"`ls -1 ../../$i/*.h 2>/dev/null`
49 F_files="$F_files"`ls -1 ../../$i/*.F 2>/dev/null`
50 c_files="$c_files"`ls -1 ../../$i/*.c 2>/dev/null`
51 done
52
53 # *.tex
54 printf '%s' $base_target"_tex = " >> Makefile
55 for i in $tex_files ; do
56 printf '\\\n%s' " $i " >> Makefile
57 done
58 printf '\n' >> Makefile
59
60 # *.h
61 printf '%s' $base_target"_h = " >> Makefile
62 for i in $h_files ; do
63 printf '\\\n%s' " $i " >> Makefile
64 done
65 printf '\n' >> Makefile
66
67 # *.F
68 printf '%s' $base_target"_F = " >> Makefile
69 for i in $F_files ; do
70 printf '\\\n%s' " $i " >> Makefile
71 done
72 printf '\n' >> Makefile
73
74 # *.c
75 printf '%s' $base_target"_c = " >> Makefile
76 for i in $c_files ; do
77 printf '\\\n%s' " $i " >> Makefile
78 done
79 printf '\n' >> Makefile
80 d_tex="\$("$base_target"_tex)"
81 d_h="\$("$base_target"_h)"
82 d_F="\$("$base_target"_F)"
83 d_c="\$("$base_target"_c)"
84 cat <<EOF >> Makefile
85 $target: $d_tex $d_h $d_F $d_c
86 -rm -f $target
87 EOF
88 if test ! "x$tex_files" = x ; then
89 printf '\t%s\n' "-cat $d_tex >> $target" >> Makefile
90 fi
91 if test ! "x$h_files" = x ; then
92 printf '\t%s\n' "-./protex -b7f $d_h >> $target" >> Makefile
93 fi
94 if test ! "x$F_files" = x ; then
95 printf '\t%s\n' "-./protex -b7f $d_F >> $target" >> Makefile
96 fi
97 if test ! "x$c_files" = x ; then
98 printf '\t%s\n' "-./protex -bCf $d_c >> $target" >> Makefile
99 fi
100
101 if test ! "x$target" = x ; then
102 printf '%s' " $target" >> ./.targets
103 fi
104 done
105
106 alltex=`cat ./.targets`
107 printf '\n%s' "ALLTEX = " >> Makefile
108 for i in $alltex ; do
109 printf '\\\n%s' " $i " >> Makefile
110 done
111 printf '\n\n' >> Makefile
112
113 cat <<EOF >> Makefile
114
115 makefile:
116 $0
117
118 api_main.tex: introduction.tex \$(ALLTEX)
119 -./build_main \$(ALLTEX)
120
121 api_main.dvi: api_main.tex
122 latex api_main
123 bibtex api_main
124 latex api_main
125 latex api_main
126
127 api_main.ps: api_main.dvi
128 dvips -Pcmz -Pamz -o api_main.ps api_main.dvi
129
130 PDFOPTS = -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true
131 api_main.pdf: api_main.ps
132 ps2pdf \$(PDFOPTS) api_main.ps api_main.pdf
133
134 all_protex: api_main.pdf
135
136 distclean:
137 @make clean
138 -rm -f Makefile
139
140 install: all
141 -rm -rf ./api_ref
142 mkdir ./api_ref
143 -cp api_main.pdf ./api_ref/api_ref.pdf
144 scp -r ./api_ref mitgcm.org:/u/u0/httpd/html/
145
146 clean:
147 -rm -f *.aux *.dvi *.log *.toc *.out
148 -rm -f api_main.*
149 EOF
150
151 printf "\t-rm -f " >> Makefile
152 cat ./.all_clean >> Makefile
153
154 rm -f ./.dir_list_nocomments
155 rm -f ./.targets
156 rm -f ./.all_clean

  ViewVC Help
Powered by ViewVC 1.1.22