Hex Artifact Content
Not logged in

Artifact a4908f45281d0e131bbd221fb3284af77b859f53:

File tools/lib/pkgIndex.tcl part of check-in [c172959c32] - Moved the import control code into its own package. The application has been reduced to command line processing and handing over to the new package. by aku on 2007-09-08 06:33:23.

0000: 69 66 20 7b 21 5b 70 61 63 6b 61 67 65 20 76 73  if {![package vs
0010: 61 74 69 73 66 69 65 73 20 5b 70 61 63 6b 61 67  atisfies [packag
0020: 65 20 72 65 71 75 69 72 65 20 54 63 6c 5d 20 38  e require Tcl] 8
0030: 2e 34 5d 7d 20 72 65 74 75 72 6e 0a 70 61 63 6b  .4]} return.pack
0040: 61 67 65 20 69 66 6e 65 65 64 65 64 20 72 63 73  age ifneeded rcs
0050: 70 61 72 73 65 72 20 31 2e 30 20 5b 6c 69 73 74  parser 1.0 [list
0060: 20 73 6f 75 72 63 65 20 5b 66 69 6c 65 20 6a 6f   source [file jo
0070: 69 6e 20 24 64 69 72 20 72 63 73 70 61 72 73 65  in $dir rcsparse
0080: 72 2e 74 63 6c 5d 5d 0a 70 61 63 6b 61 67 65 20  r.tcl]].package 
0090: 69 66 6e 65 65 64 65 64 20 63 76 73 20 20 20 20  ifneeded cvs    
00a0: 20 20 20 31 2e 30 20 5b 6c 69 73 74 20 73 6f 75     1.0 [list sou
00b0: 72 63 65 20 5b 66 69 6c 65 20 6a 6f 69 6e 20 24  rce [file join $
00c0: 64 69 72 20 63 76 73 2e 74 63 6c 5d 5d 0a 70 61  dir cvs.tcl]].pa
00d0: 63 6b 61 67 65 20 69 66 6e 65 65 64 65 64 20 66  ckage ifneeded f
00e0: 6f 73 73 69 6c 20 20 20 20 31 2e 30 20 5b 6c 69  ossil    1.0 [li
00f0: 73 74 20 73 6f 75 72 63 65 20 5b 66 69 6c 65 20  st source [file 
0100: 6a 6f 69 6e 20 24 64 69 72 20 66 6f 73 73 69 6c  join $dir fossil
0110: 2e 74 63 6c 5d 5d 0a 70 61 63 6b 61 67 65 20 69  .tcl]].package i
0120: 66 6e 65 65 64 65 64 20 74 6f 6f 6c 73 3a 3a 6c  fneeded tools::l
0130: 6f 67 20 20 31 2e 30 20 5b 6c 69 73 74 20 73 6f  og  1.0 [list so
0140: 75 72 63 65 20 5b 66 69 6c 65 20 6a 6f 69 6e 20  urce [file join 
0150: 24 64 69 72 20 6c 6f 67 2e 74 63 6c 5d 5d 0a 70  $dir log.tcl]].p
0160: 61 63 6b 61 67 65 20 69 66 6e 65 65 64 65 64 20  ackage ifneeded 
0170: 69 6d 70 6f 72 74 3a 3a 63 76 73 20 31 2e 30 20  import::cvs 1.0 
0180: 5b 6c 69 73 74 20 73 6f 75 72 63 65 20 5b 66 69  [list source [fi
0190: 6c 65 20 6a 6f 69 6e 20 24 64 69 72 20 69 6d 70  le join $dir imp
01a0: 6f 72 74 63 76 73 2e 74 63 6c 5d 5d 0a           ortcvs.tcl]].