File: src-normal

package info (click to toggle)
espresso 6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 311,040 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,502; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
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