<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.na-mic.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3APieper%3Adiffer</id>
	<title>User:Pieper:differ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.na-mic.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3APieper%3Adiffer"/>
	<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=User:Pieper:differ&amp;action=history"/>
	<updated>2026-04-13T05:42:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.na-mic.org/w/index.php?title=User:Pieper:differ&amp;diff=35115&amp;oldid=prev</id>
		<title>Pieper: New page: &lt;pre&gt; #!/bin/sh # the next line restarts using tclsh \     exec wish &quot;$0&quot; &quot;$@&quot;  wm withdraw .  set ::tkdiff &quot;c:/Program Files (x86)/TkDiff/tkdiff.exe&quot;  proc diffcopy {fileName} {   puts &quot;c...</title>
		<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=User:Pieper:differ&amp;diff=35115&amp;oldid=prev"/>
		<updated>2009-02-03T17:53:35Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;pre&amp;gt; #!/bin/sh # the next line restarts using tclsh \     exec wish &amp;quot;$0&amp;quot; &amp;quot;$@&amp;quot;  wm withdraw .  set ::tkdiff &amp;quot;c:/Program Files (x86)/TkDiff/tkdiff.exe&amp;quot;  proc diffcopy {fileName} {   puts &amp;quot;c...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# the next line restarts using tclsh \&lt;br /&gt;
    exec wish &amp;quot;$0&amp;quot; &amp;quot;$@&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wm withdraw .&lt;br /&gt;
&lt;br /&gt;
set ::tkdiff &amp;quot;c:/Program Files (x86)/TkDiff/tkdiff.exe&amp;quot;&lt;br /&gt;
&lt;br /&gt;
proc diffcopy {fileName} {&lt;br /&gt;
  puts &amp;quot;checking $fileName&amp;quot;&lt;br /&gt;
  set dest $fileName &lt;br /&gt;
  set src c:/pieper/bwh/slicer3/EventBroker/Slicer3/$fileName&lt;br /&gt;
&lt;br /&gt;
  if { [file isdirectory $src] } {&lt;br /&gt;
    puts &amp;quot;skipping directory $fileName&amp;quot;&lt;br /&gt;
    return&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  if { ![file exists $src] } {&lt;br /&gt;
    puts &amp;quot;no source file $fileName&amp;quot;&lt;br /&gt;
    return&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  set ret [catch [list exec diff $src $dest] res]&lt;br /&gt;
  if { $res == &amp;quot;&amp;quot; } {&lt;br /&gt;
    puts &amp;quot;no changes in $fileName&amp;quot;&lt;br /&gt;
    return&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  set ret [catch [list exec $::tkdiff $src $dest] res]&lt;br /&gt;
&lt;br /&gt;
  set resp [tk_messageBox -message &amp;quot;copy \n\t$src \nto\n\t$dest\n?&amp;quot; -type yesno]&lt;br /&gt;
&lt;br /&gt;
  if { $resp == &amp;quot;yes&amp;quot; } {&lt;br /&gt;
    puts &amp;quot;copying $src to $dest&amp;quot;&lt;br /&gt;
    file copy -force $src $dest&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
foreach fileName $argv {&lt;br /&gt;
  diffcopy $fileName&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pieper</name></author>
		
	</entry>
</feed>