Hex Artifact Content

Artifact 35a20954f49e6d51962457ef528bdada95c44ea6:


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 63 61 63 6b 65 79 22 0a 0a 23 20 54 68 69 73  "cackey"..# 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 56 45 52 53 3d 22 22 0a 0a 23 20 53 70 61 63  .VERS=""..# Spac
01e0: 65 20 73 70 65 72 61 74 65 64 20 6c 69 73 74 20  e sperated list 
01f0: 6f 66 20 64 6f 63 75 6d 65 6e 74 73 2c 20 69 66  of documents, if
0200: 20 74 68 65 79 20 65 78 69 73 74 2c 20 74 68 65   they exist, the
0210: 79 20 77 69 6c 6c 20 62 65 0a 23 20 70 72 65 66  y will be.# pref
0220: 69 78 65 64 20 77 69 74 68 20 74 68 65 20 63 6f  ixed with the co
0230: 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 44 4f  ntents of the DO
0240: 43 5f 48 44 52 20 66 69 6c 65 20 61 6e 64 20 73  C_HDR file and s
0250: 75 62 73 74 69 74 75 74 69 6f 6e 0a 23 20 77 69  ubstitution.# wi
0260: 6c 6c 20 6f 63 63 75 72 3a 0a 23 20 20 20 20 20  ll occur:.#     
0270: 40 40 55 54 49 4c 40 40 20 62 65 63 6f 6d 65 73  @@UTIL@@ becomes
0280: 20 74 68 65 20 75 74 69 6c 69 74 79 20 6e 61 6d   the utility nam
0290: 65 20 24 7b 55 54 49 4c 7d 0a 23 20 20 20 20 20  e ${UTIL}.#     
02a0: 40 40 56 45 52 53 40 40 20 62 65 63 6f 6d 65 73  @@VERS@@ becomes
02b0: 20 74 68 65 20 75 74 69 6c 69 74 79 20 76 65 72   the utility ver
02c0: 73 69 6f 6e 0a 23 20 20 20 20 20 40 40 44 41 54  sion.#     @@DAT
02d0: 45 40 40 20 62 65 63 6f 6d 65 73 20 74 68 65 20  E@@ becomes the 
02e0: 63 75 72 72 65 6e 74 20 64 61 74 65 0a 44 4f 43  current date.DOC
02f0: 53 3d 22 52 45 41 44 4d 45 2e 74 78 74 20 4c 49  S="README.txt LI
0300: 43 45 4e 53 45 22 0a 44 4f 43 5f 48 44 52 3d 22  CENSE".DOC_HDR="
0310: 48 45 41 44 45 52 22 0a 0a 23 20 54 68 65 73 65  HEADER"..# These
0320: 20 66 69 6c 65 73 20 66 6f 6c 6c 6f 77 20 74 68   files follow th
0330: 65 20 73 61 6d 65 20 63 6f 6e 76 65 6e 74 69 6f  e same conventio
0340: 6e 20 61 73 20 44 4f 43 53 2c 20 62 75 74 20 64  n as DOCS, but d
0350: 6f 6e 27 74 20 68 61 76 65 20 74 68 65 20 68 65  on't have the he
0360: 61 64 65 72 0a 23 20 74 61 63 6b 65 64 20 6f 6e  ader.# tacked on
0370: 74 6f 20 74 68 65 6d 2e 0a 55 50 44 41 54 45 5f  to them..UPDATE_
0380: 56 41 52 53 3d 22 63 61 63 6b 65 79 2e 73 70 65  VARS="cackey.spe
0390: 63 22 0a 0a 23 20 54 68 69 73 20 73 63 72 69 70  c"..# This scrip
03a0: 74 20 69 73 20 65 78 65 63 75 74 65 64 20 69 6d  t is executed im
03b0: 6d 65 64 69 61 74 65 6c 79 20 61 66 74 65 72 20  mediately after 
03c0: 63 6f 70 79 69 6e 67 20 74 68 65 20 66 69 6c 65  copying the file
03d0: 73 0a 23 20 74 6f 20 61 20 74 65 6d 70 20 64 69  s.# to a temp di
03e0: 72 65 63 74 6f 72 79 20 74 6f 20 61 74 74 65 6d  rectory to attem
03f0: 70 74 20 74 6f 20 63 6f 6d 70 69 6c 65 0a 42 45  pt to compile.BE
0400: 46 4f 52 45 3d 22 62 75 69 6c 64 2f 62 75 69 6c  FORE="build/buil
0410: 64 2e 73 68 22 0a 0a 23 20 54 68 69 73 20 73 63  d.sh"..# This sc
0420: 72 69 70 74 20 69 73 20 65 78 65 63 75 74 65 64  ript is executed
0430: 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 70 72 69   immediately pri
0440: 6f 72 20 74 6f 20 63 72 65 61 74 69 6f 6e 20 6f  or to creation o
0450: 66 20 74 68 65 0a 23 20 74 61 72 62 61 6c 6c 0a  f the.# tarball.
0460: 41 46 54 45 52 3d 22 22 0a 0a 23 20 46 69 6c 65  AFTER=""..# File
0470: 73 20 6d 61 74 63 68 69 6e 67 20 74 68 65 73 65  s matching these
0480: 20 28 73 70 61 63 65 2d 73 65 70 65 72 61 74 65   (space-seperate
0490: 64 29 20 70 61 74 74 65 72 6e 73 20 61 72 65 20  d) patterns are 
04a0: 64 65 6c 65 74 65 64 0a 54 4d 50 53 3d 22 2a 2e  deleted.TMPS="*.
04b0: 6f 75 74 20 48 45 41 44 45 52 20 77 6f 72 6b 20  out HEADER work 
04c0: 2e 70 72 6f 6a 65 63 74 5f 61 6c 69 61 73 65 73  .project_aliases
04d0: 20 62 75 69 6c 64 5f 64 65 6c 65 74 65 20 2a 7e   build_delete *~
04e0: 20 2a 2e 74 6d 70 22 0a                           *.tmp".