Hex Artifact Content

Artifact f8e1286c1471acd734c5707a03106b7ca9031d0d:


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 61 70 70 66 73 22 0a 0a 23 20 54 68 69 73 20  "appfs"..# This 
0060: 69 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 6f  is the name of o
0070: 75 74 70 75 74 20 66 69 6c 65 73 20 74 68 61 74  utput files that
0080: 20 73 68 6f 75 6c 64 20 65 78 69 73 74 20 61 66   should exist af
0090: 74 65 72 20 63 6f 6e 66 69 67 75 72 65 20 0a 23  ter configure .#
00a0: 20 70 72 6f 63 65 64 75 72 65 73 2e 0a 42 49 4e   procedures..BIN
00b0: 53 3d 22 61 70 70 66 73 64 22 0a 0a 23 20 54 68  S="appfsd"..# Th
00c0: 69 73 20 6c 69 73 74 73 20 74 68 65 20 6e 61 6d  is lists the nam
00d0: 65 20 6f 66 20 66 69 6c 65 73 20 74 68 61 74 20  e of files that 
00e0: 61 72 65 20 72 65 71 75 69 72 65 64 20 74 6f 20  are required to 
00f0: 65 78 69 73 74 0a 52 45 51 53 3d 22 22 0a 0a 23  exist.REQS=""..#
0100: 20 56 65 72 73 69 6f 6e 20 6f 66 20 75 74 69 6c   Version of util
0110: 69 74 79 2c 20 69 66 20 65 6d 70 74 79 20 69 74  ity, if empty it
0120: 20 77 69 6c 6c 20 62 65 20 67 75 65 73 73 65 64   will be guessed
0130: 2e 0a 23 20 49 66 20 73 65 74 20 74 6f 20 22 61  ..# If set to "a
0140: 75 74 6f 22 20 69 74 20 77 69 6c 6c 20 62 65 20  uto" it will be 
0150: 6d 61 69 6e 74 61 69 6e 65 64 20 69 6e 20 61 20  maintained in a 
0160: 66 69 6c 65 20 63 61 6c 6c 65 64 20 2e 76 65 72  file called .ver
0170: 73 69 6f 6e 0a 23 20 69 6e 20 74 68 65 20 73 6f  sion.# in the so
0180: 75 72 63 65 20 64 69 72 65 63 74 6f 72 79 20 61  urce directory a
0190: 6e 64 20 74 68 65 20 72 65 76 69 73 69 6f 6e 20  nd the revision 
01a0: 77 69 6c 6c 20 62 65 20 69 6e 63 72 65 6d 65 6e  will be incremen
01b0: 74 65 64 0a 23 20 65 61 63 68 20 74 69 6d 65 20  ted.# each time 
01c0: 61 20 22 6d 61 6b 65 61 72 63 68 22 20 69 73 20  a "makearch" is 
01d0: 64 6f 6e 65 2e 0a 23 0a 23 20 49 66 20 40 40 53  done..#.# If @@S
01e0: 56 4e 4c 43 52 40 40 20 69 73 20 75 73 65 64 20  VNLCR@@ is used 
01f0: 61 6e 79 77 68 65 72 65 20 69 6e 20 74 68 69 73  anywhere in this
0200: 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 2c   version number,
0210: 20 69 74 20 77 69 6c 6c 20 62 65 0a 23 20 72 65   it will be.# re
0220: 70 6c 61 63 65 64 20 77 69 74 68 20 74 68 65 20  placed with the 
0230: 68 69 67 68 65 73 74 20 6c 61 73 74 2d 63 68 61  highest last-cha
0240: 6e 67 65 64 2d 72 65 76 20 66 72 6f 6d 20 74 68  nged-rev from th
0250: 65 20 6f 75 74 70 75 74 20 6f 66 0a 23 20 20 20  e output of.#   
0260: 73 76 6e 20 69 6e 66 6f 20 2d 52 20 20 20 20 28  svn info -R    (
0270: 6f 72 20 30 29 0a 56 45 52 53 3d 22 24 28 67 72  or 0).VERS="$(gr
0280: 65 70 20 27 5e 41 50 50 46 53 5f 56 45 52 53 49  ep '^APPFS_VERSI
0290: 4f 4e 2e 2a 3d 27 20 4d 61 6b 65 66 69 6c 65 20  ON.*=' Makefile 
02a0: 7c 20 73 65 64 20 27 73 40 2e 2a 3d 20 2a 40 40  | sed 's@.*= *@@
02b0: 27 29 22 0a 0a 23 20 53 70 61 63 65 20 73 70 65  ')"..# Space spe
02c0: 72 61 74 65 64 20 6c 69 73 74 20 6f 66 20 64 6f  rated list of do
02d0: 63 75 6d 65 6e 74 73 2c 20 69 66 20 74 68 65 79  cuments, if they
02e0: 20 65 78 69 73 74 2c 20 74 68 65 79 20 77 69 6c   exist, they wil
02f0: 6c 20 62 65 0a 23 20 70 72 65 66 69 78 65 64 20  l be.# prefixed 
0300: 77 69 74 68 20 74 68 65 20 63 6f 6e 74 65 6e 74  with the content
0310: 73 20 6f 66 20 74 68 65 20 44 4f 43 5f 48 44 52  s of the DOC_HDR
0320: 20 66 69 6c 65 20 61 6e 64 20 73 75 62 73 74 69   file and substi
0330: 74 75 74 69 6f 6e 0a 23 20 77 69 6c 6c 20 6f 63  tution.# will oc
0340: 63 75 72 3a 0a 23 20 20 20 20 20 40 40 55 54 49  cur:.#     @@UTI
0350: 4c 40 40 20 62 65 63 6f 6d 65 73 20 74 68 65 20  L@@ becomes the 
0360: 75 74 69 6c 69 74 79 20 6e 61 6d 65 20 24 7b 55  utility name ${U
0370: 54 49 4c 7d 0a 23 20 20 20 20 20 40 40 56 45 52  TIL}.#     @@VER
0380: 53 40 40 20 62 65 63 6f 6d 65 73 20 74 68 65 20  S@@ becomes the 
0390: 75 74 69 6c 69 74 79 20 76 65 72 73 69 6f 6e 0a  utility version.
03a0: 23 20 20 20 20 20 40 40 44 41 54 45 40 40 20 62  #     @@DATE@@ b
03b0: 65 63 6f 6d 65 73 20 74 68 65 20 63 75 72 72 65  ecomes the curre
03c0: 6e 74 20 64 61 74 65 0a 44 4f 43 53 3d 22 52 45  nt date.DOCS="RE
03d0: 41 44 4d 45 22 0a 44 4f 43 5f 48 44 52 3d 22 48  ADME".DOC_HDR="H
03e0: 45 41 44 45 52 22 0a 0a 23 20 54 68 65 73 65 20  EADER"..# These 
03f0: 66 69 6c 65 73 20 66 6f 6c 6c 6f 77 20 74 68 65  files follow the
0400: 20 73 61 6d 65 20 63 6f 6e 76 65 6e 74 69 6f 6e   same convention
0410: 20 61 73 20 44 4f 43 53 2c 20 62 75 74 20 64 6f   as DOCS, but do
0420: 6e 27 74 20 68 61 76 65 20 74 68 65 20 68 65 61  n't have the hea
0430: 64 65 72 0a 23 20 74 61 63 6b 65 64 20 6f 6e 74  der.# tacked ont
0440: 6f 20 74 68 65 6d 2e 0a 55 50 44 41 54 45 5f 56  o them..UPDATE_V
0450: 41 52 53 3d 22 22 0a 0a 23 20 54 68 69 73 20 73  ARS=""..# This s
0460: 63 72 69 70 74 20 69 73 20 65 78 65 63 75 74 65  cript is execute
0470: 64 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 61 66  d immediately af
0480: 74 65 72 20 63 6f 70 79 69 6e 67 20 74 68 65 20  ter copying the 
0490: 66 69 6c 65 73 0a 23 20 74 6f 20 61 20 74 65 6d  files.# to a tem
04a0: 70 20 64 69 72 65 63 74 6f 72 79 20 74 6f 20 61  p directory to a
04b0: 74 74 65 6d 70 74 20 74 6f 20 63 6f 6d 70 69 6c  ttempt to compil
04c0: 65 0a 42 45 46 4f 52 45 3d 22 22 0a 0a 23 20 54  e.BEFORE=""..# T
04d0: 68 69 73 20 73 63 72 69 70 74 20 69 73 20 65 78  his script is ex
04e0: 65 63 75 74 65 64 20 61 66 74 65 72 20 75 70 64  ecuted after upd
04f0: 61 74 69 6e 67 20 76 61 72 69 61 62 6c 65 73 0a  ating variables.
0500: 55 50 44 41 54 45 44 3d 22 22 0a 0a 23 20 54 68  UPDATED=""..# Th
0510: 69 73 20 73 63 72 69 70 74 20 69 73 20 65 78 65  is script is exe
0520: 63 75 74 65 64 20 69 6d 6d 65 64 69 61 74 65 6c  cuted immediatel
0530: 79 20 70 72 69 6f 72 20 74 6f 20 63 72 65 61 74  y prior to creat
0540: 69 6f 6e 20 6f 66 20 74 68 65 0a 23 20 74 61 72  ion of the.# tar
0550: 62 61 6c 6c 0a 41 46 54 45 52 3d 22 22 0a 0a 23  ball.AFTER=""..#
0560: 20 46 69 6c 65 73 20 6d 61 74 63 68 69 6e 67 20   Files matching 
0570: 74 68 65 73 65 20 28 73 70 61 63 65 2d 73 65 70  these (space-sep
0580: 65 72 61 74 65 64 29 20 70 61 74 74 65 72 6e 73  erated) patterns
0590: 20 61 72 65 20 64 65 6c 65 74 65 64 0a 54 4d 50   are deleted.TMP
05a0: 53 3d 22 2e 66 6f 73 73 69 6c 2d 73 65 74 74 69  S=".fossil-setti
05b0: 6e 67 73 20 62 75 69 6c 64 22 0a                 ngs build".