File: src-normal

package info (click to toggle)
espresso 5.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 146,004 kB
  • ctags: 17,245
  • sloc: f90: 253,041; sh: 51,271; ansic: 27,494; tcl: 15,570; xml: 14,508; makefile: 2,958; perl: 2,035; fortran: 1,924; python: 337; cpp: 200; awk: 57
file content (17 lines) | stat: -rwxr-xr-x 312 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

TOOLDIR=$(dirname $0)

if [[ $# == 0 ]] ; then
    fnames=$(for suffix in f90 ; do find -type f -name "*.$suffix" ; done)
else
    fnames=$*
fi

for f in $fnames ; do
    mv $f $f.orig
    cat $f.orig |\
    python $TOOLDIR/src-normal.py |\
    cat > $f
    diff -q $f $f.orig && mv $f.orig $f
done