Hex Artifact Content

Artifact 3100fe7f25d14a93b166f800dec5b628a5520e13:


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 6c 74 6c 73 22 0a 0a 23 20 54 68 69 73  "tcltls"..# This
0060: 20 69 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20   is the name of 
0070: 6f 75 74 70 75 74 20 66 69 6c 65 73 20 74 68 61  output files tha
0080: 74 20 73 68 6f 75 6c 64 20 65 78 69 73 74 20 61  t should exist a
0090: 66 74 65 72 20 63 6f 6e 66 69 67 75 72 65 20 0a  fter configure .
00a0: 23 20 70 72 6f 63 65 64 75 72 65 73 2e 0a 42 49  # procedures..BI
00b0: 4e 53 3d 22 22 0a 0a 23 20 54 68 69 73 20 6c 69  NS=""..# This li
00c0: 73 74 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20  sts the name of 
00d0: 66 69 6c 65 73 20 74 68 61 74 20 61 72 65 20 72  files that are r
00e0: 65 71 75 69 72 65 64 20 74 6f 20 65 78 69 73 74  equired to exist
00f0: 0a 52 45 51 53 3d 22 22 0a 0a 23 20 56 65 72 73  .REQS=""..# Vers
0100: 69 6f 6e 20 6f 66 20 75 74 69 6c 69 74 79 2c 20  ion of utility, 
0110: 69 66 20 65 6d 70 74 79 20 69 74 20 77 69 6c 6c  if empty it will
0120: 20 62 65 20 67 75 65 73 73 65 64 2e 0a 23 20 49   be guessed..# I
0130: 66 20 73 65 74 20 74 6f 20 22 61 75 74 6f 22 20  f set to "auto" 
0140: 69 74 20 77 69 6c 6c 20 62 65 20 6d 61 69 6e 74  it will be maint
0150: 61 69 6e 65 64 20 69 6e 20 61 20 66 69 6c 65 20  ained in a file 
0160: 63 61 6c 6c 65 64 20 2e 76 65 72 73 69 6f 6e 0a  called .version.
0170: 23 20 69 6e 20 74 68 65 20 73 6f 75 72 63 65 20  # in the source 
0180: 64 69 72 65 63 74 6f 72 79 20 61 6e 64 20 74 68  directory and th
0190: 65 20 72 65 76 69 73 69 6f 6e 20 77 69 6c 6c 20  e revision will 
01a0: 62 65 20 69 6e 63 72 65 6d 65 6e 74 65 64 0a 23  be incremented.#
01b0: 20 65 61 63 68 20 74 69 6d 65 20 61 20 22 6d 61   each time a "ma
01c0: 6b 65 61 72 63 68 22 20 69 73 20 64 6f 6e 65 2e  kearch" is done.
01d0: 0a 23 0a 23 20 49 66 20 40 40 53 56 4e 4c 43 52  .#.# If @@SVNLCR
01e0: 40 40 20 69 73 20 75 73 65 64 20 61 6e 79 77 68  @@ is used anywh
01f0: 65 72 65 20 69 6e 20 74 68 69 73 20 76 65 72 73  ere in this vers
0200: 69 6f 6e 20 6e 75 6d 62 65 72 2c 20 69 74 20 77  ion number, it w
0210: 69 6c 6c 20 62 65 0a 23 20 72 65 70 6c 61 63 65  ill be.# replace
0220: 64 20 77 69 74 68 20 74 68 65 20 68 69 67 68 65  d with the highe
0230: 73 74 20 6c 61 73 74 2d 63 68 61 6e 67 65 64 2d  st last-changed-
0240: 72 65 76 20 66 72 6f 6d 20 74 68 65 20 6f 75 74  rev from the out
0250: 70 75 74 20 6f 66 0a 23 20 20 20 73 76 6e 20 69  put of.#   svn i
0260: 6e 66 6f 20 2d 52 20 20 20 20 28 6f 72 20 30 29  nfo -R    (or 0)
0270: 0a 56 45 52 53 3d 22 30 2e 30 22 0a 0a 23 20 53  .VERS="0.0"..# S
0280: 70 61 63 65 20 73 70 65 72 61 74 65 64 20 6c 69  pace sperated li
0290: 73 74 20 6f 66 20 64 6f 63 75 6d 65 6e 74 73 2c  st of documents,
02a0: 20 69 66 20 74 68 65 79 20 65 78 69 73 74 2c 20   if they exist, 
02b0: 74 68 65 79 20 77 69 6c 6c 20 62 65 0a 23 20 70  they will be.# p
02c0: 72 65 66 69 78 65 64 20 77 69 74 68 20 74 68 65  refixed with the
02d0: 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 65   contents of the
02e0: 20 44 4f 43 5f 48 44 52 20 66 69 6c 65 20 61 6e   DOC_HDR file an
02f0: 64 20 73 75 62 73 74 69 74 75 74 69 6f 6e 0a 23  d substitution.#
0300: 20 77 69 6c 6c 20 6f 63 63 75 72 3a 0a 23 20 20   will occur:.#  
0310: 20 20 20 40 40 55 54 49 4c 40 40 20 62 65 63 6f     @@UTIL@@ beco
0320: 6d 65 73 20 74 68 65 20 75 74 69 6c 69 74 79 20  mes the utility 
0330: 6e 61 6d 65 20 24 7b 55 54 49 4c 7d 0a 23 20 20  name ${UTIL}.#  
0340: 20 20 20 40 40 56 45 52 53 40 40 20 62 65 63 6f     @@VERS@@ beco
0350: 6d 65 73 20 74 68 65 20 75 74 69 6c 69 74 79 20  mes the utility 
0360: 76 65 72 73 69 6f 6e 0a 23 20 20 20 20 20 40 40  version.#     @@
0370: 44 41 54 45 40 40 20 62 65 63 6f 6d 65 73 20 74  DATE@@ becomes t
0380: 68 65 20 63 75 72 72 65 6e 74 20 64 61 74 65 0a  he current date.
0390: 44 4f 43 53 3d 22 52 45 41 44 4d 45 2e 74 78 74  DOCS="README.txt
03a0: 22 0a 44 4f 43 5f 48 44 52 3d 22 48 45 41 44 45  ".DOC_HDR="HEADE
03b0: 52 22 0a 0a 23 20 54 68 65 73 65 20 66 69 6c 65  R"..# These file
03c0: 73 20 66 6f 6c 6c 6f 77 20 74 68 65 20 73 61 6d  s follow the sam
03d0: 65 20 63 6f 6e 76 65 6e 74 69 6f 6e 20 61 73 20  e convention as 
03e0: 44 4f 43 53 2c 20 62 75 74 20 64 6f 6e 27 74 20  DOCS, but don't 
03f0: 68 61 76 65 20 74 68 65 20 68 65 61 64 65 72 0a  have the header.
0400: 23 20 74 61 63 6b 65 64 20 6f 6e 74 6f 20 74 68  # tacked onto th
0410: 65 6d 2e 0a 55 50 44 41 54 45 5f 56 41 52 53 3d  em..UPDATE_VARS=
0420: 22 63 6f 6e 66 69 67 75 72 65 2e 61 63 22 0a 0a  "configure.ac"..
0430: 23 20 54 68 69 73 20 73 63 72 69 70 74 20 69 73  # This script is
0440: 20 65 78 65 63 75 74 65 64 20 69 6d 6d 65 64 69   executed immedi
0450: 61 74 65 6c 79 20 61 66 74 65 72 20 63 6f 70 79  ately after copy
0460: 69 6e 67 20 74 68 65 20 66 69 6c 65 73 0a 23 20  ing the files.# 
0470: 74 6f 20 61 20 74 65 6d 70 20 64 69 72 65 63 74  to a temp direct
0480: 6f 72 79 20 74 6f 20 61 74 74 65 6d 70 74 20 74  ory to attempt t
0490: 6f 20 63 6f 6d 70 69 6c 65 0a 42 45 46 4f 52 45  o compile.BEFORE
04a0: 3d 22 22 0a 0a 23 20 54 68 69 73 20 73 63 72 69  =""..# This scri
04b0: 70 74 20 69 73 20 65 78 65 63 75 74 65 64 20 61  pt is executed a
04c0: 66 74 65 72 20 75 70 64 61 74 69 6e 67 20 76 61  fter updating va
04d0: 72 69 61 62 6c 65 73 0a 55 50 44 41 54 45 44 3d  riables.UPDATED=
04e0: 22 22 0a 0a 23 20 54 68 69 73 20 73 63 72 69 70  ""..# This scrip
04f0: 74 20 69 73 20 65 78 65 63 75 74 65 64 20 69 6d  t is executed im
0500: 6d 65 64 69 61 74 65 6c 79 20 70 72 69 6f 72 20  mediately prior 
0510: 74 6f 20 63 72 65 61 74 69 6f 6e 20 6f 66 20 74  to creation of t
0520: 68 65 0a 23 20 74 61 72 62 61 6c 6c 0a 41 46 54  he.# tarball.AFT
0530: 45 52 3d 22 22 0a 0a 23 20 46 69 6c 65 73 20 6d  ER=""..# Files m
0540: 61 74 63 68 69 6e 67 20 74 68 65 73 65 20 28 73  atching these (s
0550: 70 61 63 65 2d 73 65 70 65 72 61 74 65 64 29 20  pace-seperated) 
0560: 70 61 74 74 65 72 6e 73 20 61 72 65 20 64 65 6c  patterns are del
0570: 65 74 65 64 0a 54 4d 50 53 3d 22 2a 2e 6f 75 74  eted.TMPS="*.out
0580: 20 48 45 41 44 45 52 20 62 75 69 6c 64 20 61 75   HEADER build au
0590: 74 6f 67 65 6e 2e 73 68 22 0a                    togen.sh".