Hex Artifact Content

Artifact 0679e98955476ca7e70de7428455f10a8e8711d8:


0000: 23 20 54 68 69 73 20 69 73 20 74 68 65 20 6e 61  # This is the na
0010: 6d 65 20 6f 66 20 74 68 65 20 75 74 69 6c 69 74  me of the utilit
0020: 79 2c 20 69 74 20 77 69 6c 6c 20 62 65 20 70 72  y, it will be pr
0030: 65 66 69 78 65 64 20 74 6f 20 74 68 65 20 74 61  efixed to the ta
0040: 72 62 61 6c 6c 20 6e 61 6d 65 0a 55 54 49 4c 3d  rball name.UTIL=
0050: 22 74 63 63 34 74 63 6c 22 0a 0a 23 20 54 68 69  "tcc4tcl"..# Thi
0060: 73 20 69 73 20 74 68 65 20 6e 61 6d 65 20 6f 66  s is the name of
0070: 20 6f 75 74 70 75 74 20 66 69 6c 65 73 20 74 68   output files th
0080: 61 74 20 73 68 6f 75 6c 64 20 65 78 69 73 74 20  at should exist 
0090: 61 66 74 65 72 20 63 6f 6e 66 69 67 75 72 65 20  after configure 
00a0: 0a 23 20 70 72 6f 63 65 64 75 72 65 73 2e 0a 42  .# procedures..B
00b0: 49 4e 53 3d 22 74 63 63 34 74 63 6c 2e 73 6f 22  INS="tcc4tcl.so"
00c0: 0a 0a 23 20 54 68 69 73 20 6c 69 73 74 73 20 74  ..# This lists t
00d0: 68 65 20 6e 61 6d 65 20 6f 66 20 66 69 6c 65 73  he name of files
00e0: 20 74 68 61 74 20 61 72 65 20 72 65 71 75 69 72   that are requir
00f0: 65 64 20 74 6f 20 65 78 69 73 74 0a 23 23 20 54  ed to exist.## T
0100: 45 53 54 2d 53 54 41 54 55 53 20 69 73 20 6f 6e  EST-STATUS is on
0110: 6c 79 20 63 72 65 61 74 65 64 20 69 66 20 22 6d  ly created if "m
0120: 61 6b 65 20 74 65 73 74 22 20 73 75 63 63 65 65  ake test" succee
0130: 64 73 0a 52 45 51 53 3d 22 70 6b 67 49 6e 64 65  ds.REQS="pkgInde
0140: 78 2e 74 63 6c 20 54 45 53 54 2d 53 54 41 54 55  x.tcl TEST-STATU
0150: 53 22 0a 0a 23 20 56 65 72 73 69 6f 6e 20 6f 66  S"..# Version of
0160: 20 75 74 69 6c 69 74 79 2c 20 69 66 20 65 6d 70   utility, if emp
0170: 74 79 20 69 74 20 77 69 6c 6c 20 62 65 20 67 75  ty it will be gu
0180: 65 73 73 65 64 2e 0a 23 20 49 66 20 73 65 74 20  essed..# If set 
0190: 74 6f 20 22 61 75 74 6f 22 20 69 74 20 77 69 6c  to "auto" it wil
01a0: 6c 20 62 65 20 6d 61 69 6e 74 61 69 6e 65 64 20  l be maintained 
01b0: 69 6e 20 61 20 66 69 6c 65 20 63 61 6c 6c 65 64  in a file called
01c0: 20 2e 76 65 72 73 69 6f 6e 0a 23 20 69 6e 20 74   .version.# in t
01d0: 68 65 20 73 6f 75 72 63 65 20 64 69 72 65 63 74  he source direct
01e0: 6f 72 79 20 61 6e 64 20 74 68 65 20 72 65 76 69  ory and the revi
01f0: 73 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69 6e 63  sion will be inc
0200: 72 65 6d 65 6e 74 65 64 0a 23 20 65 61 63 68 20  remented.# each 
0210: 74 69 6d 65 20 61 20 22 6d 61 6b 65 61 72 63 68  time a "makearch
0220: 22 20 69 73 20 64 6f 6e 65 2e 0a 23 0a 23 20 49  " is done..#.# I
0230: 66 20 40 40 53 56 4e 4c 43 52 40 40 20 69 73 20  f @@SVNLCR@@ is 
0240: 75 73 65 64 20 61 6e 79 77 68 65 72 65 20 69 6e  used anywhere in
0250: 20 74 68 69 73 20 76 65 72 73 69 6f 6e 20 6e 75   this version nu
0260: 6d 62 65 72 2c 20 69 74 20 77 69 6c 6c 20 62 65  mber, it will be
0270: 0a 23 20 72 65 70 6c 61 63 65 64 20 77 69 74 68  .# replaced with
0280: 20 74 68 65 20 68 69 67 68 65 73 74 20 6c 61 73   the highest las
0290: 74 2d 63 68 61 6e 67 65 64 2d 72 65 76 20 66 72  t-changed-rev fr
02a0: 6f 6d 20 74 68 65 20 6f 75 74 70 75 74 20 6f 66  om the output of
02b0: 0a 23 20 20 20 73 76 6e 20 69 6e 66 6f 20 2d 52  .#   svn info -R
02c0: 20 20 20 20 28 6f 72 20 30 29 0a 56 45 52 53 3d      (or 0).VERS=
02d0: 22 30 2e 32 31 22 0a 0a 23 20 53 70 61 63 65 20  "0.21"..# Space 
02e0: 73 70 65 72 61 74 65 64 20 6c 69 73 74 20 6f 66  sperated list of
02f0: 20 64 6f 63 75 6d 65 6e 74 73 2c 20 69 66 20 74   documents, if t
0300: 68 65 79 20 65 78 69 73 74 2c 20 74 68 65 79 20  hey exist, they 
0310: 77 69 6c 6c 20 62 65 0a 23 20 70 72 65 66 69 78  will be.# prefix
0320: 65 64 20 77 69 74 68 20 74 68 65 20 63 6f 6e 74  ed with the cont
0330: 65 6e 74 73 20 6f 66 20 74 68 65 20 44 4f 43 5f  ents of the DOC_
0340: 48 44 52 20 66 69 6c 65 20 61 6e 64 20 73 75 62  HDR file and sub
0350: 73 74 69 74 75 74 69 6f 6e 0a 23 20 77 69 6c 6c  stitution.# will
0360: 20 6f 63 63 75 72 3a 0a 23 20 20 20 20 20 40 40   occur:.#     @@
0370: 55 54 49 4c 40 40 20 62 65 63 6f 6d 65 73 20 74  UTIL@@ becomes t
0380: 68 65 20 75 74 69 6c 69 74 79 20 6e 61 6d 65 20  he utility name 
0390: 24 7b 55 54 49 4c 7d 0a 23 20 20 20 20 20 40 40  ${UTIL}.#     @@
03a0: 56 45 52 53 40 40 20 62 65 63 6f 6d 65 73 20 74  VERS@@ becomes t
03b0: 68 65 20 75 74 69 6c 69 74 79 20 76 65 72 73 69  he utility versi
03c0: 6f 6e 0a 23 20 20 20 20 20 40 40 44 41 54 45 40  on.#     @@DATE@
03d0: 40 20 62 65 63 6f 6d 65 73 20 74 68 65 20 63 75  @ becomes the cu
03e0: 72 72 65 6e 74 20 64 61 74 65 0a 44 4f 43 53 3d  rrent date.DOCS=
03f0: 22 52 45 41 44 4d 45 22 0a 44 4f 43 5f 48 44 52  "README".DOC_HDR
0400: 3d 22 48 45 41 44 45 52 22 0a 0a 23 20 54 68 65  ="HEADER"..# The
0410: 73 65 20 66 69 6c 65 73 20 66 6f 6c 6c 6f 77 20  se files follow 
0420: 74 68 65 20 73 61 6d 65 20 63 6f 6e 76 65 6e 74  the same convent
0430: 69 6f 6e 20 61 73 20 44 4f 43 53 2c 20 62 75 74  ion as DOCS, but
0440: 20 64 6f 6e 27 74 20 68 61 76 65 20 74 68 65 20   don't have the 
0450: 68 65 61 64 65 72 0a 23 20 74 61 63 6b 65 64 20  header.# tacked 
0460: 6f 6e 74 6f 20 74 68 65 6d 2e 0a 55 50 44 41 54  onto them..UPDAT
0470: 45 5f 56 41 52 53 3d 22 63 6f 6e 66 69 67 75 72  E_VARS="configur
0480: 65 2e 61 63 20 63 6f 6e 66 69 67 75 72 65 20 74  e.ac configure t
0490: 63 63 34 74 63 6c 2e 74 63 6c 22 0a 0a 23 20 54  cc4tcl.tcl"..# T
04a0: 68 69 73 20 73 63 72 69 70 74 20 69 73 20 65 78  his script is ex
04b0: 65 63 75 74 65 64 20 69 6d 6d 65 64 69 61 74 65  ecuted immediate
04c0: 6c 79 20 61 66 74 65 72 20 63 6f 70 79 69 6e 67  ly after copying
04d0: 20 74 68 65 20 66 69 6c 65 73 0a 23 20 74 6f 20   the files.# to 
04e0: 61 20 74 65 6d 70 20 64 69 72 65 63 74 6f 72 79  a temp directory
04f0: 20 74 6f 20 61 74 74 65 6d 70 74 20 74 6f 20 63   to attempt to c
0500: 6f 6d 70 69 6c 65 0a 42 45 46 4f 52 45 3d 22 62  ompile.BEFORE="b
0510: 75 69 6c 64 2f 70 72 65 2e 73 68 22 0a 0a 23 20  uild/pre.sh"..# 
0520: 54 68 69 73 20 73 63 72 69 70 74 20 69 73 20 65  This script is e
0530: 78 65 63 75 74 65 64 20 69 6d 6d 65 64 69 61 74  xecuted immediat
0540: 65 6c 79 20 70 72 69 6f 72 20 74 6f 20 63 72 65  ely prior to cre
0550: 61 74 69 6f 6e 20 6f 66 20 74 68 65 0a 23 20 74  ation of the.# t
0560: 61 72 62 61 6c 6c 0a 41 46 54 45 52 3d 22 22 0a  arball.AFTER="".
0570: 0a 23 20 46 69 6c 65 73 20 6d 61 74 63 68 69 6e  .# Files matchin
0580: 67 20 74 68 65 73 65 20 28 73 70 61 63 65 2d 73  g these (space-s
0590: 65 70 65 72 61 74 65 64 29 20 70 61 74 74 65 72  eperated) patter
05a0: 6e 73 20 61 72 65 20 64 65 6c 65 74 65 64 0a 54  ns are deleted.T
05b0: 4d 50 53 3d 22 2a 2e 6f 75 74 20 48 45 41 44 45  MPS="*.out HEADE
05c0: 52 20 62 75 69 6c 64 20 77 6f 72 6b 20 49 4e 53  R build work INS
05d0: 54 22 0a                                         T".