/[MITgcm]/MITgcm_contrib/PRM/build_scripts/pkg_tool/clean_pkg.sh
ViewVC logotype

Contents of /MITgcm_contrib/PRM/build_scripts/pkg_tool/clean_pkg.sh

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


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Tue Apr 5 13:18:55 2005 UTC (20 years, 3 months ago) by cnh
Branch: MAIN, baseline
CVS Tags: checkpoint63m, checkpoint63n, initial, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: application/x-sh
Checking in initial PRM setup

1 #!/bin/sh
2 #
3 # Shell script to controls building several module files and
4 # then moving them to a common "package" directory.
5 # This script uses the build_mod.sh script to build the
6 # individual module source files.
7 #
8 # Usage:
9 # build_pkg.sh pkg_prefix
10 #
11 # where
12 # pkg_prefix is a character string that is used to prefix
13 # the package.
14 #
15 fc=`which $0`
16 sroot=${fc%/*}
17 . ${sroot}/build_pkg_funcs.sh
18 clean_mod=${sroot}/../build_mod/clean_mod.sh
19 rootdir=`pwd`
20
21 if [ x"$#" != "x1" ]; then
22 write_usage
23 fi
24
25 echo "# Building package \"$1\""
26
27 rm $1.pkg/*.F90
28 MOD_DIR_LIST=${1}.dirlist
29 {
30 while read line ; do
31 is_comment_line $line; rc=$?
32 if [ "x$rc" == "x0" ]; then
33 fname=$line
34 echo "Moving to directory \"$fname\""
35 cd $fname
36 ${clean_mod}
37 fi
38 done
39 } < ${MOD_DIR_LIST}
40 cd $rootdir

  ViewVC Help
Powered by ViewVC 1.1.22