| 74 | |
| 75 | pre-activate { |
| 76 | # previous packaging installed files outside of destroot. |
| 77 | foreach file { barchart beep bgexec bitmap BLT bltdebug busy container cutbuffer dragdrop \ |
| 78 | eps graph hierbox hiertable htext spline stripchart table tabset tile tree treeview \ |
| 79 | vector watch winop } { |
| 80 | set filepath ${prefix}/mann/${file}.n |
| 81 | if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} { |
| 82 | if {[catch {delete ${filepath}}]} { |
| 83 | ui_warn "Cannot delete ${filepath}; please remove it manually" |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | foreach file { Blt_Tree Blt_TreeCreate Blt_TreeCreateNode Blt_TreeDeleteNode Blt_TreeExists \ |
| 88 | Blt_TreeGetNode Blt_TreeGetToken Blt_TreeName Blt_TreeNodeId Blt_TreeReleaseToken } { |
| 89 | set filepath ${prefix}/man3/${file}.3 |
| 90 | if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} { |
| 91 | if {[catch {delete ${filepath}}]} { |
| 92 | ui_warn "Cannot delete ${filepath}; please remove it manually" |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | foreach file { bltCanvEps.pro bltGraph.pro dnd.tcl dragdrop.tcl graph.tcl hierbox.tcl pkgIndex.tcl \ |
| 97 | tabnotebook.tcl tabset.tcl tclIndex treeview.tcl treeview.xbm treeview_m.xbm } { |
| 98 | set filepath ${prefix}/lib/blt2.4/${file} |
| 99 | if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} { |
| 100 | if {[catch {delete ${filepath}}]} { |
| 101 | ui_warn "Cannot delete ${filepath}; please remove it manually" |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | foreach file { dd-color.tcl dd-file.tcl dd-number.tcl dd-text.tcl tclIndex } { |
| 106 | set filepath ${prefix}/lib/blt2.4/dd_protocols/${file} |
| 107 | if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} { |
| 108 | if {[catch {delete ${filepath}}]} { |
| 109 | ui_warn "Cannot delete ${filepath}; please remove it manually" |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |