File: src2unix.sh

package info (click to toggle)
pilrc 2.8p7-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,176 kB
  • ctags: 2,586
  • sloc: ansic: 13,839; sh: 343; makefile: 90
file content (13 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

stripcr_inplace ()
{
    cat $1 | tr -d '\r' > $1.unx_
    cat $1.unx_ > $1
    rm $1.unx_
}

for file in *.c *.h *.spec *.dsp doc/*.html; do
    stripcr_inplace $file
done;