Overview
| Artifact ID: | 2c4679f11e28861996f9e735e0bfa03c69174d30 |
|---|---|
| Ticket: | 427644ffffffffffffffffffffffffffffffffff |
| Date: | 2001-05-28 02:25:47 |
| User: | davygrvy |
| Artifact Attached: | d9e4aec366ec6423b08d04e7a272847b1bdfcff5 |
| Filename: | noboom_hcw.txt |
| Description: | a file translation idea |
Content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35Index: makefile.vc =================================================================== RCS file: /cvsroot/tcl/tcl/win/makefile.vc,v retrieving revision 1.60 diff -c -r1.60 makefile.vc *** makefile.vc 2001/01/31 22:27:53 1.60 --- makefile.vc 2001/05/27 19:17:41 *************** *** 455,460 **** --- 455,479 ---- $(TCLRTF): $(MAN2TCL).exe $(TCLSH) cd $(TCLTOOLS) + ..\win\$(TCLSH) @<< + file rename $(TCLHPJ) $(TCLHPJ).o + set fhnd [open $(TCLHPJ).o r] + set newfhnd [open $(TCLHPJ) w] + fconfigure $$newfhnd -translation {crlf} + seek $$fhnd 0 end + set theEnd [tell $$fhnd] + seek $$fhnd 0 start + fconfigure $$fhnd -translation binary -buffersize $$theEnd + set rawFile [read $$fhnd $$theEnd] + close $$fhnd + regsub -all {(\r)|(\r){1,2}(\n)} $$rawFile "\n" rawFile + set lineList [split $$rawFile \n] + foreach line $$lineList { + puts $$newfhnd $$line + } + close $$newfhnd + file delete $(TCLHPJ).o + << ..\win\$(TCLSH) $(MAN2HELP) $(NAMEPREFIX) $(VERSION) $(ROOT)/doc ../../tk$(DOTVERSION)/doc #