Changeset 6 for trunk/tcl/install
- Timestamp:
- Mar 23, 2005, 8:19:29 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tcl/install
r1 r6 40 40 set targetdir [file join $dir $package$version] 41 41 42 mkindex scripts43 44 42 if {![file exists $targetdir]} { 45 43 puts "making directory $targetdir..." … … 47 45 } 48 46 49 foreach file [find .] { 47 set origdir [pwd] 48 foreach context {. ../gui} { 49 cd $context 50 51 foreach file [find .] { 52 set target [file join $targetdir $file] 53 if {[file isdirectory $file]} { 54 puts "making directory $target..." 55 catch {file mkdir $target} 56 file attributes $target -permissions ugo+rx 57 } else { 58 puts "installing $target..." 59 file copy -force $file $target 60 file attributes $target -permissions ugo+r 61 } 62 } 63 } 64 65 cd .. 66 catch {file mkdir [file join $targetdir lib]} 67 foreach file [find ./lib] { 50 68 set target [file join $targetdir $file] 51 69 if {[file isdirectory $file]} { … … 60 78 } 61 79 80 cd $origdir 81 62 82 set fid [open [file join $targetdir pkgIndex.tcl] w] 63 83 puts $fid "# Tcl package index file" … … 69 89 close $fid 70 90 91 mkindex [file join $targetdir scripts] 92 71 93 puts "== $package-$version INSTALLED"
Note: See TracChangeset
for help on using the changeset viewer.