Salome HOME
b8906f34a1fb129acab83dc533394b278aabaf87
[modules/hexablock.git] / doc / test_doc / update_tests.sh
1 #!/bin/sh
2 # Comm : Update python procedures
3
4 start=`dirname $0`
5 target=`cd $start/../../src/TEST_PY/documentation ; pwd`
6 start=`cd $start ; pwd`
7
8 cd $start
9 for rep in *
10     do
11     if ( [ -d $start/$rep ] ) then
12        mkdir -p $target/$rep
13        for fic in $rep/*.py 
14            do
15            if ( [ ! -f  $target/$fic ] ) then
16                  echo " ____________________________ Add File : $fic"
17               cp  $fic  $target/$rep/
18            else
19               diff=`diff -q $fic $target/$rep/`
20               if ( [ "$diff" ] ) then
21                  echo " ---------------------------- Update   : $fic"
22                  cp  $fic  $target/$rep/
23               else
24                  echo " . . . . . . . . . . . Identical files : $fic"
25               fi
26            fi
27            done
28        fi
29     done
30