/[MITgcm]/manual/run_protex
ViewVC logotype

Annotation of /manual/run_protex

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


Revision 1.1 - (hide annotations) (download)
Wed Feb 4 04:49:19 2004 UTC (17 years, 2 months ago) by edhill
Branch: MAIN
 o initial (crude) version of protex-generated docs

1 edhill 1.1 #! /usr/bin/env bash
2     #
3     # $Header: $
4     # $Name: $
5    
6     # Script to generate the protex output and, for each MITgcm package,
7     # place it in the file: "manual/part6/pt_$PACKAGENAME.tex"
8    
9     pkg_dir=
10     for i in .. ../.. ../../.. ; do
11     if test -d "$i/MITgcm/pkg" ; then
12     pkg_dir="$i/MITgcm/pkg"
13     break
14     fi
15     done
16     if test "x$pkg_dir" = x ; then
17     echo "ERROR: Cannot find MITgcm pkg dir" 1>&2
18     exit 1
19     fi
20     echo "MITgcm package dir: $pkg_dir"
21     echo "Processing packages:"
22    
23     for pkg ; do
24    
25     echo " $pkg"
26     pr_out="./part6/pt_"$pkg".tex"
27     echo -n "" > $pr_out
28     for i in "$pkg_dir/$pkg/"*.[hF] ; do
29     ./protex -b7 $i >> $pr_out
30     done
31    
32     done
33    
34     echo "Done."
35    

  ViewVC Help
Powered by ViewVC 1.1.22