Hex Artifact Content

Artifact 33145011bf53faf79dcae666b795c6ef3a59f87e:


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 68 75 6e 74 65 72 32 22 0a 0a 23 20 54 68 69  "hunter2"..# 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 68 75 6e 74 65 72 32 22 0a 0a 23  INS="hunter2"..#
00c0: 20 54 68 69 73 20 6c 69 73 74 73 20 74 68 65 20   This lists the 
00d0: 6e 61 6d 65 20 6f 66 20 66 69 6c 65 73 20 74 68  name of files th
00e0: 61 74 20 61 72 65 20 72 65 71 75 69 72 65 64 20  at are required 
00f0: 74 6f 20 65 78 69 73 74 0a 52 45 51 53 3d 22 4d  to exist.REQS="M
0100: 61 6b 65 66 69 6c 65 20 6c 69 62 2f 6c 69 6e 75  akefile lib/linu
0110: 78 2d 78 38 36 5f 36 34 22 0a 0a 23 20 56 65 72  x-x86_64"..# Ver
0120: 73 69 6f 6e 20 6f 66 20 75 74 69 6c 69 74 79 2c  sion of utility,
0130: 20 69 66 20 65 6d 70 74 79 20 69 74 20 77 69 6c   if empty it wil
0140: 6c 20 62 65 20 67 75 65 73 73 65 64 2e 0a 23 20  l be guessed..# 
0150: 49 66 20 73 65 74 20 74 6f 20 22 61 75 74 6f 22  If set to "auto"
0160: 20 69 74 20 77 69 6c 6c 20 62 65 20 6d 61 69 6e   it will be main
0170: 74 61 69 6e 65 64 20 69 6e 20 61 20 66 69 6c 65  tained in a file
0180: 20 63 61 6c 6c 65 64 20 2e 76 65 72 73 69 6f 6e   called .version
0190: 0a 23 20 69 6e 20 74 68 65 20 73 6f 75 72 63 65  .# in the source
01a0: 20 64 69 72 65 63 74 6f 72 79 20 61 6e 64 20 74   directory and t
01b0: 68 65 20 72 65 76 69 73 69 6f 6e 20 77 69 6c 6c  he revision will
01c0: 20 62 65 20 69 6e 63 72 65 6d 65 6e 74 65 64 0a   be incremented.
01d0: 23 20 65 61 63 68 20 74 69 6d 65 20 61 20 22 6d  # each time a "m
01e0: 61 6b 65 61 72 63 68 22 20 69 73 20 64 6f 6e 65  akearch" is done
01f0: 2e 0a 23 0a 23 20 49 66 20 40 40 53 56 4e 4c 43  ..#.# If @@SVNLC
0200: 52 40 40 20 69 73 20 75 73 65 64 20 61 6e 79 77  R@@ is used anyw
0210: 68 65 72 65 20 69 6e 20 74 68 69 73 20 76 65 72  here in this ver
0220: 73 69 6f 6e 20 6e 75 6d 62 65 72 2c 20 69 74 20  sion number, it 
0230: 77 69 6c 6c 20 62 65 0a 23 20 72 65 70 6c 61 63  will be.# replac
0240: 65 64 20 77 69 74 68 20 74 68 65 20 68 69 67 68  ed with the high
0250: 65 73 74 20 6c 61 73 74 2d 63 68 61 6e 67 65 64  est last-changed
0260: 2d 72 65 76 20 66 72 6f 6d 20 74 68 65 20 6f 75  -rev from the ou
0270: 74 70 75 74 20 6f 66 0a 23 20 20 20 73 76 6e 20  tput of.#   svn 
0280: 69 6e 66 6f 20 2d 52 20 20 20 20 28 6f 72 20 30  info -R    (or 0
0290: 29 0a 56 45 52 53 3d 22 30 2e 31 22 0a 0a 23 20  ).VERS="0.1"..# 
02a0: 53 70 61 63 65 20 73 70 65 72 61 74 65 64 20 6c  Space sperated l
02b0: 69 73 74 20 6f 66 20 64 6f 63 75 6d 65 6e 74 73  ist of documents
02c0: 2c 20 69 66 20 74 68 65 79 20 65 78 69 73 74 2c  , if they exist,
02d0: 20 74 68 65 79 20 77 69 6c 6c 20 62 65 0a 23 20   they will be.# 
02e0: 70 72 65 66 69 78 65 64 20 77 69 74 68 20 74 68  prefixed with th
02f0: 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68  e contents of th
0300: 65 20 44 4f 43 5f 48 44 52 20 66 69 6c 65 20 61  e DOC_HDR file a
0310: 6e 64 20 73 75 62 73 74 69 74 75 74 69 6f 6e 0a  nd substitution.
0320: 23 20 77 69 6c 6c 20 6f 63 63 75 72 3a 0a 23 20  # will occur:.# 
0330: 20 20 20 20 40 40 55 54 49 4c 40 40 20 62 65 63      @@UTIL@@ bec
0340: 6f 6d 65 73 20 74 68 65 20 75 74 69 6c 69 74 79  omes the utility
0350: 20 6e 61 6d 65 20 24 7b 55 54 49 4c 7d 0a 23 20   name ${UTIL}.# 
0360: 20 20 20 20 40 40 56 45 52 53 40 40 20 62 65 63      @@VERS@@ bec
0370: 6f 6d 65 73 20 74 68 65 20 75 74 69 6c 69 74 79  omes the utility
0380: 20 76 65 72 73 69 6f 6e 0a 23 20 20 20 20 20 40   version.#     @
0390: 40 44 41 54 45 40 40 20 62 65 63 6f 6d 65 73 20  @DATE@@ becomes 
03a0: 74 68 65 20 63 75 72 72 65 6e 74 20 64 61 74 65  the current date
03b0: 0a 44 4f 43 53 3d 22 52 45 41 44 4d 45 2e 6d 64  .DOCS="README.md
03c0: 22 0a 44 4f 43 5f 48 44 52 3d 22 48 45 41 44 45  ".DOC_HDR="HEADE
03d0: 52 22 0a 0a 23 20 54 68 65 73 65 20 66 69 6c 65  R"..# These file
03e0: 73 20 66 6f 6c 6c 6f 77 20 74 68 65 20 73 61 6d  s follow the sam
03f0: 65 20 63 6f 6e 76 65 6e 74 69 6f 6e 20 61 73 20  e convention as 
0400: 44 4f 43 53 2c 20 62 75 74 20 64 6f 6e 27 74 20  DOCS, but don't 
0410: 68 61 76 65 20 74 68 65 20 68 65 61 64 65 72 0a  have the header.
0420: 23 20 74 61 63 6b 65 64 20 6f 6e 74 6f 20 74 68  # tacked onto th
0430: 65 6d 2e 0a 55 50 44 41 54 45 5f 56 41 52 53 3d  em..UPDATE_VARS=
0440: 22 22 0a 0a 23 20 54 68 69 73 20 73 63 72 69 70  ""..# This scrip
0450: 74 20 69 73 20 65 78 65 63 75 74 65 64 20 69 6d  t is executed im
0460: 6d 65 64 69 61 74 65 6c 79 20 61 66 74 65 72 20  mediately after 
0470: 63 6f 70 79 69 6e 67 20 74 68 65 20 66 69 6c 65  copying the file
0480: 73 0a 23 20 74 6f 20 61 20 74 65 6d 70 20 64 69  s.# to a temp di
0490: 72 65 63 74 6f 72 79 20 74 6f 20 61 74 74 65 6d  rectory to attem
04a0: 70 74 20 74 6f 20 63 6f 6d 70 69 6c 65 0a 42 45  pt to compile.BE
04b0: 46 4f 52 45 3d 22 2e 2f 62 75 69 6c 64 2f 70 72  FORE="./build/pr
04c0: 65 2e 73 68 22 0a 0a 23 20 54 68 69 73 20 73 63  e.sh"..# This sc
04d0: 72 69 70 74 20 69 73 20 65 78 65 63 75 74 65 64  ript is executed
04e0: 20 61 66 74 65 72 20 75 70 64 61 74 69 6e 67 20   after updating 
04f0: 76 61 72 69 61 62 6c 65 73 0a 55 50 44 41 54 45  variables.UPDATE
0500: 44 3d 22 22 0a 0a 23 20 54 68 69 73 20 73 63 72  D=""..# This scr
0510: 69 70 74 20 69 73 20 65 78 65 63 75 74 65 64 20  ipt is executed 
0520: 69 6d 6d 65 64 69 61 74 65 6c 79 20 70 72 69 6f  immediately prio
0530: 72 20 74 6f 20 63 72 65 61 74 69 6f 6e 20 6f 66  r to creation of
0540: 20 74 68 65 0a 23 20 74 61 72 62 61 6c 6c 0a 41   the.# tarball.A
0550: 46 54 45 52 3d 22 22 0a 0a 23 20 46 69 6c 65 73  FTER=""..# Files
0560: 20 6d 61 74 63 68 69 6e 67 20 74 68 65 73 65 20   matching these 
0570: 28 73 70 61 63 65 2d 73 65 70 65 72 61 74 65 64  (space-seperated
0580: 29 20 70 61 74 74 65 72 6e 73 20 61 72 65 20 64  ) patterns are d
0590: 65 6c 65 74 65 64 0a 54 4d 50 53 3d 22 2a 2e 6f  eleted.TMPS="*.o
05a0: 75 74 20 48 45 41 44 45 52 20 62 75 69 6c 64 22  ut HEADER build"
05b0: 0a                                               .