Changeset 4734 for trunk/gui/apps/rpdiff
- Timestamp:
- Nov 15, 2014, 2:11:55 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/1.3 merged: 4732
- Property svn:mergeinfo changed
-
trunk/gui/apps/rpdiff
r3177 r4734 24 24 exec tclsh "$0" ${1+"$@"} 25 25 # tclsh executes the rest... 26 27 26 package require Rappture 28 27 … … 36 35 proc diff {path lib1 lib2} { 37 36 set knowntypes {boolean choice cloud curve field group histogram image integer loader log mesh note number periodicelement phase sequence string structure table unirect2d} 38 39 37 set type1 [$lib1 element -as type $path] 40 38 set type2 [$lib2 element -as type $path] … … 490 488 } 491 489 } 490 loader { 491 } 492 492 default { 493 error "don't know how to compare type \"$type\""493 puts stderr "ignoring \"$type1\" for \"$path\"" 494 494 } 495 495 } … … 557 557 558 558 # ====================================================================== 559 if {$argc != 2} { 559 560 if {$argc < 2} { 560 561 puts stderr "USAGE: rpdiff file1.xml file2.xml" 561 562 exit 9 … … 563 564 set lib1 [Rappture::library [lindex $argv 0]] 564 565 set lib2 [Rappture::library [lindex $argv 1]] 566 set path "output" 567 if { $argc > 2 } { 568 set arg [lindex $argv 2] 569 if { $arg == "-path" && $argc == 4 } { 570 set path [lindex $argv 3] 571 } 572 } 565 573 566 574 # compute the differences 567 set diffs [diff output$lib1 $lib2]575 set diffs [diff $path $lib1 $lib2] 568 576 569 577 if {[llength $diffs] == 0} {
Note: See TracChangeset
for help on using the changeset viewer.