projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend z_External to handle all extended services
[yaz-moved-to-github.git]
/
src
/
charconv.tcl
diff --git
a/src/charconv.tcl
b/src/charconv.tcl
old mode 100755
(executable)
new mode 100644
(file)
index
3086d26
..
f09b82e
--- a/
src/charconv.tcl
+++ b/
src/charconv.tcl
@@
-1,5
+1,4
@@
#!/usr/bin/tclsh
#!/usr/bin/tclsh
-# $Id: charconv.tcl,v 1.21 2008-01-06 13:02:48 adam Exp $
proc usage {} {
puts {charconv.tcl: [-p prefix] [-s split] [-o ofile] file ... }
proc usage {} {
puts {charconv.tcl: [-p prefix] [-s split] [-o ofile] file ... }
@@
-415,7
+414,7
@@
if {![info exists ifiles]} {
usage
}
usage
}
-set ofilehandle [open $ofile w]
+set ofilehandle [open ${ofile}.tmp w]
preamble_trie $ofilehandle $ifiles $ofile
foreach ifile $ifiles {
preamble_trie $ofilehandle $ifiles $ofile
foreach ifile $ifiles {
@@
-423,4
+422,6
@@
foreach ifile $ifiles {
}
close $ofilehandle
}
close $ofilehandle
+file rename -force ${ofile}.tmp ${ofile}
+