1: #/bin/bash
2:
3: if [ -z $1 ]; then
4: echo Usage: $0 "<new lapack release directory>"
5: exit 0
6: fi
7:
8: echo $(date) > $0.log
9:
10: for j in lapack blas
11: do
12: for i in $(find $j -name "*.f")
13: do
14: echo Upgrading $i
15: NAME=$(basename $i)
16: NB=$(find $1 -name $NAME | wc -l)
17: if [ $NB -eq 1 ]; then
18: mv -f $(find $1 -name $NAME) $i
19: else
20: echo $(find $1 -name $NAME) " -> " $i >> $0.log
21: fi
22: done
23: done
24:
25: exit 0
CVSweb interface <joel.bertrand@systella.fr>