Hex Artifact Content

Artifact db88e97a0aa92334f64fa36e924e6eab3092cf5d:


0000: 54 68 69 73 20 77 69 6c 6c 20 62 75 69 6c 64 20  This will build 
0010: 61 20 54 63 6c 6b 69 74 20 6e 61 6d 65 64 20 22  a Tclkit named "
0020: 74 63 6c 6b 69 74 2d 3c 76 65 72 73 69 6f 6e 3e  tclkit-<version>
0030: 22 2e 0a 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  "...------------
0040: 2d 2d 2d 0a 55 73 69 6e 67 20 54 68 69 73 20 54  ---.Using This T
0050: 6f 6f 6c 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ool.------------
0060: 2d 2d 2d 0a 55 73 61 67 65 3a 0a 09 6b 69 74 63  ---.Usage:..kitc
0070: 72 65 61 74 6f 72 20 5b 7b 3c 76 65 72 73 69 6f  reator [{<versio
0080: 6e 3e 20 7c 20 63 76 73 5f 3c 63 76 73 54 61 67  n> | cvs_<cvsTag
0090: 3e 20 7c 20 63 6c 65 61 6e 20 7c 20 64 69 73 74  > | clean | dist
00a0: 63 6c 65 61 6e 7d 5d 0a 09 20 20 20 20 20 20 20  clean}]..       
00b0: 20 20 20 20 5b 3c 63 6f 6e 66 69 67 75 72 65 5f      [<configure_
00c0: 6f 70 74 69 6f 6e 73 2e 2e 2e 3e 5d 0a 0a 09 57  options...>]...W
00d0: 68 65 72 65 3a 0a 09 09 76 65 72 73 69 6f 6e 20  here:...version 
00e0: 20 20 20 20 20 20 20 20 20 20 20 69 73 20 61 20             is a 
00f0: 54 63 6c 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62  Tcl version numb
0100: 65 72 20 28 65 2e 67 2e 2c 20 38 2e 34 2e 31 39  er (e.g., 8.4.19
0110: 29 0a 09 09 63 76 73 54 61 67 20 20 20 20 20 20  )...cvsTag      
0120: 20 20 20 20 20 20 20 69 73 20 61 20 43 56 53 20         is a CVS 
0130: 72 65 6c 65 61 73 65 20 74 61 67 20 28 65 2e 67  release tag (e.g
0140: 2e 2c 20 48 45 41 44 29 0a 09 09 63 6f 6e 66 69  ., HEAD)...confi
0150: 67 75 72 65 5f 6f 70 74 69 6f 6e 73 20 20 61 72  gure_options  ar
0160: 65 20 6f 70 74 69 6f 6e 73 20 74 6f 20 70 61 73  e options to pas
0170: 73 20 74 6f 20 73 75 62 6f 72 64 69 6e 61 74 65  s to subordinate
0180: 20 63 6f 6e 66 69 67 75 72 65 0a 09 09 20 20 20   configure...   
0190: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
01a0: 73 63 72 69 70 74 73 20 28 65 2e 67 2e 2c 20 2d  scripts (e.g., -
01b0: 2d 65 6e 61 62 6c 65 2d 36 34 62 69 74 29 0a 0a  -enable-64bit)..
01c0: 09 44 65 66 61 75 6c 74 20 69 73 20 74 6f 20 63  .Default is to c
01d0: 72 65 61 74 65 20 61 20 54 63 6c 6b 69 74 20 66  reate a Tclkit f
01e0: 72 6f 6d 20 54 63 6c 20 76 65 72 73 69 6f 6e 20  rom Tcl version 
01f0: 38 2e 34 2e 31 39 0a 0a 45 78 61 6d 70 6c 65 73  8.4.19..Examples
0200: 3a 0a 09 31 2e 20 43 72 65 61 74 65 20 61 20 54  :..1. Create a T
0210: 63 6c 6b 69 74 3a 0a 09 09 61 2e 20 24 20 2e 2f  clkit:...a. $ ./
0220: 6b 69 74 63 72 65 61 74 6f 72 0a 0a 09 32 2e 20  kitcreator...2. 
0230: 43 72 65 61 74 65 20 61 20 54 63 6c 6b 69 74 20  Create a Tclkit 
0240: 66 6f 72 20 54 63 6c 20 38 2e 35 2e 38 3a 0a 09  for Tcl 8.5.8:..
0250: 09 61 2e 20 24 20 2e 2f 6b 69 74 63 72 65 61 74  .a. $ ./kitcreat
0260: 6f 72 20 38 2e 35 2e 38 0a 0a 09 33 2e 20 43 72  or 8.5.8...3. Cr
0270: 65 61 74 65 20 61 20 54 63 6c 6b 69 74 20 66 6f  eate a Tclkit fo
0280: 72 20 54 63 6c 20 66 72 6f 6d 20 43 56 53 20 48  r Tcl from CVS H
0290: 45 41 44 3a 0a 09 09 61 2e 20 24 20 2e 2f 6b 69  EAD:...a. $ ./ki
02a0: 74 63 72 65 61 74 6f 72 20 63 76 73 5f 48 45 41  tcreator cvs_HEA
02b0: 44 0a 0a 09 34 2e 20 43 6f 6d 70 69 6c 65 20 61  D...4. Compile a
02c0: 20 36 34 2d 62 69 74 20 54 63 6c 6b 69 74 3a 0a   64-bit Tclkit:.
02d0: 09 09 61 2e 20 24 20 2e 2f 6b 69 74 63 72 65 61  ..a. $ ./kitcrea
02e0: 74 6f 72 20 2d 2d 65 6e 61 62 6c 65 2d 36 34 62  tor --enable-64b
02f0: 69 74 0a 0a 09 35 2e 20 43 72 6f 73 73 2d 63 6f  it...5. Cross-co
0300: 6d 70 69 6c 65 20 61 20 54 63 6c 6b 69 74 3a 0a  mpile a Tclkit:.
0310: 09 09 61 2e 20 42 6f 6f 74 73 74 72 61 70 20 28  ..a. Bootstrap (
0320: 6f 70 74 69 6f 6e 61 6c 2c 20 79 6f 75 20 63 61  optional, you ca
0330: 6e 20 75 73 65 20 61 6e 20 65 78 69 73 74 69 6e  n use an existin
0340: 67 20 54 63 6c 6b 69 74 29 3a 0a 09 09 09 69 2e  g Tclkit):....i.
0350: 20 20 20 24 20 2e 2f 6b 69 74 63 72 65 61 74 6f     $ ./kitcreato
0360: 72 0a 09 09 09 69 69 2e 20 20 24 20 6d 76 20 74  r....ii.  $ mv t
0370: 63 6c 6b 69 74 2d 38 2e 34 2e 31 39 20 74 63 6c  clkit-8.4.19 tcl
0380: 6b 69 74 2d 6c 6f 63 61 6c 0a 09 09 09 69 69 69  kit-local....iii
0390: 2e 20 24 20 54 43 4c 4b 49 54 3d 22 60 70 77 64  . $ TCLKIT="`pwd
03a0: 60 2f 74 63 6c 6b 69 74 2d 6c 6f 63 61 6c 22 0a  `/tclkit-local".
03b0: 09 09 09 69 76 2e 20 20 24 20 65 78 70 6f 72 74  ...iv.  $ export
03c0: 20 54 43 4c 4b 49 54 0a 09 09 62 2e 20 43 72 6f   TCLKIT...b. Cro
03d0: 73 73 2d 63 6f 6d 70 69 6c 65 3a 0a 09 09 09 69  ss-compile:....i
03e0: 2e 20 20 20 24 20 43 43 3d 6d 69 70 73 65 6c 2d  .   $ CC=mipsel-
03f0: 6c 69 6e 75 78 2d 75 63 6c 69 62 63 2d 67 63 63  linux-uclibc-gcc
0400: 0a 09 09 09 69 69 2e 20 20 24 20 43 58 58 3d 66  ....ii.  $ CXX=f
0410: 61 6c 73 65 0a 09 09 09 69 69 69 2e 20 24 20 41  alse....iii. $ A
0420: 52 3d 6d 69 70 73 65 6c 2d 6c 69 6e 75 78 2d 75  R=mipsel-linux-u
0430: 63 6c 69 62 63 2d 61 72 0a 09 09 09 69 76 2e 20  clibc-ar....iv. 
0440: 20 24 20 52 41 4e 4c 49 42 3d 6d 69 70 73 65 6c   $ RANLIB=mipsel
0450: 2d 6c 69 6e 75 78 2d 75 63 6c 69 62 63 2d 72 61  -linux-uclibc-ra
0460: 6e 6c 69 62 0a 09 09 09 76 2e 20 20 20 24 20 65  nlib....v.   $ e
0470: 78 70 6f 72 74 20 43 43 20 43 58 58 20 41 52 20  xport CC CXX AR 
0480: 52 41 4e 4c 49 42 0a 09 09 76 2e 20 20 20 24 20  RANLIB...v.   $ 
0490: 2e 2f 6b 69 74 63 72 65 61 74 6f 72 20 2d 2d 68  ./kitcreator --h
04a0: 6f 73 74 3d 6d 69 70 73 65 6c 2d 6c 69 6e 75 78  ost=mipsel-linux
04b0: 2d 75 63 6c 69 62 63 0a 0a 09 36 2e 20 43 6f 6d  -uclibc...6. Com
04c0: 70 69 6c 65 20 61 20 36 34 2d 62 69 74 20 54 63  pile a 64-bit Tc
04d0: 6c 6b 69 74 20 38 2e 35 2e 38 20 75 73 69 6e 67  lkit 8.5.8 using
04e0: 20 53 75 6e 53 74 75 64 69 6f 20 31 32 2e 31 20   SunStudio 12.1 
04f0: 6f 6e 20 53 6f 6c 61 72 69 73 2f 78 38 36 3a 0a  on Solaris/x86:.
0500: 09 09 61 2e 20 24 20 43 43 3d 27 2f 6f 70 74 2f  ..a. $ CC='/opt/
0510: 73 75 6e 73 74 75 64 69 6f 31 32 2e 31 2f 62 69  sunstudio12.1/bi
0520: 6e 2f 63 63 20 2d 6d 36 34 27 0a 09 09 62 2e 20  n/cc -m64'...b. 
0530: 24 20 43 58 58 3d 27 2f 6f 70 74 2f 73 75 6e 73  $ CXX='/opt/suns
0540: 74 75 64 69 6f 31 32 2e 31 2f 62 69 6e 2f 43 43  tudio12.1/bin/CC
0550: 20 2d 6d 36 34 27 0a 09 09 63 2e 20 24 20 50 41   -m64'...c. $ PA
0560: 54 43 48 3d 27 67 70 61 74 63 68 27 0a 09 09 63  TCH='gpatch'...c
0570: 2e 20 24 20 65 78 70 6f 72 74 20 43 43 20 43 58  . $ export CC CX
0580: 58 20 50 41 54 43 48 0a 09 09 64 2e 20 24 20 2e  X PATCH...d. $ .
0590: 2f 6b 69 74 63 72 65 61 74 6f 72 20 38 2e 35 2e  /kitcreator 8.5.
05a0: 38 20 2d 2d 65 6e 61 62 6c 65 2d 36 34 62 69 74  8 --enable-64bit
05b0: 0a 0a 09 37 2e 20 54 6f 20 63 6c 65 61 6e 20 75  ...7. To clean u
05c0: 70 20 70 6f 73 74 2d 62 75 69 6c 64 3a 0a 09 09  p post-build:...
05d0: 61 2e 20 24 20 2e 2f 6b 69 74 63 72 65 61 74 6f  a. $ ./kitcreato
05e0: 72 20 63 6c 65 61 6e 0a 0a 09 38 2e 20 43 72 65  r clean...8. Cre
05f0: 61 74 65 20 61 20 54 63 6c 6b 69 74 20 77 69 74  ate a Tclkit wit
0600: 68 6f 75 74 20 4d 65 74 61 6b 69 74 34 20 73 75  hout Metakit4 su
0610: 70 70 6f 72 74 20 28 66 61 6c 6c 73 20 62 61 63  pport (falls bac
0620: 6b 20 74 6f 20 5a 69 70 20 66 6f 72 20 73 74 6f  k to Zip for sto
0630: 72 61 67 65 29 3a 0a 09 09 61 2e 20 4b 49 54 43  rage):...a. KITC
0640: 52 45 41 54 4f 52 5f 50 4b 47 53 3d 27 74 6b 20  REATOR_PKGS='tk 
0650: 69 74 63 6c 27 0a 09 09 62 2e 20 65 78 70 6f 72  itcl'...b. expor
0660: 74 20 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47  t KITCREATOR_PKG
0670: 53 0a 09 09 63 2e 20 2e 2f 6b 69 74 63 72 65 61  S...c. ./kitcrea
0680: 74 6f 72 0a 0a 09 39 2e 20 43 72 65 61 74 65 20  tor...9. Create 
0690: 61 20 54 63 6c 6b 69 74 20 77 69 74 68 20 4d 65  a Tclkit with Me
06a0: 74 61 6b 69 74 34 20 73 75 70 70 6f 72 74 2c 20  takit4 support, 
06b0: 62 75 74 20 75 73 69 6e 67 20 5a 69 70 20 66 6f  but using Zip fo
06c0: 72 20 73 74 6f 72 61 67 65 3a 0a 09 09 61 2e 20  r storage:...a. 
06d0: 24 20 2e 2f 6b 69 74 63 72 65 61 74 6f 72 20 2d  $ ./kitcreator -
06e0: 2d 65 6e 61 62 6c 65 2d 6b 69 74 2d 73 74 6f 72  -enable-kit-stor
06f0: 61 67 65 3d 7a 69 70 0a 0a 45 6e 76 69 72 6f 6e  age=zip..Environ
0700: 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 73 3a 0a  ment variables:.
0710: 09 31 2e 20 4d 41 4b 45 0a 09 09 53 70 65 63 69  .1. MAKE...Speci
0720: 66 69 65 73 20 74 68 65 20 74 6f 6f 6c 20 79 6f  fies the tool yo
0730: 75 20 77 69 73 68 20 74 6f 20 62 65 20 63 61 6c  u wish to be cal
0740: 6c 65 64 20 74 6f 20 62 75 69 6c 64 20 74 61 72  led to build tar
0750: 67 65 74 73 0a 09 09 66 72 6f 6d 20 61 20 4d 61  gets...from a Ma
0760: 6b 65 66 69 6c 65 2e 20 20 54 68 69 73 20 73 63  kefile.  This sc
0770: 72 69 70 74 20 69 73 20 67 65 6e 65 72 61 6c 6c  ript is generall
0780: 79 20 6d 6f 72 65 20 77 65 6c 6c 20 74 65 73 74  y more well test
0790: 65 64 0a 09 09 77 69 74 68 20 47 4e 55 20 4d 61  ed...with GNU Ma
07a0: 6b 65 2e 0a 0a 09 32 2e 20 50 41 54 43 48 0a 09  ke....2. PATCH..
07b0: 09 53 70 65 63 69 66 69 65 73 20 74 68 65 20 74  .Specifies the t
07c0: 6f 6f 6c 20 79 6f 75 20 77 69 73 68 20 74 6f 20  ool you wish to 
07d0: 62 65 20 63 61 6c 6c 65 64 20 74 6f 20 61 70 70  be called to app
07e0: 6c 79 20 75 6e 69 66 69 65 64 0a 09 09 64 69 66  ly unified...dif
07f0: 66 20 70 61 74 63 68 65 73 2e 20 20 54 68 69 73  f patches.  This
0800: 20 73 63 72 69 70 74 20 69 73 20 67 65 6e 65 72   script is gener
0810: 61 6c 6c 79 20 6d 6f 72 65 20 77 65 6c 6c 20 74  ally more well t
0820: 65 73 74 65 64 20 77 69 74 68 0a 09 09 47 4e 55  ested with...GNU
0830: 20 50 61 74 63 68 2e 20 0a 0a 09 33 2e 20 54 43   Patch. ...3. TC
0840: 4c 4b 49 54 0a 09 09 53 70 65 63 69 66 79 20 74  LKIT...Specify t
0850: 68 65 20 70 61 74 68 20 74 6f 20 61 20 54 63 6c  he path to a Tcl
0860: 6b 69 74 20 74 68 61 74 20 69 73 20 72 75 6e 6e  kit that is runn
0870: 61 62 6c 65 20 6f 6e 20 74 68 65 20 63 75 72 72  able on the curr
0880: 65 6e 74 0a 09 09 73 79 73 74 65 6d 2e 20 20 54  ent...system.  T
0890: 68 65 20 64 65 66 61 75 6c 74 20 69 73 20 22 74  he default is "t
08a0: 63 6c 6b 69 74 22 2e 20 20 41 20 77 6f 72 6b 69  clkit".  A worki
08b0: 6e 67 20 74 63 6c 6b 69 74 20 69 73 20 72 65 71  ng tclkit is req
08c0: 75 69 72 65 64 0a 09 09 66 6f 72 20 63 72 6f 73  uired...for cros
08d0: 73 2d 63 6f 6d 70 69 6c 69 6e 67 20 54 63 6c 6b  s-compiling Tclk
08e0: 69 74 73 2e 0a 0a 09 34 2e 20 53 54 41 54 49 43  its....4. STATIC
08f0: 54 4b 0a 09 09 53 70 65 63 69 66 79 20 74 68 69  TK...Specify thi
0900: 73 20 61 73 20 22 31 22 20 74 6f 20 73 74 61 74  s as "1" to stat
0910: 69 63 61 6c 6c 79 20 6c 69 6e 6b 20 74 6f 20 54  ically link to T
0920: 6b 2e 20 20 54 68 65 20 64 65 66 61 75 6c 74 0a  k.  The default.
0930: 09 09 61 63 74 69 6f 6e 20 6f 6e 20 6d 6f 73 74  ..action on most
0940: 20 70 6c 61 74 66 6f 72 6d 73 20 69 73 20 74 6f   platforms is to
0950: 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 6c 69 6e   dynamically lin
0960: 6b 20 74 6f 20 54 6b 2e 0a 0a 09 35 2e 20 53 54  k to Tk....5. ST
0970: 52 49 50 0a 09 09 53 70 65 63 69 66 69 65 73 20  RIP...Specifies 
0980: 74 68 65 20 74 6f 6f 6c 20 79 6f 75 20 77 69 73  the tool you wis
0990: 68 20 74 6f 20 62 65 20 63 61 6c 6c 65 64 20 74  h to be called t
09a0: 6f 20 73 74 72 69 70 20 6f 62 6a 65 63 74 20 66  o strip object f
09b0: 69 6c 65 73 2c 0a 09 09 61 72 63 68 69 76 65 73  iles,...archives
09c0: 2c 20 61 6e 64 20 73 68 61 72 65 64 20 6f 62 6a  , and shared obj
09d0: 65 63 74 73 2e 20 20 54 68 65 20 64 65 66 61 75  ects.  The defau
09e0: 6c 74 20 69 73 20 22 73 74 72 69 70 22 2e 20 20  lt is "strip".  
09f0: 59 6f 75 0a 09 09 73 68 6f 75 6c 64 20 70 72 6f  You...should pro
0a00: 62 61 62 6c 79 20 73 65 74 20 74 68 69 73 20 69  bably set this i
0a10: 66 20 79 6f 75 20 61 72 65 20 63 72 6f 73 73 2d  f you are cross-
0a20: 63 6f 6d 70 69 6c 69 6e 67 2e 0a 0a 09 36 2e 20  compiling....6. 
0a30: 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 0a  KITCREATOR_PKGS.
0a40: 09 09 53 70 65 63 69 66 79 20 77 68 69 63 68 20  ..Specify which 
0a50: 6e 6f 6e 2d 72 65 71 75 69 72 65 64 20 70 61 63  non-required pac
0a60: 6b 61 67 65 73 20 74 6f 20 62 75 69 6c 64 2e 20  kages to build. 
0a70: 20 54 68 65 20 64 65 66 61 75 6c 74 20 6c 69 73   The default lis
0a80: 74 0a 09 09 69 73 3a 0a 09 09 09 74 6b 20 69 74  t...is:....tk it
0a90: 63 6c 20 6d 6b 34 74 63 6c 0a 09 09 49 66 20 6d  cl mk4tcl...If m
0aa0: 6b 34 74 63 6c 20 69 73 20 6e 6f 74 20 70 72 65  k4tcl is not pre
0ab0: 73 65 6e 74 20 61 20 5a 69 70 2d 62 61 73 65 64  sent a Zip-based
0ac0: 20 73 74 6f 72 61 67 65 20 6d 65 63 68 61 6e 69   storage mechani
0ad0: 73 6d 20 77 69 6c 6c 20 62 65 0a 09 09 75 73 65  sm will be...use
0ae0: 64 20 69 6e 73 74 65 61 64 2e 0a 0a 09 37 2e 20  d instead....7. 
0af0: 4b 49 54 43 52 45 41 54 4f 52 5f 4d 49 4e 45 4e  KITCREATOR_MINEN
0b00: 43 4f 44 49 4e 47 53 0a 09 09 53 65 74 20 74 68  CODINGS...Set th
0b10: 69 73 20 76 61 72 69 61 62 6c 65 20 74 6f 20 61  is variable to a
0b20: 20 6e 6f 6e 2d 65 6d 70 74 79 20 73 74 72 69 6e   non-empty strin
0b30: 67 20 74 6f 20 67 65 6e 65 72 61 74 65 20 61 20  g to generate a 
0b40: 54 63 6c 6b 69 74 0a 09 09 77 69 74 68 6f 75 74  Tclkit...without
0b50: 20 61 6c 6c 20 65 6e 63 6f 64 69 6e 67 73 2c 20   all encodings, 
0b60: 6f 6e 6c 79 20 69 6e 63 6c 75 64 69 6e 67 20 74  only including t
0b70: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 3a 0a 09 09  he following:...
0b80: 09 61 73 63 69 69 2e 65 6e 63 20 63 70 31 32 35  .ascii.enc cp125
0b90: 32 2e 65 6e 63 20 69 73 6f 38 38 35 39 2d 31 2e  2.enc iso8859-1.
0ba0: 65 6e 63 20 69 73 6f 38 38 35 39 2d 31 35 2e 65  enc iso8859-15.e
0bb0: 6e 63 0a 09 09 09 69 73 6f 38 38 35 39 2d 32 2e  nc....iso8859-2.
0bc0: 65 6e 63 20 6b 6f 69 38 2d 72 2e 65 6e 63 20 6d  enc koi8-r.enc m
0bd0: 61 63 52 6f 6d 61 6e 2e 65 6e 63 0a 0a 09 38 2e  acRoman.enc...8.
0be0: 20 4b 49 54 43 52 45 41 54 4f 52 5f 4d 49 4e 42   KITCREATOR_MINB
0bf0: 55 49 4c 44 0a 09 09 53 65 74 20 74 68 69 73 20  UILD...Set this 
0c00: 76 61 72 69 61 62 6c 65 20 74 6f 20 61 20 6e 6f  variable to a no
0c10: 6e 2d 65 6d 70 74 79 20 73 74 72 69 6e 67 20 74  n-empty string t
0c20: 6f 20 65 78 63 6c 75 64 65 20 75 6e 6e 65 63 65  o exclude unnece
0c30: 73 73 61 72 79 0a 09 09 70 61 63 6b 61 67 65 73  ssary...packages
0c40: 20 66 72 6f 6d 20 54 63 6c 20 62 75 69 6c 64 2e   from Tcl build.
0c50: 20 20 54 68 69 73 20 65 78 63 6c 75 64 65 73 20    This excludes 
0c60: 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 70 61  the following pa
0c70: 63 6b 61 67 65 73 3a 0a 09 09 09 74 63 6c 74 65  ckages:....tclte
0c80: 73 74 0a 0a 4b 69 74 73 68 20 43 6f 6e 66 69 67  st..Kitsh Config
0c90: 75 72 65 20 4f 70 74 69 6f 6e 73 3a 0a 09 31 2e  ure Options:..1.
0ca0: 20 2d 2d 65 6e 61 62 6c 65 2d 6b 69 74 2d 73 74   --enable-kit-st
0cb0: 6f 72 61 67 65 3d 7b 7a 69 70 7c 6d 6b 34 7c 61  orage={zip|mk4|a
0cc0: 75 74 6f 7d 0a 09 09 53 70 65 63 69 66 79 20 77  uto}...Specify w
0cd0: 68 69 63 68 20 74 79 70 65 20 6f 66 20 73 74 6f  hich type of sto
0ce0: 72 61 67 65 20 74 6f 20 75 73 65 20 77 69 74 68  rage to use with
0cf0: 20 74 68 65 20 54 63 6c 6b 69 74 2e 20 20 54 68   the Tclkit.  Th
0d00: 65 0a 09 09 64 65 66 61 75 6c 74 20 69 73 20 74  e...default is t
0d10: 6f 20 61 75 74 6f 2d 64 65 74 65 63 74 2e 20 20  o auto-detect.  
0d20: 41 75 74 6f 2d 64 65 74 65 63 74 69 6f 6e 20 75  Auto-detection u
0d30: 73 65 73 20 4d 6b 34 20 69 66 0a 09 09 61 76 61  ses Mk4 if...ava
0d40: 69 6c 61 62 6c 65 2c 20 6f 74 68 65 72 77 69 73  ilable, otherwis
0d50: 65 20 69 74 20 66 61 6c 6c 73 20 62 61 63 6b 20  e it falls back 
0d60: 74 6f 20 5a 69 70 2e 0a 0a 2d 2d 2d 2d 2d 2d 2d  to Zip...-------
0d70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 4d 65 74  ------------.Met
0d80: 68 6f 64 20 6f 66 20 4f 70 65 72 61 74 69 6f 6e  hod of Operation
0d90: 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .---------------
0da0: 2d 2d 2d 2d 0a 53 75 6d 6d 61 72 79 3a 0a 09 31  ----.Summary:..1
0db0: 2e 20 22 6b 69 74 63 72 65 61 74 6f 72 22 20 63  . "kitcreator" c
0dc0: 61 6c 6c 73 20 2a 2f 62 75 69 6c 64 2e 73 68 0a  alls */build.sh.
0dd0: 09 32 2e 20 2a 2f 62 75 69 6c 64 2e 73 68 20 64  .2. */build.sh d
0de0: 6f 77 6e 6c 6f 61 64 73 20 61 6e 64 20 63 6f 6d  ownloads and com
0df0: 70 69 6c 65 73 20 61 70 70 72 6f 70 72 69 61 74  piles appropriat
0e00: 65 20 73 6f 66 74 77 61 72 65 0a 09 33 2e 20 2a  e software..3. *
0e10: 2f 62 75 69 6c 64 2e 73 68 20 69 6e 73 74 61 6c  /build.sh instal
0e20: 6c 73 20 73 6f 66 74 77 61 72 65 20 69 6e 74 6f  ls software into
0e30: 20 22 69 6e 73 74 22 20 28 72 75 6e 2d 74 69 6d   "inst" (run-tim
0e40: 65 20 2b 20 63 6f 6d 70 69 6c 65 2d 74 69 6d 65  e + compile-time
0e50: 29 0a 09 34 2e 20 2a 2f 62 75 69 6c 64 2e 73 68  )..4. */build.sh
0e60: 20 69 6e 73 74 61 6c 6c 73 20 72 75 6e 2d 74 69   installs run-ti
0e70: 6d 65 20 73 6f 66 74 77 61 72 65 20 69 6e 74 6f  me software into
0e80: 20 22 6f 75 74 22 2c 20 74 68 69 73 20 77 69 6c   "out", this wil
0e90: 6c 20 62 65 0a 09 20 20 20 69 6e 63 6c 75 64 65  l be..   include
0ea0: 64 20 69 6e 20 74 68 65 20 54 63 6c 6b 69 74 20  d in the Tclkit 
0eb0: 61 73 20 69 66 20 69 74 20 77 65 72 65 20 74 68  as if it were th
0ec0: 65 20 72 6f 6f 74 20 64 69 72 65 63 74 6f 72 79  e root directory
0ed0: 20 6f 66 20 74 68 65 0a 09 20 20 20 54 63 6c 6b   of the..   Tclk
0ee0: 69 74 20 28 63 6f 6d 62 69 6e 65 64 20 77 69 74  it (combined wit
0ef0: 68 20 6f 74 68 65 72 20 22 6f 75 74 22 20 64 69  h other "out" di
0f00: 72 65 63 74 6f 72 69 65 73 29 0a 09 35 2e 20 6b  rectories)..5. k
0f10: 69 74 73 68 2f 62 75 69 6c 64 2e 73 68 20 63 6f  itsh/build.sh co
0f20: 6d 70 69 6c 65 73 20 61 20 22 6d 61 69 6e 22 20  mpiles a "main" 
0f30: 66 75 6e 63 74 69 6f 6e 20 61 6e 64 20 6c 69 6e  function and lin
0f40: 6b 73 20 61 6c 6c 20 74 68 65 20 62 75 69 6c 74  ks all the built
0f50: 0a 09 20 20 20 6c 69 62 72 61 72 69 65 73 20 74  ..   libraries t
0f60: 6f 67 65 74 68 65 72 20 69 6e 74 6f 20 61 6e 20  ogether into an 
0f70: 65 78 65 63 75 74 61 62 6c 65 0a 09 36 2e 20 6b  executable..6. k
0f80: 69 74 73 68 2f 62 75 69 6c 64 2e 73 68 20 63 6f  itsh/build.sh co
0f90: 6d 62 69 6e 65 73 20 61 6c 6c 20 74 68 65 20 22  mbines all the "
0fa0: 6f 75 74 22 20 64 69 72 65 63 74 6f 72 69 65 73  out" directories
0fb0: 20 69 6e 74 6f 20 6f 6e 65 0a 09 37 2e 20 6b 69   into one..7. ki
0fc0: 74 73 68 2f 62 75 69 6c 64 2e 73 68 20 63 72 65  tsh/build.sh cre
0fd0: 61 74 65 73 20 61 20 4d 65 74 61 6b 69 74 20 6f  ates a Metakit o
0fe0: 72 20 5a 69 70 20 64 61 74 61 62 61 73 65 20 66  r Zip database f
0ff0: 72 6f 6d 20 74 68 65 20 63 6f 6d 62 69 6e 65 64  rom the combined
1000: 0a 09 20 20 20 64 69 72 65 63 74 6f 72 69 65 73  ..   directories
1010: 20 61 6e 64 20 61 70 70 65 6e 64 73 20 74 68 61   and appends tha
1020: 74 20 74 6f 20 74 68 65 20 63 6f 6d 70 69 6c 65  t to the compile
1030: 64 20 65 78 65 63 75 74 61 62 6c 65 20 75 73 69  d executable usi
1040: 6e 67 3a 0a 09 09 61 2e 20 41 20 54 63 6c 6b 69  ng:...a. A Tclki
1050: 74 20 66 6f 75 6e 64 20 69 6e 20 74 68 65 20 65  t found in the e
1060: 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61  nvironment varia
1070: 62 6c 65 20 22 54 43 4c 4b 49 54 22 20 28 74 63  ble "TCLKIT" (tc
1080: 6c 6b 69 74 0a 09 09 20 20 20 69 66 20 75 6e 73  lkit...   if uns
1090: 65 74 29 20 69 66 20 69 74 20 69 73 20 66 75 6e  et) if it is fun
10a0: 63 74 69 6f 6e 61 6c 3b 20 6f 72 0a 09 09 62 2e  ctional; or...b.
10b0: 20 54 68 65 20 62 75 69 6c 74 20 6b 69 74 20 69   The built kit i
10c0: 74 73 65 6c 66 20 28 64 6f 65 73 20 6e 6f 74 20  tself (does not 
10d0: 77 6f 72 6b 20 66 6f 72 20 63 72 6f 73 73 2d 63  work for cross-c
10e0: 6f 6d 70 69 6c 69 6e 67 29 0a 0a 44 65 74 61 69  ompiling)..Detai
10f0: 6c 73 3a 0a 09 54 68 65 20 67 65 6e 65 72 61 6c  ls:..The general
1100: 20 6d 65 63 68 61 6e 69 73 6d 20 74 68 61 74 20   mechanism that 
1110: 65 6e 61 62 6c 65 73 20 61 20 54 63 6c 6b 69 74  enables a Tclkit
1120: 20 74 6f 20 6f 70 65 72 61 74 65 20 69 73 20 61   to operate is a
1130: 20 73 6d 61 6c 6c 20 54 63 6c 0a 69 6e 69 74 69   small Tcl.initi
1140: 61 6c 69 7a 61 74 69 6f 6e 20 72 6f 75 74 69 6e  alization routin
1150: 65 20 6c 69 6e 6b 65 64 20 73 74 61 74 69 63 61  e linked statica
1160: 6c 6c 79 20 74 6f 20 74 68 65 20 63 6f 72 65 20  lly to the core 
1170: 6c 69 62 72 61 72 69 65 73 20 6e 65 65 64 65 64  libraries needed
1180: 20 74 6f 0a 6f 70 65 72 61 74 65 20 61 20 54 63   to.operate a Tc
1190: 6c 20 69 6e 74 65 72 70 72 65 74 65 72 2c 20 74  l interpreter, t
11a0: 68 65 20 54 63 6c 20 56 46 53 20 4c 61 79 65 72  he Tcl VFS Layer
11b0: 2c 20 61 6e 64 20 61 20 64 61 74 61 62 61 73 65  , and a database
11c0: 2d 62 61 63 6b 65 64 20 28 4d 65 74 61 6b 69 74  -backed (Metakit
11d0: 29 0a 56 69 72 74 75 61 6c 20 46 69 6c 65 20 53  ).Virtual File S
11e0: 79 73 74 65 6d 20 74 68 61 74 20 69 73 20 61 70  ystem that is ap
11f0: 70 65 6e 64 65 64 20 74 6f 20 74 68 65 20 65 6e  pended to the en
1200: 64 20 6f 66 20 74 68 65 20 65 78 65 63 75 74 61  d of the executa
1210: 62 6c 65 2e 0a 0a 54 68 69 73 20 70 72 6f 6a 65  ble...This proje
1220: 63 74 20 62 72 69 6e 67 73 20 74 6f 67 65 74 68  ct brings togeth
1230: 65 72 20 61 6c 6c 20 6f 66 20 74 68 65 20 72 65  er all of the re
1240: 71 75 69 72 65 64 20 70 69 65 63 65 73 2c 20 70  quired pieces, p
1250: 6c 75 73 20 73 6f 6d 65 20 61 64 64 69 74 69 6f  lus some additio
1260: 6e 61 6c 0a 70 69 65 63 65 73 20 74 68 61 74 20  nal.pieces that 
1270: 77 65 72 65 20 66 6f 75 6e 64 20 69 6e 20 74 68  were found in th
1280: 65 20 6f 72 69 67 69 6e 61 6c 20 54 63 6c 6b 69  e original Tclki
1290: 74 3a 0a 09 31 2e 20 54 6b 20 28 64 79 6e 61 6d  t:..1. Tk (dynam
12a0: 69 63 61 6c 6c 79 20 6c 69 6e 6b 65 64 29 0a 09  ically linked)..
12b0: 32 2e 20 49 74 63 6c 20 28 64 79 6e 61 6d 69 63  2. Itcl (dynamic
12c0: 61 6c 6c 79 20 6c 69 6e 6b 65 64 29 0a 0a 54 68  ally linked)..Th
12d0: 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20 66 6f  e source code fo
12e0: 72 20 74 68 65 73 65 20 70 69 65 63 65 73 20 61  r these pieces a
12f0: 72 65 20 64 6f 77 6e 6c 6f 61 64 65 64 2c 20 63  re downloaded, c
1300: 6f 6d 70 69 6c 65 64 2c 20 61 6e 64 20 6c 69 6e  ompiled, and lin
1310: 6b 65 64 2c 20 61 6e 64 20 74 68 65 0a 64 61 74  ked, and the.dat
1320: 61 62 61 73 65 20 63 6f 6e 74 61 69 6e 69 6e 67  abase containing
1330: 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65   the appropriate
1340: 20 66 69 6c 65 73 79 73 74 65 6d 20 64 61 74 61   filesystem data
1350: 20 69 73 20 63 72 65 61 74 65 64 2e 20 20 57 68   is created.  Wh
1360: 61 74 20 73 65 74 73 0a 74 68 69 73 20 70 72 6f  at sets.this pro
1370: 6a 65 63 74 20 61 70 61 72 74 20 66 72 6f 6d 20  ject apart from 
1380: 6f 74 68 65 72 20 73 69 6d 69 6c 61 72 20 70 72  other similar pr
1390: 6f 6a 65 63 74 73 20 69 73 20 74 68 61 74 3a 0a  ojects is that:.
13a0: 09 31 2e 20 49 74 20 61 74 74 65 6d 70 74 73 20  .1. It attempts 
13b0: 74 6f 20 62 65 20 6d 6f 64 75 6c 61 72 3b 0a 09  to be modular;..
13c0: 32 2e 20 49 74 20 73 75 70 70 6f 72 74 73 20 63  2. It supports c
13d0: 72 6f 73 73 2d 63 6f 6d 70 69 6c 69 6e 67 3b 0a  ross-compiling;.
13e0: 09 33 2e 20 49 74 20 64 6f 77 6e 6c 6f 61 64 73  .3. It downloads
13f0: 20 74 68 65 20 73 6f 75 72 63 65 20 66 72 6f 6d   the source from
1400: 20 74 68 65 69 72 20 6f 72 69 67 69 6e 61 6c 20   their original 
1410: 72 65 70 6f 73 69 74 6f 72 69 65 73 3b 0a 09 34  repositories;..4
1420: 2e 20 49 74 20 61 6c 6c 6f 77 73 20 79 6f 75 20  . It allows you 
1430: 74 6f 20 73 70 65 63 69 66 79 20 61 6e 20 61 72  to specify an ar
1440: 62 69 74 72 61 72 79 20 76 65 72 73 69 6f 6e 20  bitrary version 
1450: 6f 66 20 54 63 6c 20 28 69 6e 63 6c 75 64 69 6e  of Tcl (includin
1460: 67 0a 09 20 20 20 43 56 53 29 3b 20 61 6e 64 0a  g..   CVS); and.
1470: 09 35 2e 20 49 74 20 75 73 65 73 20 47 4e 55 20  .5. It uses GNU 
1480: 41 75 74 6f 63 6f 6e 66 20 73 63 72 69 70 74 73  Autoconf scripts
1490: 20 66 6f 72 20 63 6f 6d 70 69 6c 69 6e 67 20 74   for compiling t
14a0: 68 65 20 70 61 72 74 20 6f 66 20 74 68 65 20 54  he part of the T
14b0: 63 6c 6b 69 74 0a 09 20 20 20 74 68 61 74 20 62  clkit..   that b
14c0: 72 69 6e 67 73 20 74 68 65 20 77 68 6f 6c 65 20  rings the whole 
14d0: 74 68 69 6e 67 20 74 6f 67 65 74 68 65 72 20 28  thing together (
14e0: 74 68 65 20 4b 69 74 73 68 29 0a 0a 54 6f 20 61  the Kitsh)..To a
14f0: 63 63 6f 6d 70 6c 69 73 68 20 74 68 65 73 65 20  ccomplish these 
1500: 67 6f 61 6c 73 20 74 68 65 20 66 6f 6c 6c 6f 77  goals the follow
1510: 69 6e 67 20 6d 65 63 68 61 6e 69 73 6d 73 20 61  ing mechanisms a
1520: 72 65 20 69 6e 20 70 6c 61 63 65 3a 0a 09 31 2e  re in place:..1.
1530: 20 54 68 65 20 74 6f 70 2d 6c 65 76 65 6c 20 22   The top-level "
1540: 6b 69 74 63 72 65 61 74 6f 72 22 20 73 63 72 69  kitcreator" scri
1550: 70 74 3b 20 61 6e 64 0a 09 32 2e 20 50 65 72 2d  pt; and..2. Per-
1560: 70 72 6f 6a 65 63 74 20 73 75 62 64 69 72 65 63  project subdirec
1570: 74 6f 72 69 65 73 2c 20 65 61 63 68 20 63 6f 6e  tories, each con
1580: 74 61 69 6e 69 6e 67 20 61 20 22 62 75 69 6c 64  taining a "build
1590: 2e 73 68 22 20 73 63 72 69 70 74 0a 0a 54 68 65  .sh" script..The
15a0: 20 74 6f 70 2d 6c 65 76 65 6c 20 22 6b 69 74 63   top-level "kitc
15b0: 72 65 61 74 6f 72 22 20 73 63 72 69 70 74 20 69  reator" script i
15c0: 73 20 76 65 72 79 20 73 69 6d 70 6c 65 2e 20 20  s very simple.  
15d0: 49 74 73 20 6f 6e 6c 79 20 6a 6f 62 20 69 73 20  Its only job is 
15e0: 74 6f 0a 69 6e 74 65 72 70 72 65 74 20 63 6f 6d  to.interpret com
15f0: 6d 61 6e 64 20 6c 69 6e 65 20 61 72 67 75 6d 65  mand line argume
1600: 6e 74 73 2c 20 61 6e 64 20 63 61 6c 6c 20 74 68  nts, and call th
1610: 65 20 70 65 72 2d 70 72 6f 6a 65 63 74 20 22 62  e per-project "b
1620: 75 69 6c 64 2e 73 68 22 20 73 63 72 69 70 74 73  uild.sh" scripts
1630: 2e 0a 46 6f 72 20 74 68 65 20 22 74 63 6c 22 20  ..For the "tcl" 
1640: 70 72 6f 6a 65 63 74 20 69 74 20 61 6c 73 6f 20  project it also 
1650: 66 69 6e 64 73 20 74 68 65 20 61 70 70 72 6f 70  finds the approp
1660: 72 69 61 74 65 20 22 74 63 6c 43 6f 6e 66 69 67  riate "tclConfig
1670: 2e 73 68 22 20 28 61 6e 64 20 73 74 6f 72 65 73  .sh" (and stores
1680: 0a 74 68 69 73 20 70 61 74 68 20 69 6e 20 54 43  .this path in TC
1690: 4c 43 4f 4e 46 49 47 44 49 52 29 20 74 6f 20 65  LCONFIGDIR) to e
16a0: 6e 61 62 6c 65 20 73 75 62 73 65 71 75 65 6e 74  nable subsequent
16b0: 20 62 75 69 6c 64 20 73 63 72 69 70 74 73 20 74   build scripts t
16c0: 6f 20 66 69 6e 64 20 74 68 65 0a 61 70 70 72 6f  o find the.appro
16d0: 70 72 69 61 74 65 20 54 63 6c 20 74 6f 20 6c 69  priate Tcl to li
16e0: 6e 6b 20 61 67 61 69 6e 73 74 2e 0a 0a 54 68 65  nk against...The
16f0: 20 70 65 72 2d 70 72 6f 6a 65 63 74 20 22 62 75   per-project "bu
1700: 69 6c 64 2e 73 68 22 20 73 63 72 69 70 74 73 20  ild.sh" scripts 
1710: 61 72 65 20 65 6e 74 69 72 65 6c 79 20 61 75 74  are entirely aut
1720: 6f 6e 6f 6d 6f 75 73 2e 20 20 54 68 65 79 20 61  onomous.  They a
1730: 72 65 0a 72 65 73 70 6f 6e 73 69 62 6c 65 20 66  re.responsible f
1740: 6f 72 20 64 6f 77 6e 6c 6f 61 64 69 6e 67 20 74  or downloading t
1750: 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20 66  he source code f
1760: 6f 72 20 74 68 65 20 61 70 70 72 6f 70 72 69 61  or the appropria
1770: 74 65 20 76 65 72 73 69 6f 6e 20 74 68 61 74 0a  te version that.
1780: 77 69 6c 6c 20 63 6f 6d 70 69 6c 65 20 61 6e 64  will compile and
1790: 20 6c 69 6e 6b 20 61 67 61 69 6e 73 74 20 74 68   link against th
17a0: 65 20 63 75 72 72 65 6e 74 20 76 65 72 73 69 6f  e current versio
17b0: 6e 20 6f 66 20 54 63 6c 20 28 75 73 65 72 20 72  n of Tcl (user r
17c0: 65 71 75 65 73 74 65 64 0a 76 65 72 73 69 6f 6e  equested.version
17d0: 20 63 61 6e 20 62 65 20 66 6f 75 6e 64 20 69 6e   can be found in
17e0: 20 22 54 43 4c 56 45 52 53 22 2c 20 77 68 69 6c   "TCLVERS", whil
17f0: 65 20 74 68 65 20 61 63 74 75 61 6c 20 76 65 72  e the actual ver
1800: 73 69 6f 6e 20 6d 75 73 74 20 62 65 20 72 65 71  sion must be req
1810: 75 65 73 74 65 64 0a 66 72 6f 6d 20 74 68 65 20  uested.from the 
1820: 22 74 63 6c 43 6f 6e 66 69 67 2e 73 68 22 20 73  "tclConfig.sh" s
1830: 63 72 69 70 74 29 2c 20 63 6f 6d 70 69 6c 69 6e  cript), compilin
1840: 67 20 69 74 2c 20 69 6e 73 74 61 6c 6c 69 6e 67  g it, installing
1850: 20 61 20 66 75 6e 63 74 69 6f 6e 61 6c 20 63 6f   a functional co
1860: 70 79 0a 69 6e 74 6f 20 74 68 65 20 70 65 72 2d  py.into the per-
1870: 70 72 6f 6a 65 63 74 20 22 69 6e 73 74 22 20 64  project "inst" d
1880: 69 72 65 63 74 6f 72 79 2c 20 61 6e 64 20 69 6e  irectory, and in
1890: 73 74 61 6c 6c 69 6e 67 20 61 6e 79 74 68 69 6e  stalling anythin
18a0: 67 20 74 68 61 74 20 6e 65 65 64 73 20 74 6f 0a  g that needs to.
18b0: 62 65 20 69 6e 20 74 68 65 20 54 63 6c 6b 69 74  be in the Tclkit
18c0: 27 73 20 56 46 53 20 72 6f 6f 74 20 69 6e 74 6f  's VFS root into
18d0: 20 74 68 65 20 70 65 72 2d 70 72 6f 6a 65 63 74   the per-project
18e0: 20 22 6f 75 74 22 20 64 69 72 65 63 74 6f 72 79   "out" directory
18f0: 2e 0a 0a 54 68 65 20 65 78 63 65 70 74 69 6f 6e  ...The exception
1900: 20 74 6f 20 74 68 69 73 20 69 73 20 74 68 65 20   to this is the 
1910: 22 6b 69 74 73 68 22 20 70 72 6f 6a 65 63 74 2e  "kitsh" project.
1920: 20 20 49 74 20 69 73 20 74 68 65 20 67 6c 75 65    It is the glue
1930: 20 74 68 61 74 20 62 69 6e 64 73 20 61 6c 6c 0a   that binds all.
1940: 74 68 65 20 69 6e 64 69 76 69 64 75 61 6c 20 70  the individual p
1950: 72 6f 6a 65 63 74 73 20 74 6f 67 65 74 68 65 72  rojects together
1960: 20 69 6e 74 6f 20 61 20 73 69 6e 67 6c 65 20 65   into a single e
1970: 78 65 63 75 74 61 62 6c 65 2e 20 20 49 74 73 20  xecutable.  Its 
1980: 62 75 69 6c 64 20 73 63 72 69 70 74 0a 64 6f 65  build script.doe
1990: 73 20 6e 6f 74 20 63 72 65 61 74 65 20 61 6e 20  s not create an 
19a0: 22 69 6e 73 74 22 20 6f 72 20 61 6e 20 22 6f 75  "inst" or an "ou
19b0: 74 22 20 64 69 72 65 63 74 6f 72 79 20 62 65 63  t" directory bec
19c0: 61 75 73 65 20 69 74 20 69 73 20 6e 6f 74 20 61  ause it is not a
19d0: 20 6c 69 62 72 61 72 79 2e 0a 49 6e 73 74 65 61   library..Instea
19e0: 64 2c 20 69 74 20 63 6f 6c 6c 65 63 74 73 20 61  d, it collects a
19f0: 6c 6c 20 74 68 65 20 6f 74 68 65 72 20 70 72 6f  ll the other pro
1a00: 6a 65 63 74 27 73 20 22 6f 75 74 22 20 64 69 72  ject's "out" dir
1a10: 65 63 74 6f 72 69 65 73 20 69 6e 74 6f 20 61 20  ectories into a 
1a20: 73 69 6e 67 6c 65 0a 64 69 72 65 63 74 6f 72 79  single.directory
1a30: 20 28 73 74 61 72 70 61 63 6b 2e 76 66 73 29 2c   (starpack.vfs),
1a40: 20 61 73 20 77 65 6c 6c 20 61 20 73 74 61 74 69   as well a stati
1a50: 63 20 66 69 6c 65 20 28 62 6f 6f 74 2e 74 63 6c  c file (boot.tcl
1a60: 29 2e 20 20 49 74 20 74 68 65 6e 20 63 6f 6d 70  ).  It then comp
1a70: 69 6c 65 73 0a 74 68 65 20 73 6f 75 72 63 65 20  iles.the source 
1a80: 63 6f 64 65 2c 20 61 6e 64 20 74 68 65 6e 20 69  code, and then i
1a90: 6e 73 74 61 6c 6c 73 20 74 68 65 20 4d 65 74 61  nstalls the Meta
1aa0: 6b 69 74 20 64 61 74 61 62 61 73 65 20 63 6f 6e  kit database con
1ab0: 74 61 69 6e 69 6e 67 20 74 68 65 20 56 46 53 0a  taining the VFS.
1ac0: 6f 6e 74 6f 20 74 68 65 20 72 65 73 75 6c 74 69  onto the resulti
1ad0: 6e 67 20 65 78 65 63 75 74 61 62 6c 65 2e 0a 0a  ng executable...
1ae0: 49 66 20 74 68 65 20 22 6d 6b 34 74 63 6c 22 20  If the "mk4tcl" 
1af0: 70 72 6f 6a 65 63 74 20 66 61 69 6c 73 20 74 6f  project fails to
1b00: 20 62 75 69 6c 64 20 28 6f 72 20 69 73 20 6e 6f   build (or is no
1b10: 74 20 72 65 71 75 65 73 74 65 64 20 74 6f 20 62  t requested to b
1b20: 65 20 62 75 69 6c 74 29 2c 0a 74 68 65 20 72 65  e built),.the re
1b30: 73 74 20 6f 66 20 74 68 65 20 70 72 6f 6a 65 63  st of the projec
1b40: 74 20 77 69 6c 6c 20 62 65 20 62 75 69 6c 74 20  t will be built 
1b50: 75 73 69 6e 67 20 7a 69 70 20 66 69 6c 65 73 20  using zip files 
1b60: 69 6e 73 74 65 61 64 20 6f 66 20 4d 65 74 61 6b  instead of Metak
1b70: 69 74 0a 64 61 74 61 62 61 73 65 73 2e 0a 0a 54  it.databases...T
1b80: 6f 20 63 72 65 61 74 65 20 74 68 65 20 73 74 6f  o create the sto
1b90: 72 61 67 65 20 64 61 74 61 62 61 73 65 2c 20 6f  rage database, o
1ba0: 6e 65 20 6f 66 20 74 77 6f 20 54 63 6c 6b 69 74  ne of two Tclkit
1bb0: 73 20 69 73 20 75 73 65 64 20 28 74 72 69 65 64  s is used (tried
1bc0: 20 69 6e 20 74 68 69 73 0a 6f 72 64 65 72 29 3a   in this.order):
1bd0: 0a 09 31 2e 20 54 68 65 20 54 63 6c 6b 69 74 20  ..1. The Tclkit 
1be0: 73 70 65 63 69 66 69 65 64 20 62 79 20 74 68 65  specified by the
1bf0: 20 54 43 4c 4b 49 54 20 65 6e 76 69 72 6f 6e 6d   TCLKIT environm
1c00: 65 6e 74 20 76 61 72 69 61 62 6c 65 20 28 6f 72  ent variable (or
1c10: 0a 09 20 20 20 22 74 63 6c 6b 69 74 22 20 69 66  ..   "tclkit" if
1c20: 20 74 68 61 74 20 76 61 72 69 61 62 6c 65 20 69   that variable i
1c30: 73 20 6e 6f 74 20 73 65 74 29 20 69 66 20 69 74  s not set) if it
1c40: 20 69 73 20 66 75 6e 63 74 69 6f 6e 61 6c 3b 20   is functional; 
1c50: 6f 72 0a 09 32 2e 20 54 68 65 20 62 75 69 6c 74  or..2. The built
1c60: 20 54 63 6c 6b 69 74 20 69 74 73 65 6c 66 0a 0a   Tclkit itself..
1c70: 54 68 65 20 73 65 63 6f 6e 64 20 6d 65 74 68 6f  The second metho
1c80: 64 20 77 69 6c 6c 20 6e 6f 74 20 77 6f 72 6b 20  d will not work 
1c90: 69 66 20 74 68 65 20 62 75 69 6c 74 20 54 63 6c  if the built Tcl
1ca0: 6b 69 74 20 69 73 20 6e 6f 74 20 65 78 65 63 75  kit is not execu
1cb0: 74 61 62 6c 65 20 6f 6e 20 74 68 65 0a 63 75 72  table on the.cur
1cc0: 72 65 6e 74 20 70 6c 61 74 66 6f 72 6d 20 28 69  rent platform (i
1cd0: 2e 65 2e 2c 20 69 6e 20 74 68 65 20 63 61 73 65  .e., in the case
1ce0: 20 6f 66 20 63 72 6f 73 73 2d 63 6f 6d 70 69 6c   of cross-compil
1cf0: 61 74 69 6f 6e 29 20 61 6e 64 20 73 6f 20 69 74  ation) and so it
1d00: 20 6d 61 79 20 62 65 0a 6e 65 63 65 73 73 61 72   may be.necessar
1d10: 79 20 74 6f 20 62 6f 6f 74 73 74 72 61 70 20 61  y to bootstrap a
1d20: 20 72 75 6e 6e 61 62 6c 65 20 54 63 6c 6b 69 74   runnable Tclkit
1d30: 20 66 69 72 73 74 2e 0a                           first..