File: mingwtoc99

package info (click to toggle)
code-saturne 4.3.3%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 77,992 kB
  • sloc: ansic: 281,257; f90: 122,305; python: 56,490; makefile: 3,915; xml: 3,285; cpp: 3,183; sh: 1,139; lex: 176; yacc: 101; sed: 16
file content (30 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

PREFIX=`dirname $0`
PREFIX="$PREFIX/../.."

RMBDIR=/tmp/tmp_rmb

mkdir -p $RMBDIR || exit 1

cd $PREFIX

for file in src/*/*.[ch] \
            po/*.po \
            gui/*/*.py bin/*.py bin/*.in bin/runcase* \
            libple/*/*.[ch] preprocessor/*/*.[ch] \
            salome/fsi_coupling/libmilieu/*.[ch] \
            salome/fsi_coupling/src/*/*.[ch]xx
do
  tmpfile=`basename $file`
  sed -e 's/\%\([0-9]*\)I64u/\%\1llu/g' -e 's/\%\([0-9]*\)I64d/\%\1lld/g' $file > $RMBDIR/$tmpfile
  diff $file $RMBDIR/$tmpfile > /dev/null 2>&1
  if [ $? = 1 ]
  then
    echo $file
    mv $RMBDIR/$tmpfile $file
  fi
done

\rm -rf $RMBDIR