/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/RefTrans/doDiff.bash
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/RefTrans/doDiff.bash

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


Revision 1.2 - (hide annotations) (download)
Tue Nov 7 19:15:40 2006 UTC (19 years, 9 months ago) by utke
Branch: MAIN
Changes since 1.1: +3 -3 lines
wrong directory

1 utke 1.1 for i in "ad_input_code_sf.f" "ad_input_code_sf.w2f.f" "ad_input_code_sf.w2f.canon.f" "ad_input_code_sf.w2f.canon.xaif" "ad_input_code_sf.w2f.canon.xb.xaif" "ad_input_code_sf.w2f.canon.xb.x2w.w2f.f" "ad_input_code_sf.w2f.canon.xb.x2w.w2f.rs.f" "ad_input_code_sf.w2f.canon.xb.x2w.w2f.rs.pp.f" "ad_input_code.w2f.canon.xb.x2w.w2f.rs.pp.f" "m.out"
2     do
3     echo "$i old reference (<) vs new file (>)"
4     echo "------------------------------------------------------------------------------"
5 utke 1.2 diff -I "file translated from " $i ../../../../../MITgcm/verification/OpenAD/build_shallow_openad2/$i
6     hasDiff=$(diff -I "file translated from " $i ../../../../../MITgcm/verification/OpenAD/build_shallow_openad2/$i)
7 utke 1.1 if [ "$hasDiff" != "" ]
8     then
9     echo "update refernce for $i? [y]/n "
10     read answer
11     if [ "$answer" == "n" ]
12     then
13     echo "not updated"
14     else
15     echo "copying"
16 utke 1.2 cp ../../../../../MITgcm/verification/OpenAD/build_shallow_openad2/$i $i
17 utke 1.1 fi
18     fi
19     done

  ViewVC Help
Powered by ViewVC 1.1.22