10 |
|
|
11 |
\rm -f $SRCDIR |
\rm -f $SRCDIR |
12 |
|
|
|
# A simple example |
|
|
#mkdir -p $SRCDIR |
|
|
#cd $SRCDIR |
|
|
#cp -pr ${CURDIR}/model . |
|
|
#cp -pr ${CURDIR}/pkg . |
|
|
#cp -pr ${CURDIR}/callTree.F . |
|
|
#cp -pr ${CURDIR}/callTree.header . |
|
|
|
|
13 |
# Applying it to the whole code ( first -d will only work on local 18.24.3 system ) |
# Applying it to the whole code ( first -d will only work on local 18.24.3 system ) |
14 |
#eh3 Replace CVS checkout with a soft-link |
#eh3 Replace CVS checkout with a soft-link |
15 |
#eh3 cvs -d /u/gcmpack co -d $SRCDIR -P -r $1 MITgcm > checkout.log |
#eh3 cvs -d /u/gcmpack co -d $SRCDIR -P -r $1 MITgcm > checkout.log |
19 |
echo "ERROR: please get a copy of the MITgcm code and locate it at:" |
echo "ERROR: please get a copy of the MITgcm code and locate it at:" |
20 |
echo " "`pwd`"../../../../../MITgcm" |
echo " "`pwd`"../../../../../MITgcm" |
21 |
endif |
endif |
|
#eh3 |
|
22 |
cp -fpr callTree.F $SRCDIR |
cp -fpr callTree.F $SRCDIR |
23 |
cp -fpr callTree.header $SRCDIR |
cp -fpr callTree.header $SRCDIR |
24 |
cd $SRCDIR |
cd $SRCDIR |
25 |
|
|
26 |
set fl = `/usr/bin/find . -name '*.F'` |
set fl = `/usr/bin/find pkg eesupp model verification -name '*.F'` |
27 |
set hl = `/usr/bin/find . -name '*.h'` |
set hl = `/usr/bin/find pkg eesupp model verification -name '*.h'` |
28 |
|
|
29 |
# Extract definition information |
# Extract definition information |
30 |
### echo "o Extracting definition information" |
echo "o Extracting definition information" |
31 |
### ( cd ${CURDIR}/../DefinitionParser; make ) |
( cd ${CURDIR}/../DefinitionParser; make ) |
32 |
### cat $fl $hl | ${CURDIR}/../DefinitionParser/a.out > thedefs |
cat $fl $hl | ${CURDIR}/../DefinitionParser/a.out > thedefs |
33 |
|
|
34 |
# Generate hyperlinked code and browser files. |
# Generate hyperlinked code and browser files. |
35 |
echo "o Generating hyperlinked code (this takes a few minutes)" |
echo "o Generating hyperlinked code (this takes a few minutes)" |
36 |
( cd ${CURDIR}/../F90Mapper; make ) |
( cd ${CURDIR}/../F90Mapper; make ) |
37 |
${CURDIR}/../F90Mapper/f90mapper -d thedefs $fl $hl >& mapper.log |
${CURDIR}/../F90Mapper/f90mapper -d thedefs $fl $hl >& mapper.log |
38 |
|
|
|
#cnh debugging |
|
|
#cnh exit |
|
|
|
|
39 |
# Make the calling tree hyperlinked |
# Make the calling tree hyperlinked |
40 |
# callTree.F was hand-extracted from model/src/the_model_main.F |
# callTree.F was hand-extracted from model/src/the_model_main.F |
41 |
echo "o Generating hyperlinked call tree" |
echo "o Generating hyperlinked call tree" |
55 |
echo "o Making buildweb sub-directory entries for vdb/" |
echo "o Making buildweb sub-directory entries for vdb/" |
56 |
mv vdb buildweb/vdb |
mv vdb buildweb/vdb |
57 |
|
|
58 |
|
#eh3 Create a "byname" directory containing soft-links that tie the symbol |
59 |
|
#eh3 names to the short-URL occurance tables: |
60 |
|
#eh3 makeByname.pl < |
61 |
|
( cd buildweb ; ${CURDIR}/create_name_links ) |
62 |
|
|
63 |
# Tar up buildweb part |
# Tar up buildweb part |
64 |
( cd buildweb ; rm vdb/tmp1; rm vdb/tmp2; tar -czvf ../web.tgz . >& /dev/null ) |
( cd buildweb ; rm vdb/tmp1; rm vdb/tmp2; tar -czvf ../web.tgz . >& /dev/null ) |