os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/tools/cvtEOL.tcl
Update contrib.
3 # This file contains a script to parse a Tcl/Tk distribution and
4 # convert the EOL from \n to \r on all text files.
6 # Copyright (c) 1996-1997 by Sun Microsystems, Inc.
8 # SCCS: @(#) cvtEOL.tcl 1.1 97/01/30 11:33:33
12 # Convert files in the distribution to Mac style
15 set distDir [lindex $argv 0]
17 set dirs {unix mac generic win library compat tests unix/dltest \
18 library/demos library/demos/images bitmaps xlib xlib/X11 .}
19 set files {*.c *.y *.h *.r *.tcl *.test *.rc *.bc *.vc *.bmp *.html \
20 *.in *.notes *.terms all defs \
21 README ToDo changes tclIndex configure install-sh mkLinks \
22 square widget rmt ixset hello browse rolodex tcolor timer}
25 if [catch {cd $distDir/$x}] continue
26 puts "Working on $x..."
27 foreach y [eval glob $files] {
30 exec tr \012 \015 < $y.tmp > $y