File: unix2dos.sh

package info (click to toggle)
timidity 2.14.0-8.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,364 kB
  • sloc: ansic: 168,735; sh: 3,730; makefile: 1,405; tcl: 1,048; perl: 285; ruby: 126
file content (16 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
bar="AUTHORS Makefile.am COPYING Makefile.in NEWS interface.h.in ChangeLog 
    README common.makefile.in ChangeLog.1  README.ja config.h.in ChangeLog.2 
    TODO INSTALL TiMidity-uj.ad configure INSTALL.ja TiMidity.ad 
    configure.in "
bar="$bar `ls libarc/*|grep libarc/` `ls libunimod/*|grep libunimod/`  `ls utils/*|grep utils/`
  `ls timidity/*|grep timidity/` `ls windrv/*|grep windrv/` `ls interface/*|grep interface/`
  `ls doc/* doc/*/* doc/*/*/*|grep doc` "
 
 bar2=`echo $bar|perl -pe 's/(\s)(\S*\:)/$1/g' -|perl -pe 's/(\s)(\S*CVS\S*)/$1/g' -`

for foo in $bar2  ; do
	echo $foo
	cat $foo| perl -pe 's/\n$/\r\n/g' - | perl -pe 's/\r\r\n$/\r\n/g' - >$foo.tmp
	mv $foo.tmp $foo
done