File:  [local] / rpl / lapack / upgrade_lapack
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Jun 17 11:03:37 2017 UTC (7 years, 4 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_1_31, rpl-4_1_30, rpl-4_1_29, rpl-4_1_28, rpl-4_1_27, rpl-4_1_26, HEAD
Cohérence.

    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>