Hex Artifact Content

Artifact 921db724fcdf77e3212f4bdf8a8008ceea8dcaac:


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 6c 69 62 63 61 63 6b 65 79 2e 73 6f  NS="libcackey.so
00c0: 22 0a 0a 23 20 54 68 69 73 20 6c 69 73 74 73 20  "..# This lists 
00d0: 74 68 65 20 6e 61 6d 65 20 6f 66 20 66 69 6c 65  the name of file
00e0: 73 20 74 68 61 74 20 61 72 65 20 72 65 71 75 69  s that are requi
00f0: 72 65 64 20 74 6f 20 65 78 69 73 74 0a 52 45 51  red to exist.REQ
0100: 53 3d 22 22 0a 0a 23 20 56 65 72 73 69 6f 6e 20  S=""..# Version 
0110: 6f 66 20 75 74 69 6c 69 74 79 2c 20 69 66 20 65  of utility, if e
0120: 6d 70 74 79 20 69 74 20 77 69 6c 6c 20 62 65 20  mpty it will be 
0130: 67 75 65 73 73 65 64 2e 0a 23 20 49 66 20 73 65  guessed..# If se
0140: 74 20 74 6f 20 22 61 75 74 6f 22 20 69 74 20 77  t to "auto" it w
0150: 69 6c 6c 20 62 65 20 6d 61 69 6e 74 61 69 6e 65  ill be maintaine
0160: 64 20 69 6e 20 61 20 66 69 6c 65 20 63 61 6c 6c  d in a file call
0170: 65 64 20 2e 76 65 72 73 69 6f 6e 0a 23 20 69 6e  ed .version.# in
0180: 20 74 68 65 20 73 6f 75 72 63 65 20 64 69 72 65   the source dire
0190: 63 74 6f 72 79 20 61 6e 64 20 74 68 65 20 72 65  ctory and the re
01a0: 76 69 73 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69  vision will be i
01b0: 6e 63 72 65 6d 65 6e 74 65 64 0a 23 20 65 61 63  ncremented.# eac
01c0: 68 20 74 69 6d 65 20 61 20 22 6d 61 6b 65 61 72  h time a "makear
01d0: 63 68 22 20 69 73 20 64 6f 6e 65 2e 0a 56 45 52  ch" is done..VER
01e0: 53 3d 22 22 0a 0a 23 20 53 70 61 63 65 20 73 70  S=""..# Space sp
01f0: 65 72 61 74 65 64 20 6c 69 73 74 20 6f 66 20 64  erated list of d
0200: 6f 63 75 6d 65 6e 74 73 2c 20 69 66 20 74 68 65  ocuments, if the
0210: 79 20 65 78 69 73 74 2c 20 74 68 65 79 20 77 69  y exist, they wi
0220: 6c 6c 20 62 65 0a 23 20 70 72 65 66 69 78 65 64  ll be.# prefixed
0230: 20 77 69 74 68 20 74 68 65 20 63 6f 6e 74 65 6e   with the conten
0240: 74 73 20 6f 66 20 74 68 65 20 44 4f 43 5f 48 44  ts of the DOC_HD
0250: 52 20 66 69 6c 65 20 61 6e 64 20 73 75 62 73 74  R file and subst
0260: 69 74 75 74 69 6f 6e 0a 23 20 77 69 6c 6c 20 6f  itution.# will o
0270: 63 63 75 72 3a 0a 23 20 20 20 20 20 40 40 55 54  ccur:.#     @@UT
0280: 49 4c 40 40 20 62 65 63 6f 6d 65 73 20 74 68 65  IL@@ becomes the
0290: 20 75 74 69 6c 69 74 79 20 6e 61 6d 65 20 24 7b   utility name ${
02a0: 55 54 49 4c 7d 0a 23 20 20 20 20 20 40 40 56 45  UTIL}.#     @@VE
02b0: 52 53 40 40 20 62 65 63 6f 6d 65 73 20 74 68 65  RS@@ becomes the
02c0: 20 75 74 69 6c 69 74 79 20 76 65 72 73 69 6f 6e   utility version
02d0: 0a 23 20 20 20 20 20 40 40 44 41 54 45 40 40 20  .#     @@DATE@@ 
02e0: 62 65 63 6f 6d 65 73 20 74 68 65 20 63 75 72 72  becomes the curr
02f0: 65 6e 74 20 64 61 74 65 0a 44 4f 43 53 3d 22 52  ent date.DOCS="R
0300: 45 41 44 4d 45 2e 74 78 74 20 4c 49 43 45 4e 53  EADME.txt LICENS
0310: 45 22 0a 44 4f 43 5f 48 44 52 3d 22 48 45 41 44  E".DOC_HDR="HEAD
0320: 45 52 22 0a 0a 23 20 54 68 65 73 65 20 66 69 6c  ER"..# These fil
0330: 65 73 20 66 6f 6c 6c 6f 77 20 74 68 65 20 73 61  es follow the sa
0340: 6d 65 20 63 6f 6e 76 65 6e 74 69 6f 6e 20 61 73  me convention as
0350: 20 44 4f 43 53 2c 20 62 75 74 20 64 6f 6e 27 74   DOCS, but don't
0360: 20 68 61 76 65 20 74 68 65 20 68 65 61 64 65 72   have the header
0370: 0a 23 20 74 61 63 6b 65 64 20 6f 6e 74 6f 20 74  .# tacked onto t
0380: 68 65 6d 2e 0a 55 50 44 41 54 45 5f 56 41 52 53  hem..UPDATE_VARS
0390: 3d 22 63 61 63 6b 65 79 2e 73 70 65 63 22 0a 0a  ="cackey.spec"..
03a0: 23 20 54 68 69 73 20 73 63 72 69 70 74 20 69 73  # This script is
03b0: 20 65 78 65 63 75 74 65 64 20 69 6d 6d 65 64 69   executed immedi
03c0: 61 74 65 6c 79 20 61 66 74 65 72 20 63 6f 70 79  ately after copy
03d0: 69 6e 67 20 74 68 65 20 66 69 6c 65 73 0a 23 20  ing the files.# 
03e0: 74 6f 20 61 20 74 65 6d 70 20 64 69 72 65 63 74  to a temp direct
03f0: 6f 72 79 20 74 6f 20 61 74 74 65 6d 70 74 20 74  ory to attempt t
0400: 6f 20 63 6f 6d 70 69 6c 65 0a 42 45 46 4f 52 45  o compile.BEFORE
0410: 3d 22 62 75 69 6c 64 2f 62 75 69 6c 64 2e 73 68  ="build/build.sh
0420: 22 0a 0a 23 20 54 68 69 73 20 73 63 72 69 70 74  "..# This script
0430: 20 69 73 20 65 78 65 63 75 74 65 64 20 69 6d 6d   is executed imm
0440: 65 64 69 61 74 65 6c 79 20 70 72 69 6f 72 20 74  ediately prior t
0450: 6f 20 63 72 65 61 74 69 6f 6e 20 6f 66 20 74 68  o creation of th
0460: 65 0a 23 20 74 61 72 62 61 6c 6c 0a 41 46 54 45  e.# tarball.AFTE
0470: 52 3d 22 22 0a 0a 23 20 46 69 6c 65 73 20 6d 61  R=""..# Files ma
0480: 74 63 68 69 6e 67 20 74 68 65 73 65 20 28 73 70  tching these (sp
0490: 61 63 65 2d 73 65 70 65 72 61 74 65 64 29 20 70  ace-seperated) p
04a0: 61 74 74 65 72 6e 73 20 61 72 65 20 64 65 6c 65  atterns are dele
04b0: 74 65 64 0a 54 4d 50 53 3d 22 2a 2e 6f 75 74 20  ted.TMPS="*.out 
04c0: 48 45 41 44 45 52 20 77 6f 72 6b 20 2e 70 72 6f  HEADER work .pro
04d0: 6a 65 63 74 5f 61 6c 69 61 73 65 73 20 62 75 69  ject_aliases bui
04e0: 6c 64 5f 64 65 6c 65 74 65 20 2a 7e 20 2a 2e 74  ld_delete *~ *.t
04f0: 6d 70 22 0a                                      mp".