/[MITgcm]/manual/run_protex
ViewVC logotype

Contents of /manual/run_protex

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


Revision 1.2 - (show annotations) (download)
Fri Apr 2 14:55:56 2004 UTC (16 years ago) by edhill
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
 o remove protex

1 #! /usr/bin/env bash
2 #
3 # $Header: /u/gcmpack/manual/run_protex,v 1.1 2004/02/04 04:49:19 edhill Exp $
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."

  ViewVC Help
Powered by ViewVC 1.1.22