| 1 |
#!/bin/csh -f |
| 2 |
|
| 3 |
# |
| 4 |
# Run this script on twain.lcs.mit.edu |
| 5 |
# |
| 6 |
|
| 7 |
# |
| 8 |
# Script checks out latest manual from CVS |
| 9 |
# Builds tex, ps, pdf and html |
| 10 |
# Installs html under http://mitgcm.org/sealion-manual-latest |
| 11 |
# |
| 12 |
|
| 13 |
# Check out the manual |
| 14 |
setenv CVSROOT /u/u0/gcmpack |
| 15 |
cd /scratch/cnh/RELEASE1/manual/HEAD |
| 16 |
\rm -fr /scratch/cnh/RELEASE1/manual/HEAD/* |
| 17 |
ln -s /scratch/cnh/l2h/bin/latex2html latex2html |
| 18 |
setenv LATEX2HTMLDIR /scratch/cnh/l2h |
| 19 |
cvs co -d . -P mitgcmdoc |
| 20 |
|
| 21 |
# latex document |
| 22 |
make tex |
| 23 |
|
| 24 |
# create postscript |
| 25 |
make ps |
| 26 |
|
| 27 |
# create pdf |
| 28 |
make pdf |
| 29 |
|
| 30 |
# create html |
| 31 |
make html |
| 32 |
|
| 33 |
# install under http://mitgcm.org/sealion-manual-latest |
| 34 |
cd manual |
| 35 |
\rm -fr /u/u0/httpd/html/sealion-manual-latest |
| 36 |
mkdir /u/u0/httpd/html/sealion-manual-latest |
| 37 |
tar -cf - . | tcsh -c "cd /u/u0/httpd/html/sealion-manual-latest; tar -xf -" |
| 38 |
cd /u/u0/httpd/html/sealion-manual-latest |
| 39 |
|
| 40 |
# change e-mail link to include section number etc... |
| 41 |
cp ~cnh/make_mail_subjects* . |
| 42 |
./make_mail_subjects.sh |