Hex Artifact Content

Artifact 0dfabb437ffc3bf48f66fba2745465399f837617:


0000: 23 21 20 2f 62 69 6e 2f 62 61 73 68 0a 0a 56 45  #! /bin/bash..VE
0010: 52 53 49 4f 4e 53 3d 22 38 2e 35 2e 31 35 20 38  RSIONS="8.5.15 8
0020: 2e 36 2e 31 20 63 76 73 5f 48 45 41 44 22 0a 0a  .6.1 cvs_HEAD"..
0030: 23 20 46 69 6e 64 20 74 68 65 20 62 61 73 65 20  # Find the base 
0040: 64 69 72 65 63 74 6f 72 79 0a 66 6f 72 20 78 20  directory.for x 
0050: 69 6e 20 31 20 32 20 33 20 34 20 5f 5f 66 61 69  in 1 2 3 4 __fai
0060: 6c 5f 5f 3b 20 64 6f 0a 09 69 66 20 5b 20 22 24  l__; do..if [ "$
0070: 7b 78 7d 22 20 3d 20 22 5f 5f 66 61 69 6c 5f 5f  {x}" = "__fail__
0080: 22 20 5d 3b 20 74 68 65 6e 0a 09 09 65 63 68 6f  " ]; then...echo
0090: 20 27 55 6e 61 62 6c 65 20 74 6f 20 66 69 6e 64   'Unable to find
00a0: 20 4b 69 74 43 72 65 61 74 6f 72 2c 20 61 62 6f   KitCreator, abo
00b0: 72 74 69 6e 67 2e 27 20 3e 26 32 0a 0a 09 09 65  rting.' >&2....e
00c0: 78 69 74 20 31 0a 09 66 69 0a 0a 09 69 66 20 5b  xit 1..fi...if [
00d0: 20 2d 78 20 6b 69 74 63 72 65 61 74 6f 72 20 5d   -x kitcreator ]
00e0: 3b 20 74 68 65 6e 0a 09 09 62 72 65 61 6b 0a 09  ; then...break..
00f0: 66 69 0a 0a 09 63 64 20 2e 2e 0a 64 6f 6e 65 0a  fi...cd ...done.
0100: 0a 52 4f 4f 54 44 49 52 3d 22 24 28 70 77 64 29  .ROOTDIR="$(pwd)
0110: 22 0a 54 45 53 54 44 49 52 3d 22 24 7b 52 4f 4f  ".TESTDIR="${ROO
0120: 54 44 49 52 7d 2f 62 75 69 6c 64 2f 74 65 73 74  TDIR}/build/test
0130: 22 0a 65 78 70 6f 72 74 20 52 4f 4f 54 44 49 52  ".export ROOTDIR
0140: 20 54 45 53 54 44 49 52 0a 0a 23 20 48 61 6e 64   TESTDIR..# Hand
0150: 6c 65 20 63 6f 6d 6d 61 6e 64 2d 6c 69 6e 65 20  le command-line 
0160: 61 72 67 75 6d 65 6e 74 73 0a 69 66 20 5b 20 22  arguments.if [ "
0170: 24 31 22 20 3d 20 22 63 6c 65 61 6e 22 20 5d 3b  $1" = "clean" ];
0180: 20 74 68 65 6e 0a 09 72 6d 20 2d 72 66 20 22 24   then..rm -rf "$
0190: 7b 54 45 53 54 44 49 52 7d 2f 6b 69 74 73 22 0a  {TESTDIR}/kits".
01a0: 66 69 0a 0a 23 20 43 72 65 61 74 65 20 70 6c 61  fi..# Create pla
01b0: 63 65 20 74 6f 20 70 75 74 20 6b 69 74 73 0a 6d  ce to put kits.m
01c0: 6b 64 69 72 20 22 24 7b 54 45 53 54 44 49 52 7d  kdir "${TESTDIR}
01d0: 2f 6b 69 74 73 22 20 3e 2f 64 65 76 2f 6e 75 6c  /kits" >/dev/nul
01e0: 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a 6d 6b  l 2>/dev/null.mk
01f0: 64 69 72 20 22 24 7b 54 45 53 54 44 49 52 7d 2f  dir "${TESTDIR}/
0200: 6b 69 74 73 2f 66 61 69 6c 65 64 22 20 3e 2f 64  kits/failed" >/d
0210: 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e  ev/null 2>/dev/n
0220: 75 6c 6c 0a 69 66 20 5b 20 21 20 2d 64 20 22 24  ull.if [ ! -d "$
0230: 7b 54 45 53 54 44 49 52 7d 2f 6b 69 74 73 22 20  {TESTDIR}/kits" 
0240: 5d 3b 20 74 68 65 6e 0a 09 65 63 68 6f 20 27 55  ]; then..echo 'U
0250: 6e 61 62 6c 65 20 74 6f 20 63 72 65 61 74 65 20  nable to create 
0260: 6b 69 74 73 2f 20 64 69 72 65 63 74 6f 72 79 2c  kits/ directory,
0270: 20 61 62 6f 72 74 69 6e 67 2e 27 20 3e 26 32 0a   aborting.' >&2.
0280: 0a 09 65 78 69 74 20 31 0a 66 69 0a 0a 23 20 43  ..exit 1.fi..# C
0290: 6c 65 61 6e 75 70 0a 66 6f 72 20 66 69 6c 65 20  leanup.for file 
02a0: 69 6e 20 22 24 7b 54 45 53 54 44 49 52 7d 22 2f  in "${TESTDIR}"/
02b0: 6b 69 74 73 2f 2a 2e 6c 6f 67 3b 20 64 6f 0a 09  kits/*.log; do..
02c0: 69 66 20 65 63 68 6f 20 22 24 7b 66 69 6c 65 7d  if echo "${file}
02d0: 22 20 7c 20 67 72 65 70 20 2d 2d 20 27 2d 62 75  " | grep -- '-bu
02e0: 69 6c 64 2e 6c 6f 67 24 27 20 3e 2f 64 65 76 2f  ild.log$' >/dev/
02f0: 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 63 6f 6e  null; then...con
0300: 74 69 6e 75 65 0a 09 66 69 0a 0a 09 72 6d 20 2d  tinue..fi...rm -
0310: 66 20 22 24 7b 66 69 6c 65 7d 22 0a 64 6f 6e 65  f "${file}".done
0320: 0a 0a 23 20 44 69 73 61 62 6c 65 20 57 49 4e 45  ..# Disable WINE
0330: 20 64 65 62 75 67 67 69 6e 67 0a 57 49 4e 45 50   debugging.WINEP
0340: 52 45 46 49 58 33 32 3d 22 24 7b 54 45 53 54 44  REFIX32="${TESTD
0350: 49 52 7d 2f 2e 77 69 6e 65 22 0a 57 49 4e 45 50  IR}/.wine".WINEP
0360: 52 45 46 49 58 36 34 3d 22 24 7b 54 45 53 54 44  REFIX64="${TESTD
0370: 49 52 7d 2f 2e 77 69 6e 65 36 34 22 0a 65 78 70  IR}/.wine64".exp
0380: 6f 72 74 20 57 49 4e 45 50 52 45 46 49 58 33 32  ort WINEPREFIX32
0390: 20 57 49 4e 45 50 52 45 46 49 58 36 34 0a 72 6d   WINEPREFIX64.rm
03a0: 20 2d 72 66 20 22 24 7b 57 49 4e 45 50 52 45 46   -rf "${WINEPREF
03b0: 49 58 33 32 7d 22 20 22 24 7b 57 49 4e 45 50 52  IX32}" "${WINEPR
03c0: 45 46 49 58 36 34 7d 22 0a 6d 6b 64 69 72 20 22  EFIX64}".mkdir "
03d0: 24 7b 57 49 4e 45 50 52 45 46 49 58 33 32 7d 22  ${WINEPREFIX32}"
03e0: 20 22 24 7b 57 49 4e 45 50 52 45 46 49 58 36 34   "${WINEPREFIX64
03f0: 7d 22 0a 0a 63 61 74 20 3c 3c 20 5c 5f 45 4f 46  }"..cat << \_EOF
0400: 5f 20 3e 20 22 24 7b 57 49 4e 45 50 52 45 46 49  _ > "${WINEPREFI
0410: 58 33 32 7d 2f 75 70 64 61 74 65 2d 72 65 67 22  X32}/update-reg"
0420: 0a 5b 48 4b 45 59 5f 4c 4f 43 41 4c 5f 4d 41 43  .[HKEY_LOCAL_MAC
0430: 48 49 4e 45 5c 53 6f 66 74 77 61 72 65 5c 4d 69  HINE\Software\Mi
0440: 63 72 6f 73 6f 66 74 5c 57 69 6e 64 6f 77 73 20  crosoft\Windows 
0450: 4e 54 5c 43 75 72 72 65 6e 74 56 65 72 73 69 6f  NT\CurrentVersio
0460: 6e 5c 41 65 44 65 62 75 67 5d 0a 22 41 75 74 6f  n\AeDebug]."Auto
0470: 22 3d 64 77 6f 72 64 3a 30 30 30 30 30 30 30 31  "=dword:00000001
0480: 0a 22 44 65 62 75 67 67 65 72 22 3d 22 66 61 6c  ."Debugger"="fal
0490: 73 65 22 0a 5f 45 4f 46 5f 0a 63 70 20 22 24 7b  se"._EOF_.cp "${
04a0: 57 49 4e 45 50 52 45 46 49 58 33 32 7d 2f 75 70  WINEPREFIX32}/up
04b0: 64 61 74 65 2d 72 65 67 22 20 22 24 7b 57 49 4e  date-reg" "${WIN
04c0: 45 50 52 45 46 49 58 36 34 7d 2f 75 70 64 61 74  EPREFIX64}/updat
04d0: 65 2d 72 65 67 22 0a 0a 72 65 67 65 64 69 74 20  e-reg"..regedit 
04e0: 22 24 7b 57 49 4e 45 50 52 45 46 49 58 33 32 7d  "${WINEPREFIX32}
04f0: 2f 75 70 64 61 74 65 2d 72 65 67 22 20 3e 2f 64  /update-reg" >/d
0500: 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e  ev/null 2>/dev/n
0510: 75 6c 6c 0a 72 65 67 65 64 69 74 20 22 24 7b 57  ull.regedit "${W
0520: 49 4e 45 50 52 45 46 49 58 36 34 7d 2f 75 70 64  INEPREFIX64}/upd
0530: 61 74 65 2d 72 65 67 22 20 3e 2f 64 65 76 2f 6e  ate-reg" >/dev/n
0540: 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a  ull 2>/dev/null.
0550: 0a 23 20 53 74 61 72 74 20 58 76 66 62 20 66 6f  .# Start Xvfb fo
0560: 72 20 58 31 31 2d 62 61 73 65 64 20 74 65 73 74  r X11-based test
0570: 73 0a 58 56 46 42 5f 50 49 44 3d 22 24 28 0a 09  s.XVFB_PID="$(..
0580: 58 76 66 62 20 3a 33 31 20 2d 73 63 72 65 65 6e  Xvfb :31 -screen
0590: 20 30 20 38 30 30 78 36 30 30 78 32 34 20 2d 6e   0 800x600x24 -n
05a0: 6f 6c 69 73 74 65 6e 20 74 63 70 20 3e 2f 64 65  olisten tcp >/de
05b0: 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75  v/null 2>/dev/nu
05c0: 6c 6c 20 26 0a 09 65 63 68 6f 20 22 24 21 22 0a  ll &..echo "$!".
05d0: 29 22 0a 44 49 53 50 4c 41 59 3d 3a 33 31 0a 65  )".DISPLAY=:31.e
05e0: 78 70 6f 72 74 20 44 49 53 50 4c 41 59 0a 0a 69  xport DISPLAY..i
05f0: 66 20 5b 20 22 24 7b 42 49 47 42 55 49 4c 44 7d  f [ "${BIGBUILD}
0600: 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a  " = "1" ]; then.
0610: 09 6b 69 74 73 3d 22 24 28 65 63 68 6f 20 6e 6f  .kits="$(echo no
0620: 72 6d 61 6c 7b 2c 2d 7a 69 70 2c 2d 6e 6f 6d 6b  rmal{,-zip,-nomk
0630: 34 7d 7b 2c 2d 74 68 72 65 61 64 65 64 7d 7b 2c  4}{,-threaded}{,
0640: 2d 73 74 61 74 69 63 74 6b 2c 2d 6e 6f 74 6b 7d  -statictk,-notk}
0650: 20 6e 6f 72 6d 61 6c 7b 2c 2d 74 68 72 65 61 64   normal{,-thread
0660: 65 64 7d 7b 2c 2d 6e 6f 74 6b 7d 7b 2c 2d 6e 6f  ed}{,-notk}{,-no
0670: 6d 6b 34 7d 7b 2c 2d 64 65 62 75 67 7d 2d 6b 69  mk4}{,-debug}-ki
0680: 74 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38 36 7b  tdll win32-i586{
0690: 2c 2d 7a 69 70 2c 2d 6e 6f 6d 6b 34 7d 7b 2c 2d  ,-zip,-nomk4}{,-
06a0: 74 68 72 65 61 64 65 64 7d 7b 2c 2d 6e 6f 74 6b  threaded}{,-notk
06b0: 7d 20 77 69 6e 33 32 2d 69 35 38 36 7b 2c 2d 74  } win32-i586{,-t
06c0: 68 72 65 61 64 65 64 7d 7b 2c 2d 6e 6f 74 6b 7d  hreaded}{,-notk}
06d0: 7b 2c 2d 6e 6f 6d 6b 34 7d 2d 6b 69 74 64 6c 6c  {,-nomk4}-kitdll
06e0: 20 6d 69 6e 7b 2c 2d 73 74 61 74 69 63 7d 20 7b   min{,-static} {
06f0: 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 2d 6d 69 6e  linux-mipsel-min
0700: 7d 7b 2c 2d 64 65 62 75 67 7d 7b 2c 2d 6b 69 74  }{,-debug}{,-kit
0710: 64 6c 6c 7d 20 7b 6c 69 6e 75 78 2d 69 33 38 36  dll} {linux-i386
0720: 2c 73 6f 6c 61 72 69 73 2d 69 33 38 36 2c 73 6f  ,solaris-i386,so
0730: 6c 61 72 69 73 2d 61 6d 64 36 34 2c 73 6f 6c 61  laris-amd64,sola
0740: 72 69 73 2d 73 70 61 72 63 2c 73 6f 6c 61 72 69  ris-sparc,solari
0750: 73 2d 73 70 61 72 63 36 34 2c 66 72 65 65 62 73  s-sparc64,freebs
0760: 64 2d 61 6d 64 36 34 2c 6e 65 74 62 73 64 2d 61  d-amd64,netbsd-a
0770: 6d 64 36 34 7d 7b 2c 2d 7a 69 70 2c 2d 6e 6f 6d  md64}{,-zip,-nom
0780: 6b 34 7d 7b 2c 2d 74 68 72 65 61 64 65 64 7d 7b  k4}{,-threaded}{
0790: 2c 2d 73 74 61 74 69 63 74 6b 2c 2d 6e 6f 74 6b  ,-statictk,-notk
07a0: 7d 7b 2c 64 65 62 75 67 7d 20 7b 73 6f 6c 61 72  }{,debug} {solar
07b0: 69 73 2d 69 33 38 36 2c 73 6f 6c 61 72 69 73 2d  is-i386,solaris-
07c0: 61 6d 64 36 34 2c 73 6f 6c 61 72 69 73 2d 73 70  amd64,solaris-sp
07d0: 61 72 63 2c 73 6f 6c 61 72 69 73 2d 73 70 61 72  arc,solaris-spar
07e0: 63 36 34 2c 66 72 65 65 62 73 64 2d 61 6d 64 36  c64,freebsd-amd6
07f0: 34 2c 6e 65 74 62 73 64 2d 61 6d 64 36 34 7d 7b  4,netbsd-amd64}{
0800: 2c 2d 74 68 72 65 61 64 65 64 7d 7b 2c 2d 6e 6f  ,-threaded}{,-no
0810: 74 6b 7d 7b 2c 2d 6e 6f 6d 6b 34 7d 7b 2c 64 65  tk}{,-nomk4}{,de
0820: 62 75 67 7d 2d 6b 69 74 64 6c 6c 20 6e 65 74 62  bug}-kitdll netb
0830: 73 64 2d 69 33 38 36 7b 2c 2d 7a 69 70 2c 2d 6e  sd-i386{,-zip,-n
0840: 6f 6d 6b 34 7d 7b 2c 2d 74 68 72 65 61 64 65 64  omk4}{,-threaded
0850: 7d 7b 2c 64 65 62 75 67 7d 2d 6e 6f 74 6b 20 6e  }{,debug}-notk n
0860: 65 74 62 73 64 2d 69 33 38 36 7b 2c 2d 74 68 72  etbsd-i386{,-thr
0870: 65 61 64 65 64 7d 7b 2c 2d 6e 6f 6d 6b 34 7d 7b  eaded}{,-nomk4}{
0880: 2c 64 65 62 75 67 7d 2d 6e 6f 74 6b 2d 6b 69 74  ,debug}-notk-kit
0890: 64 6c 6c 20 61 6e 64 72 6f 69 64 2d 61 72 6d 2d  dll android-arm-
08a0: 6e 6f 74 6b 7b 2c 2d 64 65 62 75 67 7d 20 61 6e  notk{,-debug} an
08b0: 64 6f 69 64 2d 61 72 6d 2d 6e 6f 74 6b 7b 2c 2d  doid-arm-notk{,-
08c0: 64 65 62 75 67 7d 2d 6b 69 74 64 6c 6c 29 22 0a  debug}-kitdll)".
08d0: 65 6c 73 65 0a 09 6b 69 74 73 3d 22 6e 6f 72 6d  else..kits="norm
08e0: 61 6c 20 6e 6f 72 6d 61 6c 2d 7a 69 70 20 6e 6f  al normal-zip no
08f0: 72 6d 61 6c 2d 74 68 72 65 61 64 65 64 20 6e 6f  rmal-threaded no
0900: 72 6d 61 6c 2d 74 68 72 65 61 64 65 64 2d 7a 69  rmal-threaded-zi
0910: 70 20 6e 6f 72 6d 61 6c 2d 73 74 61 74 69 63 74  p normal-statict
0920: 6b 20 6e 6f 72 6d 61 6c 2d 6e 6f 74 6b 20 6e 6f  k normal-notk no
0930: 72 6d 61 6c 2d 74 68 72 65 61 64 65 64 2d 6e 6f  rmal-threaded-no
0940: 74 6b 20 6e 6f 72 6d 61 6c 2d 74 68 72 65 61 64  tk normal-thread
0950: 65 64 2d 7a 69 70 2d 6e 6f 74 6b 20 6e 6f 72 6d  ed-zip-notk norm
0960: 61 6c 2d 6e 6f 6d 6b 34 20 6e 6f 72 6d 61 6c 2d  al-nomk4 normal-
0970: 64 65 62 75 67 20 6d 69 6e 20 6d 69 6e 2d 73 74  debug min min-st
0980: 61 74 69 63 20 6e 6f 72 6d 61 6c 2d 6b 69 74 64  atic normal-kitd
0990: 6c 6c 20 6e 6f 72 6d 61 6c 2d 74 68 72 65 61 64  ll normal-thread
09a0: 65 64 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61 6c  ed-kitdll normal
09b0: 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 6e 6f 72  -notk-kitdll nor
09c0: 6d 61 6c 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c  mal-nomk4-kitdll
09d0: 20 6e 6f 72 6d 61 6c 2d 6e 6f 6d 6b 34 2d 6e 6f   normal-nomk4-no
09e0: 74 6b 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61 6c  tk-kitdll normal
09f0: 2d 74 68 72 65 61 64 65 64 2d 6e 6f 6d 6b 34 2d  -threaded-nomk4-
0a00: 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61 6c 2d 74 68  kitdll normal-th
0a10: 72 65 61 64 65 64 2d 6e 6f 74 6b 2d 6e 6f 6d 6b  readed-notk-nomk
0a20: 34 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61 6c 2d  4-kitdll normal-
0a30: 64 65 62 75 67 2d 6b 69 74 64 6c 6c 20 6d 69 6e  debug-kitdll min
0a40: 2d 6b 69 74 64 6c 6c 20 77 69 6e 33 32 2d 69 35  -kitdll win32-i5
0a50: 38 36 20 77 69 6e 33 32 2d 69 35 38 36 2d 7a 69  86 win32-i586-zi
0a60: 70 20 77 69 6e 33 32 2d 69 35 38 36 2d 74 68 72  p win32-i586-thr
0a70: 65 61 64 65 64 20 77 69 6e 33 32 2d 69 35 38 36  eaded win32-i586
0a80: 2d 74 68 72 65 61 64 65 64 2d 7a 69 70 20 77 69  -threaded-zip wi
0a90: 6e 33 32 2d 69 35 38 36 2d 6e 6f 74 6b 20 77 69  n32-i586-notk wi
0aa0: 6e 33 32 2d 69 35 38 36 2d 74 68 72 65 61 64 65  n32-i586-threade
0ab0: 64 2d 6e 6f 74 6b 20 77 69 6e 33 32 2d 69 35 38  d-notk win32-i58
0ac0: 36 2d 6e 6f 6d 6b 34 20 77 69 6e 33 32 2d 69 35  6-nomk4 win32-i5
0ad0: 38 36 2d 6b 69 74 64 6c 6c 20 77 69 6e 33 32 2d  86-kitdll win32-
0ae0: 69 35 38 36 2d 74 68 72 65 61 64 65 64 2d 6b 69  i586-threaded-ki
0af0: 74 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38 36 2d  tdll win32-i586-
0b00: 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 77 69 6e 33  notk-kitdll win3
0b10: 32 2d 69 35 38 36 2d 6e 6f 6d 6b 34 2d 6b 69 74  2-i586-nomk4-kit
0b20: 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38 36 2d 6e  dll win32-i586-n
0b30: 6f 6d 6b 34 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c  omk4-notk-kitdll
0b40: 20 77 69 6e 33 32 2d 69 35 38 36 2d 74 68 72 65   win32-i586-thre
0b50: 61 64 65 64 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c  aded-nomk4-kitdl
0b60: 6c 20 77 69 6e 33 32 2d 69 35 38 36 2d 74 68 72  l win32-i586-thr
0b70: 65 61 64 65 64 2d 6e 6f 74 6b 2d 6e 6f 6d 6b 34  eaded-notk-nomk4
0b80: 2d 6b 69 74 64 6c 6c 20 77 69 6e 36 34 2d 61 6d  -kitdll win64-am
0b90: 64 36 34 20 77 69 6e 36 34 2d 61 6d 64 36 34 2d  d64 win64-amd64-
0ba0: 7a 69 70 20 77 69 6e 36 34 2d 61 6d 64 36 34 2d  zip win64-amd64-
0bb0: 74 68 72 65 61 64 65 64 20 77 69 6e 36 34 2d 61  threaded win64-a
0bc0: 6d 64 36 34 2d 74 68 72 65 61 64 65 64 2d 7a 69  md64-threaded-zi
0bd0: 70 20 77 69 6e 36 34 2d 61 6d 64 36 34 2d 6e 6f  p win64-amd64-no
0be0: 74 6b 20 77 69 6e 36 34 2d 61 6d 64 36 34 2d 74  tk win64-amd64-t
0bf0: 68 72 65 61 64 65 64 2d 6e 6f 74 6b 20 77 69 6e  hreaded-notk win
0c00: 36 34 2d 61 6d 64 36 34 2d 6e 6f 6d 6b 34 20 77  64-amd64-nomk4 w
0c10: 69 6e 36 34 2d 61 6d 64 36 34 2d 6b 69 74 64 6c  in64-amd64-kitdl
0c20: 6c 20 77 69 6e 36 34 2d 61 6d 64 36 34 2d 74 68  l win64-amd64-th
0c30: 72 65 61 64 65 64 2d 6b 69 74 64 6c 6c 20 77 69  readed-kitdll wi
0c40: 6e 36 34 2d 61 6d 64 36 34 2d 6e 6f 74 6b 2d 6b  n64-amd64-notk-k
0c50: 69 74 64 6c 6c 20 77 69 6e 36 34 2d 61 6d 64 36  itdll win64-amd6
0c60: 34 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c 20 77  4-nomk4-kitdll w
0c70: 69 6e 36 34 2d 61 6d 64 36 34 2d 6e 6f 6d 6b 34  in64-amd64-nomk4
0c80: 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 77 69 6e  -notk-kitdll win
0c90: 36 34 2d 61 6d 64 36 34 2d 74 68 72 65 61 64 65  64-amd64-threade
0ca0: 64 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c 20 77  d-nomk4-kitdll w
0cb0: 69 6e 36 34 2d 61 6d 64 36 34 2d 74 68 72 65 61  in64-amd64-threa
0cc0: 64 65 64 2d 6e 6f 74 6b 2d 6e 6f 6d 6b 34 2d 6b  ded-notk-nomk4-k
0cd0: 69 74 64 6c 6c 20 6c 69 6e 75 78 2d 6d 69 70 73  itdll linux-mips
0ce0: 65 6c 2d 6e 6f 74 6b 20 6c 69 6e 75 78 2d 6d 69  el-notk linux-mi
0cf0: 70 73 65 6c 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c  psel-notk-kitdll
0d00: 20 6c 69 6e 75 78 2d 69 33 38 36 20 6c 69 6e 75   linux-i386 linu
0d10: 78 2d 69 33 38 36 2d 64 65 62 75 67 20 6c 69 6e  x-i386-debug lin
0d20: 75 78 2d 69 33 38 36 2d 6b 69 74 64 6c 6c 20 6c  ux-i386-kitdll l
0d30: 69 6e 75 78 2d 69 33 38 36 2d 64 65 62 75 67 2d  inux-i386-debug-
0d40: 6b 69 74 64 6c 6c 20 6c 69 6e 75 78 2d 69 33 38  kitdll linux-i38
0d50: 36 2d 6e 6f 74 6b 20 6c 69 6e 75 78 2d 69 33 38  6-notk linux-i38
0d60: 36 2d 6e 6f 74 6b 2d 64 65 62 75 67 20 6c 69 6e  6-notk-debug lin
0d70: 75 78 2d 69 33 38 36 2d 6e 6f 74 6b 2d 6b 69 74  ux-i386-notk-kit
0d80: 64 6c 6c 20 6c 69 6e 75 78 2d 69 33 38 36 2d 6e  dll linux-i386-n
0d90: 6f 74 6b 2d 64 65 62 75 67 2d 6b 69 74 64 6c 6c  otk-debug-kitdll
0da0: 20 73 6f 6c 61 72 69 73 2d 69 33 38 36 20 73 6f   solaris-i386 so
0db0: 6c 61 72 69 73 2d 69 33 38 36 2d 64 65 62 75 67  laris-i386-debug
0dc0: 20 73 6f 6c 61 72 69 73 2d 69 33 38 36 2d 6b 69   solaris-i386-ki
0dd0: 74 64 6c 6c 20 73 6f 6c 61 72 69 73 2d 69 33 38  tdll solaris-i38
0de0: 36 2d 64 65 62 75 67 2d 6b 69 74 64 6c 6c 20 73  6-debug-kitdll s
0df0: 6f 6c 61 72 69 73 2d 61 6d 64 36 34 20 73 6f 6c  olaris-amd64 sol
0e00: 61 72 69 73 2d 61 6d 64 36 34 2d 64 65 62 75 67  aris-amd64-debug
0e10: 20 73 6f 6c 61 72 69 73 2d 61 6d 64 36 34 2d 6b   solaris-amd64-k
0e20: 69 74 64 6c 6c 20 73 6f 6c 61 72 69 73 2d 61 6d  itdll solaris-am
0e30: 64 36 34 2d 64 65 62 75 67 2d 6b 69 74 64 6c 6c  d64-debug-kitdll
0e40: 20 73 6f 6c 61 72 69 73 2d 73 70 61 72 63 20 73   solaris-sparc s
0e50: 6f 6c 61 72 69 73 2d 73 70 61 72 63 2d 64 65 62  olaris-sparc-deb
0e60: 75 67 20 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  ug solaris-sparc
0e70: 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72 69 73 2d  -kitdll solaris-
0e80: 73 70 61 72 63 2d 64 65 62 75 67 2d 6b 69 74 64  sparc-debug-kitd
0e90: 6c 6c 20 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  ll solaris-sparc
0ea0: 36 34 20 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  64 solaris-sparc
0eb0: 36 34 2d 64 65 62 75 67 20 73 6f 6c 61 72 69 73  64-debug solaris
0ec0: 2d 73 70 61 72 63 36 34 2d 6b 69 74 64 6c 6c 20  -sparc64-kitdll 
0ed0: 73 6f 6c 61 72 69 73 2d 73 70 61 72 63 36 34 2d  solaris-sparc64-
0ee0: 64 65 62 75 67 2d 6b 69 74 64 6c 6c 20 66 72 65  debug-kitdll fre
0ef0: 65 62 73 64 2d 61 6d 64 36 34 20 66 72 65 65 62  ebsd-amd64 freeb
0f00: 73 64 2d 61 6d 64 36 34 2d 64 65 62 75 67 20 66  sd-amd64-debug f
0f10: 72 65 65 62 73 64 2d 61 6d 64 36 34 2d 6b 69 74  reebsd-amd64-kit
0f20: 64 6c 6c 20 66 72 65 65 62 73 64 2d 61 6d 64 36  dll freebsd-amd6
0f30: 34 2d 64 65 62 75 67 2d 6b 69 74 64 6c 6c 20 6e  4-debug-kitdll n
0f40: 65 74 62 73 64 2d 69 33 38 36 2d 6e 6f 74 6b 20  etbsd-i386-notk 
0f50: 6e 65 74 62 73 64 2d 69 33 38 36 2d 6e 6f 74 6b  netbsd-i386-notk
0f60: 2d 64 65 62 75 67 20 6e 65 74 62 73 64 2d 69 33  -debug netbsd-i3
0f70: 38 36 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 6e  86-notk-kitdll n
0f80: 65 74 62 73 64 2d 69 33 38 36 2d 6e 6f 74 6b 2d  etbsd-i386-notk-
0f90: 64 65 62 75 67 2d 6b 69 74 64 6c 6c 20 6e 65 74  debug-kitdll net
0fa0: 62 73 64 2d 61 6d 64 36 34 20 6e 65 74 62 73 64  bsd-amd64 netbsd
0fb0: 2d 61 6d 64 36 34 2d 64 65 62 75 67 20 6e 65 74  -amd64-debug net
0fc0: 62 73 64 2d 61 6d 64 36 34 2d 6b 69 74 64 6c 6c  bsd-amd64-kitdll
0fd0: 20 6e 65 74 62 73 64 2d 61 6d 64 36 34 2d 64 65   netbsd-amd64-de
0fe0: 62 75 67 2d 6b 69 74 64 6c 6c 20 61 6e 64 72 6f  bug-kitdll andro
0ff0: 69 64 2d 61 72 6d 2d 6e 6f 74 6b 20 61 6e 64 72  id-arm-notk andr
1000: 6f 69 64 2d 61 72 6d 2d 6e 6f 74 6b 2d 64 65 62  oid-arm-notk-deb
1010: 75 67 20 61 6e 64 72 6f 69 64 2d 61 72 6d 2d 6e  ug android-arm-n
1020: 6f 74 6b 2d 6b 69 74 64 6c 6c 20 61 6e 64 72 6f  otk-kitdll andro
1030: 69 64 2d 61 72 6d 2d 6e 6f 74 6b 2d 64 65 62 75  id-arm-notk-debu
1040: 67 2d 6b 69 74 64 6c 6c 22 0a 66 69 0a 0a 66 61  g-kitdll".fi..fa
1050: 69 6c 65 64 3d 22 22 0a 66 6f 72 20 6b 69 74 20  iled="".for kit 
1060: 69 6e 20 24 6b 69 74 73 3b 20 64 6f 0a 09 6b 69  in $kits; do..ki
1070: 74 63 72 65 61 74 6f 72 3d 22 2e 2f 6b 69 74 63  tcreator="./kitc
1080: 72 65 61 74 6f 72 22 0a 09 61 72 67 73 3d 22 22  reator"..args=""
1090: 0a 09 72 75 6e 6e 61 62 6c 65 3d 22 31 22 0a 09  ..runnable="1"..
10a0: 69 73 7a 69 70 3d 22 30 22 0a 09 73 74 61 74 69  iszip="0"..stati
10b0: 63 74 6b 3d 22 30 22 0a 09 6e 6f 74 6b 3d 22 30  ctk="0"..notk="0
10c0: 22 0a 09 6e 6f 6d 6b 34 3d 22 30 22 0a 09 78 63  "..nomk4="0"..xc
10d0: 6f 6d 70 69 6c 65 3d 22 30 22 0a 09 6b 69 74 64  ompile="0"..kitd
10e0: 6c 6c 3d 22 30 22 0a 09 6b 69 74 72 75 6e 63 6d  ll="0"..kitruncm
10f0: 64 3d 22 22 0a 0a 09 23 20 48 61 6e 64 6c 65 20  d=""...# Handle 
1100: 62 61 73 65 20 63 6f 6e 66 69 67 75 72 61 74 69  base configurati
1110: 6f 6e 0a 09 6f 73 3d 22 24 28 75 6e 61 6d 65 20  on..os="$(uname 
1120: 2d 73 20 7c 20 64 64 20 63 6f 6e 76 3d 6c 63 61  -s | dd conv=lca
1130: 73 65 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 29 22  se 2>/dev/null)"
1140: 0a 09 63 70 75 3d 22 24 28 75 6e 61 6d 65 20 2d  ..cpu="$(uname -
1150: 6d 20 7c 20 64 64 20 63 6f 6e 76 3d 6c 63 61 73  m | dd conv=lcas
1160: 65 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 7c 20  e 2>/dev/null | 
1170: 73 65 64 20 27 73 40 78 38 36 5f 36 34 40 61 6d  sed 's@x86_64@am
1180: 64 36 34 40 3b 73 40 69 2e 38 36 40 69 33 38 36  d64@;s@i.86@i386
1190: 40 27 29 22 0a 09 63 61 73 65 20 22 24 7b 6b 69  @')"..case "${ki
11a0: 74 7d 22 20 69 6e 0a 09 09 6e 6f 72 6d 61 6c 7c  t}" in...normal|
11b0: 6e 6f 72 6d 61 6c 2d 2a 29 0a 09 09 09 6b 69 74  normal-*)....kit
11c0: 3d 22 24 28 65 63 68 6f 20 22 24 7b 6b 69 74 7d  ="$(echo "${kit}
11d0: 22 20 7c 20 73 65 64 20 22 73 40 5e 6e 6f 72 6d  " | sed "s@^norm
11e0: 61 6c 40 24 6f 73 2d 24 63 70 75 40 22 29 22 0a  al@$os-$cpu@")".
11f0: 09 09 09 3b 3b 0a 09 09 6d 69 6e 7c 6d 69 6e 2d  ...;;...min|min-
1200: 6b 69 74 64 6c 6c 29 0a 09 09 09 6b 69 74 63 72  kitdll)....kitcr
1210: 65 61 74 6f 72 3d 22 2e 2f 62 75 69 6c 64 2f 6d  eator="./build/m
1220: 61 6b 65 2d 6d 69 6e 6b 69 74 22 0a 09 09 09 69  ake-minkit"....i
1230: 73 7a 69 70 3d 22 31 22 0a 09 09 09 6e 6f 74 6b  szip="1"....notk
1240: 3d 22 31 22 0a 09 09 09 6b 69 74 3d 22 24 28 65  ="1"....kit="$(e
1250: 63 68 6f 20 22 24 7b 6b 69 74 7d 22 20 7c 20 73  cho "${kit}" | s
1260: 65 64 20 22 73 40 5e 6d 69 6e 40 24 6f 73 2d 24  ed "s@^min@$os-$
1270: 63 70 75 2d 6d 69 6e 40 22 29 22 0a 09 09 09 3b  cpu-min@")"....;
1280: 3b 0a 09 09 6d 69 6e 2d 73 74 61 74 69 63 29 0a  ;...min-static).
1290: 09 09 09 6b 69 74 63 72 65 61 74 6f 72 3d 22 2e  ...kitcreator=".
12a0: 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69 6e 6b  /build/make-mink
12b0: 69 74 2d 73 74 61 74 69 63 22 0a 09 09 09 69 73  it-static"....is
12c0: 7a 69 70 3d 22 31 22 0a 09 09 09 6e 6f 74 6b 3d  zip="1"....notk=
12d0: 22 31 22 0a 09 09 09 6b 69 74 3d 22 24 7b 6f 73  "1"....kit="${os
12e0: 7d 2d 24 7b 63 70 75 7d 2d 6d 69 6e 2d 73 74 61  }-${cpu}-min-sta
12f0: 74 69 63 22 0a 09 09 09 3b 3b 0a 09 09 77 69 6e  tic"....;;...win
1300: 33 32 7c 77 69 6e 33 32 2d 2a 29 0a 09 09 09 6b  32|win32-*)....k
1310: 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75 69  itcreator="./bui
1320: 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 77 69 6e 33  ld/make-kit-win3
1330: 32 22 0a 09 09 09 78 63 6f 6d 70 69 6c 65 3d 22  2"....xcompile="
1340: 31 22 0a 09 09 09 72 75 6e 6e 61 62 6c 65 3d 22  1"....runnable="
1350: 31 22 0a 09 09 09 6b 69 74 72 75 6e 63 6d 64 3d  1"....kitruncmd=
1360: 22 77 69 6e 65 22 0a 09 09 09 3b 3b 0a 09 09 77  "wine"....;;...w
1370: 69 6e 36 34 7c 77 69 6e 36 34 2d 2a 29 0a 09 09  in64|win64-*)...
1380: 09 6b 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62  .kitcreator="./b
1390: 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 77 69  uild/make-kit-wi
13a0: 6e 33 32 22 0a 09 09 09 78 63 6f 6d 70 69 6c 65  n32"....xcompile
13b0: 3d 22 31 22 0a 09 09 09 72 75 6e 6e 61 62 6c 65  ="1"....runnable
13c0: 3d 22 31 22 0a 09 09 09 6b 69 74 72 75 6e 63 6d  ="1"....kitruncm
13d0: 64 3d 22 77 69 6e 65 36 34 22 0a 09 09 09 3b 3b  d="wine64"....;;
13e0: 0a 09 09 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 2d  ...linux-mipsel-
13f0: 6d 69 6e 7c 6c 69 6e 75 78 2d 6d 69 70 73 65 6c  min|linux-mipsel
1400: 2d 6d 69 6e 2d 6b 69 74 64 6c 6c 29 0a 09 09 09  -min-kitdll)....
1410: 6b 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75  kitcreator="./bu
1420: 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 6c 69 6e  ild/make-kit-lin
1430: 75 78 2d 6d 69 70 73 65 6c 22 0a 09 09 09 72 75  ux-mipsel"....ru
1440: 6e 6e 61 62 6c 65 3d 22 30 22 0a 09 09 09 78 63  nnable="0"....xc
1450: 6f 6d 70 69 6c 65 3d 22 31 22 0a 09 09 09 6e 6f  ompile="1"....no
1460: 74 6b 3d 22 31 22 0a 09 09 09 69 73 7a 69 70 3d  tk="1"....iszip=
1470: 22 31 22 0a 09 09 09 3b 3b 0a 09 09 6c 69 6e 75  "1"....;;...linu
1480: 78 2d 69 33 38 36 7c 6c 69 6e 75 78 2d 69 33 38  x-i386|linux-i38
1490: 36 2d 2a 29 0a 09 09 09 6b 69 74 63 72 65 61 74  6-*)....kitcreat
14a0: 6f 72 3d 22 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65  or="./build/make
14b0: 2d 6b 69 74 2d 6c 69 6e 75 78 2d 69 33 38 36 22  -kit-linux-i386"
14c0: 0a 09 09 09 78 63 6f 6d 70 69 6c 65 3d 22 31 22  ....xcompile="1"
14d0: 0a 09 09 09 3b 3b 0a 09 09 61 6e 64 72 6f 69 64  ....;;...android
14e0: 2d 61 72 6d 7c 61 6e 64 72 6f 69 64 2d 61 72 6d  -arm|android-arm
14f0: 2d 2a 7c 5c 0a 09 09 6c 69 6e 75 78 2d 6d 69 70  -*|\...linux-mip
1500: 73 65 6c 7c 6c 69 6e 75 78 2d 6d 69 70 73 65 6c  sel|linux-mipsel
1510: 2d 2a 7c 5c 0a 09 09 6c 69 6e 75 78 2d 61 6d 64  -*|\...linux-amd
1520: 36 34 7c 6c 69 6e 75 78 2d 61 6d 64 36 34 2d 2a  64|linux-amd64-*
1530: 7c 5c 0a 09 09 73 6f 6c 61 72 69 73 2d 69 33 38  |\...solaris-i38
1540: 36 7c 73 6f 6c 61 72 69 73 2d 69 33 38 36 2d 2a  6|solaris-i386-*
1550: 7c 5c 0a 09 09 73 6f 6c 61 72 69 73 2d 61 6d 64  |\...solaris-amd
1560: 36 34 7c 73 6f 6c 61 72 69 73 2d 61 6d 64 36 34  64|solaris-amd64
1570: 2d 2a 7c 5c 0a 09 09 73 6f 6c 61 72 69 73 2d 73  -*|\...solaris-s
1580: 70 61 72 63 7c 73 6f 6c 61 72 69 73 2d 73 70 61  parc|solaris-spa
1590: 72 63 2d 2a 7c 5c 0a 09 09 73 6f 6c 61 72 69 73  rc-*|\...solaris
15a0: 2d 73 70 61 72 63 36 34 7c 73 6f 6c 61 72 69 73  -sparc64|solaris
15b0: 2d 73 70 61 72 63 36 34 2d 2a 7c 5c 0a 09 09 66  -sparc64-*|\...f
15c0: 72 65 65 62 73 64 2d 61 6d 64 36 34 7c 66 72 65  reebsd-amd64|fre
15d0: 65 62 73 64 2d 61 6d 64 36 34 2d 2a 7c 5c 0a 09  ebsd-amd64-*|\..
15e0: 09 6e 65 74 62 73 64 2d 69 33 38 36 7c 6e 65 74  .netbsd-i386|net
15f0: 62 73 64 2d 69 33 38 36 2d 2a 7c 5c 0a 09 09 6e  bsd-i386-*|\...n
1600: 65 74 62 73 64 2d 61 6d 64 36 34 7c 6e 65 74 62  etbsd-amd64|netb
1610: 73 64 2d 61 6d 64 36 34 2d 2a 7c 5c 0a 09 09 68  sd-amd64-*|\...h
1620: 70 75 78 2d 68 70 70 61 36 34 7c 68 70 75 78 2d  pux-hppa64|hpux-
1630: 68 70 70 61 36 34 2d 2a 29 0a 09 09 09 70 6c 61  hppa64-*)....pla
1640: 74 66 6f 72 6d 3d 22 24 28 65 63 68 6f 20 22 24  tform="$(echo "$
1650: 7b 6b 69 74 7d 22 20 7c 20 63 75 74 20 2d 66 20  {kit}" | cut -f 
1660: 31 2d 32 20 2d 64 20 27 2d 27 29 22 0a 09 09 09  1-2 -d '-')"....
1670: 6b 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75  kitcreator="./bu
1680: 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 24 7b 70  ild/make-kit-${p
1690: 6c 61 74 66 6f 72 6d 7d 22 0a 09 09 09 72 75 6e  latform}"....run
16a0: 6e 61 62 6c 65 3d 22 30 22 0a 09 09 09 78 63 6f  nable="0"....xco
16b0: 6d 70 69 6c 65 3d 22 31 22 0a 09 09 09 69 73 7a  mpile="1"....isz
16c0: 69 70 3d 22 30 22 0a 0a 09 09 09 3b 3b 0a 09 65  ip="0".....;;..e
16d0: 73 61 63 0a 0a 09 69 66 20 65 63 68 6f 20 22 24  sac...if echo "$
16e0: 7b 6b 69 74 7d 22 20 7c 20 65 67 72 65 70 20 2d  {kit}" | egrep -
16f0: 2d 20 27 2d 28 68 70 70 61 36 34 7c 61 6d 64 36  - '-(hppa64|amd6
1700: 34 7c 73 70 61 72 63 36 34 29 2d 27 20 3e 2f 64  4|sparc64)-' >/d
1710: 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09  ev/null; then...
1720: 61 72 67 73 3d 22 24 7b 61 72 67 73 7d 20 2d 2d  args="${args} --
1730: 65 6e 61 62 6c 65 2d 36 34 62 69 74 22 0a 09 66  enable-64bit"..f
1740: 69 0a 0a 09 63 61 73 65 20 22 24 7b 6b 69 74 72  i...case "${kitr
1750: 75 6e 63 6d 64 7d 22 20 69 6e 0a 09 09 77 69 6e  uncmd}" in...win
1760: 65 29 0a 09 09 09 57 49 4e 45 50 52 45 46 49 58  e)....WINEPREFIX
1770: 3d 22 24 7b 57 49 4e 45 50 52 45 46 49 58 33 32  ="${WINEPREFIX32
1780: 7d 22 0a 09 09 09 65 78 70 6f 72 74 20 57 49 4e  }"....export WIN
1790: 45 50 52 45 46 49 58 0a 09 09 09 3b 3b 0a 09 09  EPREFIX....;;...
17a0: 77 69 6e 65 36 34 29 0a 09 09 09 57 49 4e 45 50  wine64)....WINEP
17b0: 52 45 46 49 58 3d 22 24 7b 57 49 4e 45 50 52 45  REFIX="${WINEPRE
17c0: 46 49 58 36 34 7d 22 0a 09 09 09 65 78 70 6f 72  FIX64}"....expor
17d0: 74 20 57 49 4e 45 50 52 45 46 49 58 0a 09 09 09  t WINEPREFIX....
17e0: 3b 3b 0a 09 65 73 61 63 0a 0a 09 69 66 20 5b 20  ;;..esac...if [ 
17f0: 22 24 7b 78 63 6f 6d 70 69 6c 65 7d 22 20 21 3d  "${xcompile}" !=
1800: 20 22 30 22 20 5d 3b 20 74 68 65 6e 0a 09 09 6b   "0" ]; then...k
1810: 69 74 3d 22 24 7b 6b 69 74 7d 2d 78 63 6f 6d 70  it="${kit}-xcomp
1820: 69 6c 65 22 0a 09 66 69 0a 0a 09 23 20 48 61 6e  ile"..fi...# Han
1830: 64 6c 65 20 61 64 64 69 74 69 6f 6e 61 6c 20 63  dle additional c
1840: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a 09 74 65  onfiguration..te
1850: 6d 70 6b 69 74 3d 22 2d 24 7b 6b 69 74 7d 2d 22  mpkit="-${kit}-"
1860: 0a 09 66 6f 72 20 74 72 79 20 69 6e 20 31 20 32  ..for try in 1 2
1870: 20 33 20 34 20 35 20 36 20 37 20 38 20 39 3b 20   3 4 5 6 7 8 9; 
1880: 64 6f 0a 09 09 63 61 73 65 20 22 2d 24 7b 74 65  do...case "-${te
1890: 6d 70 6b 69 74 7d 2d 22 20 69 6e 0a 09 09 09 2a  mpkit}-" in....*
18a0: 2d 74 68 72 65 61 64 65 64 2d 2a 29 0a 09 09 09  -threaded-*)....
18b0: 09 74 65 6d 70 6b 69 74 3d 22 24 28 65 63 68 6f  .tempkit="$(echo
18c0: 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22 20 7c 20   "${tempkit}" | 
18d0: 73 65 64 20 27 73 40 2d 74 68 72 65 61 64 65 64  sed 's@-threaded
18e0: 2d 40 2d 40 27 29 22 0a 09 09 09 09 61 72 67 73  -@-@')".....args
18f0: 3d 22 24 7b 61 72 67 73 7d 20 2d 2d 65 6e 61 62  ="${args} --enab
1900: 6c 65 2d 74 68 72 65 61 64 73 22 0a 09 09 09 09  le-threads".....
1910: 3b 3b 0a 09 09 09 2a 2d 7a 69 70 2d 2a 29 0a 09  ;;....*-zip-*)..
1920: 09 09 09 74 65 6d 70 6b 69 74 3d 22 24 28 65 63  ...tempkit="$(ec
1930: 68 6f 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22 20  ho "${tempkit}" 
1940: 7c 20 73 65 64 20 27 73 40 2d 7a 69 70 2d 40 2d  | sed 's@-zip-@-
1950: 40 27 29 22 0a 09 09 09 09 61 72 67 73 3d 22 24  @')".....args="$
1960: 7b 61 72 67 73 7d 20 2d 2d 65 6e 61 62 6c 65 2d  {args} --enable-
1970: 6b 69 74 2d 73 74 6f 72 61 67 65 3d 7a 69 70 22  kit-storage=zip"
1980: 0a 09 09 09 09 69 73 7a 69 70 3d 22 31 22 0a 09  .....iszip="1"..
1990: 09 09 09 3b 3b 0a 09 09 09 2a 2d 73 74 61 74 69  ...;;....*-stati
19a0: 63 74 6b 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b  ctk-*).....tempk
19b0: 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65  it="$(echo "${te
19c0: 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73  mpkit}" | sed 's
19d0: 40 2d 73 74 61 74 69 63 74 6b 2d 40 2d 40 27 29  @-statictk-@-@')
19e0: 22 0a 09 09 09 09 69 66 20 5b 20 22 24 7b 6e 6f  ".....if [ "${no
19f0: 74 6b 7d 22 20 3d 20 22 30 22 20 5d 3b 20 74 68  tk}" = "0" ]; th
1a00: 65 6e 0a 09 09 09 09 09 73 74 61 74 69 63 74 6b  en......statictk
1a10: 3d 22 31 22 0a 09 09 09 09 65 6c 73 65 0a 09 09  ="1".....else...
1a20: 09 09 09 65 63 68 6f 20 22 24 7b 6b 69 74 7d 3a  ...echo "${kit}:
1a30: 20 55 6e 61 62 6c 65 20 74 6f 20 63 72 65 61 74   Unable to creat
1a40: 65 20 53 74 61 74 69 63 54 6b 20 61 6e 64 20 4e  e StaticTk and N
1a50: 6f 54 6b 2c 20 69 67 6e 6f 72 69 6e 67 20 53 74  oTk, ignoring St
1a60: 61 74 69 63 54 6b 22 20 3e 26 32 0a 09 09 09 09  aticTk" >&2.....
1a70: 66 69 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d 6e  fi.....;;....*-n
1a80: 6f 74 6b 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b  otk-*).....tempk
1a90: 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65  it="$(echo "${te
1aa0: 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73  mpkit}" | sed 's
1ab0: 40 2d 6e 6f 74 6b 2d 40 2d 40 27 29 22 0a 09 09  @-notk-@-@')"...
1ac0: 09 09 69 66 20 5b 20 22 24 7b 73 74 61 74 69 63  ..if [ "${static
1ad0: 74 6b 7d 22 20 3d 20 22 30 22 20 5d 3b 20 74 68  tk}" = "0" ]; th
1ae0: 65 6e 0a 09 09 09 09 09 6e 6f 74 6b 3d 22 31 22  en......notk="1"
1af0: 0a 09 09 09 09 65 6c 73 65 0a 09 09 09 09 09 65  .....else......e
1b00: 63 68 6f 20 22 24 7b 6b 69 74 7d 3a 20 55 6e 61  cho "${kit}: Una
1b10: 62 6c 65 20 74 6f 20 63 72 65 61 74 65 20 53 74  ble to create St
1b20: 61 74 69 63 54 6b 20 61 6e 64 20 4e 6f 54 6b 2c  aticTk and NoTk,
1b30: 20 69 67 6e 6f 72 69 6e 67 20 4e 6f 54 6b 22 20   ignoring NoTk" 
1b40: 3e 26 32 0a 09 09 09 09 66 69 0a 09 09 09 09 3b  >&2.....fi.....;
1b50: 3b 0a 09 09 09 2a 2d 6e 6f 6d 6b 34 2d 2a 29 0a  ;....*-nomk4-*).
1b60: 09 09 09 09 74 65 6d 70 6b 69 74 3d 22 24 28 65  ....tempkit="$(e
1b70: 63 68 6f 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22  cho "${tempkit}"
1b80: 20 7c 20 73 65 64 20 27 73 40 2d 6e 6f 6d 6b 34   | sed 's@-nomk4
1b90: 2d 40 2d 40 27 29 22 0a 09 09 09 09 6e 6f 6d 6b  -@-@')".....nomk
1ba0: 34 3d 22 31 22 0a 09 09 09 09 69 73 7a 69 70 3d  4="1".....iszip=
1bb0: 22 31 22 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d  "1".....;;....*-
1bc0: 6b 69 74 64 6c 6c 2d 2a 29 0a 09 09 09 09 74 65  kitdll-*).....te
1bd0: 6d 70 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24  mpkit="$(echo "$
1be0: 7b 74 65 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64  {tempkit}" | sed
1bf0: 20 27 73 40 2d 6b 69 74 64 6c 6c 2d 40 2d 40 27   's@-kitdll-@-@'
1c00: 29 22 0a 09 09 09 09 6b 69 74 64 6c 6c 3d 22 31  )".....kitdll="1
1c10: 22 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d 64 65  ".....;;....*-de
1c20: 62 75 67 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b  bug-*).....tempk
1c30: 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65  it="$(echo "${te
1c40: 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73  mpkit}" | sed 's
1c50: 40 2d 64 65 62 75 67 2d 40 2d 40 27 29 22 0a 09  @-debug-@-@')"..
1c60: 09 09 09 61 72 67 73 3d 22 24 7b 61 72 67 73 7d  ...args="${args}
1c70: 20 2d 2d 65 6e 61 62 6c 65 2d 73 79 6d 62 6f 6c   --enable-symbol
1c80: 73 22 0a 09 09 09 09 3b 3b 0a 09 09 65 73 61 63  s".....;;...esac
1c90: 0a 09 64 6f 6e 65 0a 0a 09 69 66 20 5b 20 22 24  ..done...if [ "$
1ca0: 7b 6b 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20  {kitdll}" = "1" 
1cb0: 5d 3b 20 74 68 65 6e 0a 09 09 23 20 43 75 72 72  ]; then...# Curr
1cc0: 65 6e 74 6c 79 20 6e 6f 20 4b 69 74 44 4c 4c 20  ently no KitDLL 
1cd0: 75 73 65 73 20 5a 69 70 0a 09 09 69 73 7a 69 70  uses Zip...iszip
1ce0: 3d 22 30 22 0a 09 66 69 0a 0a 09 66 6f 72 20 76  ="0"..fi...for v
1cf0: 65 72 73 69 6f 6e 20 69 6e 20 24 7b 56 45 52 53  ersion in ${VERS
1d00: 49 4f 4e 53 7d 3b 20 64 6f 0a 09 09 23 20 57 6f  IONS}; do...# Wo
1d10: 72 6b 20 61 72 6f 75 6e 64 20 63 68 61 6e 67 65  rk around change
1d20: 73 20 69 6e 20 64 65 66 61 75 6c 74 20 62 65 68  s in default beh
1d30: 61 76 69 6f 75 72 0a 09 09 69 66 20 5b 20 22 24  aviour...if [ "$
1d40: 7b 76 65 72 73 69 6f 6e 7d 22 20 3d 20 22 63 76  {version}" = "cv
1d50: 73 5f 48 45 41 44 22 20 5d 3b 20 74 68 65 6e 0a  s_HEAD" ]; then.
1d60: 09 09 09 6b 69 74 3d 22 24 28 65 63 68 6f 20 22  ...kit="$(echo "
1d70: 24 7b 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73  ${kit}" | sed 's
1d80: 40 2d 74 68 72 65 61 64 65 64 40 2d 75 6e 74 68  @-threaded@-unth
1d90: 72 65 61 64 65 64 40 27 29 22 0a 09 09 09 61 72  readed@')"....ar
1da0: 67 73 3d 22 24 28 65 63 68 6f 20 22 24 7b 61 72  gs="$(echo "${ar
1db0: 67 73 7d 22 20 7c 20 73 65 64 20 27 73 40 20 2d  gs}" | sed 's@ -
1dc0: 2d 65 6e 61 62 6c 65 2d 74 68 72 65 61 64 73 40  -enable-threads@
1dd0: 20 2d 2d 64 69 73 61 62 6c 65 2d 74 68 72 65 61   --disable-threa
1de0: 64 73 40 27 29 22 0a 09 09 66 69 0a 0a 09 09 23  ds@')"...fi....#
1df0: 20 43 72 65 61 74 65 20 54 63 6c 6b 69 74 0a 09   Create Tclkit..
1e00: 09 69 66 20 5b 20 22 24 7b 6b 69 74 64 6c 6c 7d  .if [ "${kitdll}
1e10: 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a  " = "1" ]; then.
1e20: 09 09 09 63 72 65 61 74 65 64 6b 69 74 3d 22 6c  ...createdkit="l
1e30: 69 62 74 63 6c 6b 69 74 2a 2e 64 6c 6c 20 6c 69  ibtclkit*.dll li
1e40: 62 74 63 6c 6b 69 74 2a 2e 2a 22 0a 09 09 09 6f  btclkit*.*"....o
1e50: 75 74 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53  utputname="${TES
1e60: 54 44 49 52 7d 2f 6b 69 74 73 2f 6c 69 62 74 63  TDIR}/kits/libtc
1e70: 6c 6b 69 74 2d 24 7b 76 65 72 73 69 6f 6e 7d 2d  lkit-${version}-
1e80: 24 7b 6b 69 74 7d 22 0a 09 09 09 66 61 69 6c 6f  ${kit}"....failo
1e90: 75 74 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53  utputname="${TES
1ea0: 54 44 49 52 7d 2f 6b 69 74 73 2f 66 61 69 6c 65  TDIR}/kits/faile
1eb0: 64 2f 6c 69 62 74 63 6c 6b 69 74 2d 24 7b 76 65  d/libtclkit-${ve
1ec0: 72 73 69 6f 6e 7d 2d 24 7b 6b 69 74 7d 22 0a 09  rsion}-${kit}"..
1ed0: 09 09 73 64 6b 3d 22 6c 69 62 74 63 6c 6b 69 74  ..sdk="libtclkit
1ee0: 2d 73 64 6b 2d 24 7b 76 65 72 73 69 6f 6e 7d 2e  -sdk-${version}.
1ef0: 74 61 72 2e 67 7a 22 0a 09 09 65 6c 73 65 0a 09  tar.gz"...else..
1f00: 09 09 63 72 65 61 74 65 64 6b 69 74 3d 22 74 63  ..createdkit="tc
1f10: 6c 6b 69 74 2d 24 7b 76 65 72 73 69 6f 6e 7d 22  lkit-${version}"
1f20: 0a 09 09 09 6f 75 74 70 75 74 6e 61 6d 65 3d 22  ....outputname="
1f30: 24 7b 54 45 53 54 44 49 52 7d 2f 6b 69 74 73 2f  ${TESTDIR}/kits/
1f40: 74 63 6c 6b 69 74 2d 24 7b 76 65 72 73 69 6f 6e  tclkit-${version
1f50: 7d 2d 24 7b 6b 69 74 7d 22 0a 09 09 09 66 61 69  }-${kit}"....fai
1f60: 6c 6f 75 74 70 75 74 6e 61 6d 65 3d 22 24 7b 54  loutputname="${T
1f70: 45 53 54 44 49 52 7d 2f 6b 69 74 73 2f 66 61 69  ESTDIR}/kits/fai
1f80: 6c 65 64 2f 74 63 6c 6b 69 74 2d 24 7b 76 65 72  led/tclkit-${ver
1f90: 73 69 6f 6e 7d 2d 24 7b 6b 69 74 7d 22 0a 09 09  sion}-${kit}"...
1fa0: 09 73 64 6b 3d 27 27 0a 09 09 66 69 0a 09 09 62  .sdk=''...fi...b
1fb0: 75 69 6c 64 6c 6f 67 3d 22 24 7b 6f 75 74 70 75  uildlog="${outpu
1fc0: 74 6e 61 6d 65 7d 2d 62 75 69 6c 64 2e 6c 6f 67  tname}-build.log
1fd0: 22 0a 09 09 66 61 69 6c 62 75 69 6c 64 6c 6f 67  "...failbuildlog
1fe0: 3d 22 24 7b 66 61 69 6c 6f 75 74 70 75 74 6e 61  ="${failoutputna
1ff0: 6d 65 7d 2d 62 75 69 6c 64 2e 6c 6f 67 22 0a 09  me}-build.log"..
2000: 09 74 65 73 74 72 65 73 75 6c 74 73 6c 6f 67 3d  .testresultslog=
2010: 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 74  "${outputname}-t
2020: 65 73 74 73 2e 6c 6f 67 22 0a 0a 09 09 69 66 20  ests.log"....if 
2030: 5b 20 21 20 2d 66 20 22 24 7b 6f 75 74 70 75 74  [ ! -f "${output
2040: 6e 61 6d 65 7d 22 20 5d 3b 20 74 68 65 6e 0a 09  name}" ]; then..
2050: 09 09 75 6e 73 65 74 20 4b 49 54 43 52 45 41 54  ..unset KITCREAT
2060: 4f 52 5f 50 4b 47 53 20 53 54 41 54 49 43 54 4b  OR_PKGS STATICTK
2070: 20 53 54 52 49 50 0a 0a 09 09 09 69 66 20 5b 20   STRIP.....if [ 
2080: 2d 66 20 22 24 7b 66 61 69 6c 6f 75 74 70 75 74  -f "${failoutput
2090: 6e 61 6d 65 7d 22 20 5d 3b 20 74 68 65 6e 0a 09  name}" ]; then..
20a0: 09 09 09 65 63 68 6f 20 22 53 6b 69 70 70 69 6e  ...echo "Skippin
20b0: 67 20 72 65 62 75 69 6c 64 69 6e 67 20 66 61 69  g rebuilding fai
20c0: 6c 65 64 20 6b 69 74 20 24 7b 76 65 72 73 69 6f  led kit ${versio
20d0: 6e 7d 2f 24 7b 6b 69 74 7d 20 2e 2e 2e 22 0a 0a  n}/${kit} ..."..
20e0: 09 09 09 09 66 61 69 6c 65 64 3d 22 24 7b 66 61  ....failed="${fa
20f0: 69 6c 65 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d  iled} ${version}
2100: 2f 24 7b 6b 69 74 7d 2d 62 75 69 6c 64 22 0a 0a  /${kit}-build"..
2110: 09 09 09 09 63 6f 6e 74 69 6e 75 65 0a 09 09 09  ....continue....
2120: 66 69 0a 0a 09 09 09 72 6d 20 2d 66 20 74 63 6c  fi.....rm -f tcl
2130: 73 68 0a 09 09 09 2e 2f 6b 69 74 63 72 65 61 74  sh...../kitcreat
2140: 6f 72 20 63 6c 65 61 6e 20 3e 2f 64 65 76 2f 6e  or clean >/dev/n
2150: 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a  ull 2>/dev/null.
2160: 0a 09 09 09 65 63 68 6f 20 22 43 72 65 61 74 69  ....echo "Creati
2170: 6e 67 20 54 63 6c 6b 69 74 20 24 7b 76 65 72 73  ng Tclkit ${vers
2180: 69 6f 6e 7d 2f 24 7b 6b 69 74 7d 2e 2e 2e 22 0a  ion}/${kit}...".
2190: 09 09 09 65 63 68 6f 20 22 20 2a 2a 2a 20 42 75  ...echo " *** Bu
21a0: 69 6c 64 20 73 74 61 72 74 65 64 20 24 28 77 68  ild started $(wh
21b0: 6f 61 6d 69 29 40 24 28 68 6f 73 74 6e 61 6d 65  oami)@$(hostname
21c0: 29 20 6f 6e 20 24 28 64 61 74 65 29 22 20 3e 20  ) on $(date)" > 
21d0: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09  "${buildlog}"...
21e0: 09 65 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62  .echo '' >> "${b
21f0: 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 65 63 68  uildlog}"....ech
2200: 6f 20 22 20 2a 2a 2a 20 42 75 69 6c 64 20 53 63  o " *** Build Sc
2210: 72 69 70 74 22 20 3e 3e 20 22 24 7b 62 75 69 6c  ript" >> "${buil
2220: 64 6c 6f 67 7d 22 0a 0a 09 09 09 69 66 20 5b 20  dlog}".....if [ 
2230: 22 24 7b 6e 6f 74 6b 7d 22 20 3d 20 22 31 22 20  "${notk}" = "1" 
2240: 5d 3b 20 74 68 65 6e 0a 09 09 09 09 4b 49 54 43  ]; then.....KITC
2250: 52 45 41 54 4f 52 5f 50 4b 47 53 3d 27 69 74 63  REATOR_PKGS='itc
2260: 6c 20 6d 6b 34 74 63 6c 27 0a 09 09 09 66 69 0a  l mk4tcl'....fi.
2270: 0a 09 09 09 69 66 20 5b 20 22 24 7b 6e 6f 6d 6b  ....if [ "${nomk
2280: 34 7d 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65  4}" = "1" ]; the
2290: 6e 0a 09 09 09 09 69 66 20 5b 20 2d 7a 20 22 24  n.....if [ -z "$
22a0: 7b 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53  {KITCREATOR_PKGS
22b0: 7d 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 09  }" ]; then......
22c0: 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 3d  KITCREATOR_PKGS=
22d0: 27 69 74 63 6c 20 74 6b 27 0a 09 09 09 09 65 6c  'itcl tk'.....el
22e0: 73 65 0a 09 09 09 09 09 4b 49 54 43 52 45 41 54  se......KITCREAT
22f0: 4f 52 5f 50 4b 47 53 3d 22 24 28 65 63 68 6f 20  OR_PKGS="$(echo 
2300: 22 24 7b 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b  "${KITCREATOR_PK
2310: 47 53 7d 22 20 7c 20 73 65 64 20 27 73 40 6d 6b  GS}" | sed 's@mk
2320: 34 74 63 6c 40 40 27 29 22 0a 09 09 09 09 66 69  4tcl@@')".....fi
2330: 0a 09 09 09 66 69 0a 0a 09 09 09 69 66 20 5b 20  ....fi.....if [ 
2340: 22 24 7b 6b 69 74 64 6c 6c 7d 22 20 3d 20 22 31  "${kitdll}" = "1
2350: 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 69 66  " ]; then.....if
2360: 20 5b 20 2d 7a 20 22 24 7b 4b 49 54 43 52 45 41   [ -z "${KITCREA
2370: 54 4f 52 5f 50 4b 47 53 7d 22 20 5d 3b 20 74 68  TOR_PKGS}" ]; th
2380: 65 6e 0a 09 09 09 09 09 4b 49 54 43 52 45 41 54  en......KITCREAT
2390: 4f 52 5f 50 4b 47 53 3d 27 74 6b 20 69 74 63 6c  OR_PKGS='tk itcl
23a0: 20 6d 6b 34 74 63 6c 20 6b 69 74 64 6c 6c 27 0a   mk4tcl kitdll'.
23b0: 09 09 09 09 65 6c 73 65 0a 09 09 09 09 09 4b 49  ....else......KI
23c0: 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 3d 22 24  TCREATOR_PKGS="$
23d0: 7b 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53  {KITCREATOR_PKGS
23e0: 7d 20 6b 69 74 64 6c 6c 22 0a 09 09 09 09 66 69  } kitdll".....fi
23f0: 0a 09 09 09 66 69 0a 0a 09 09 09 65 78 70 6f 72  ....fi.....expor
2400: 74 20 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47  t KITCREATOR_PKG
2410: 53 0a 0a 09 09 09 69 66 20 5b 20 2d 6e 20 22 24  S.....if [ -n "$
2420: 7b 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53  {KITCREATOR_PKGS
2430: 7d 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65  }" ]; then.....e
2440: 63 68 6f 20 22 20 20 4b 49 54 43 52 45 41 54 4f  cho "  KITCREATO
2450: 52 5f 50 4b 47 53 3d 5c 22 24 7b 4b 49 54 43 52  R_PKGS=\"${KITCR
2460: 45 41 54 4f 52 5f 50 4b 47 53 7d 5c 22 22 20 3e  EATOR_PKGS}\"" >
2470: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
2480: 09 09 09 09 65 63 68 6f 20 22 20 20 65 78 70 6f  ....echo "  expo
2490: 72 74 20 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b  rt KITCREATOR_PK
24a0: 47 53 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c  GS" >> "${buildl
24b0: 6f 67 7d 22 0a 09 09 09 66 69 0a 0a 09 09 09 69  og}"....fi.....i
24c0: 66 20 5b 20 22 24 7b 73 74 61 74 69 63 74 6b 7d  f [ "${statictk}
24d0: 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a  " = "1" ]; then.
24e0: 09 09 09 09 53 54 41 54 49 43 54 4b 3d 22 31 22  ....STATICTK="1"
24f0: 0a 09 09 09 09 65 78 70 6f 72 74 20 53 54 41 54  .....export STAT
2500: 49 43 54 4b 0a 0a 09 09 09 09 65 63 68 6f 20 22  ICTK......echo "
2510: 20 20 53 54 41 54 49 43 54 4b 3d 5c 22 24 7b 53    STATICTK=\"${S
2520: 54 41 54 49 43 54 4b 7d 5c 22 22 20 3e 3e 20 22  TATICTK}\"" >> "
2530: 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09  ${buildlog}"....
2540: 09 65 63 68 6f 20 22 20 20 65 78 70 6f 72 74 20  .echo "  export 
2550: 53 54 41 54 49 43 54 4b 22 20 3e 3e 20 22 24 7b  STATICTK" >> "${
2560: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 66 69  buildlog}"....fi
2570: 0a 0a 09 09 09 69 66 20 65 63 68 6f 20 22 24 7b  .....if echo "${
2580: 61 72 67 73 7d 22 20 7c 20 67 72 65 70 20 2d 2d  args}" | grep --
2590: 20 27 2d 2d 65 6e 61 62 6c 65 2d 73 79 6d 62 6f   '--enable-symbo
25a0: 6c 73 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20  ls' >/dev/null; 
25b0: 74 68 65 6e 0a 09 09 09 09 53 54 52 49 50 3d 27  then.....STRIP='
25c0: 74 72 75 65 27 0a 09 09 09 09 65 78 70 6f 72 74  true'.....export
25d0: 20 53 54 52 49 50 0a 0a 09 09 09 09 65 63 68 6f   STRIP......echo
25e0: 20 22 20 20 53 54 52 49 50 3d 27 74 72 75 65 27   "  STRIP='true'
25f0: 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67  " >> "${buildlog
2600: 7d 22 0a 09 09 09 09 65 63 68 6f 20 22 20 20 65  }".....echo "  e
2610: 78 70 6f 72 74 20 53 54 52 49 50 22 20 3e 3e 20  xport STRIP" >> 
2620: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09  "${buildlog}"...
2630: 09 66 69 0a 0a 09 09 09 69 66 20 5b 20 22 24 7b  .fi.....if [ "${
2640: 6b 69 74 63 72 65 61 74 6f 72 7d 22 20 21 3d 20  kitcreator}" != 
2650: 22 2e 2f 6b 69 74 63 72 65 61 74 6f 72 22 20 5d  "./kitcreator" ]
2660: 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68 6f 20  ; then.....echo 
2670: 22 20 20 6d 6b 64 69 72 20 62 75 69 6c 64 22 20  "  mkdir build" 
2680: 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22  >> "${buildlog}"
2690: 0a 0a 09 09 09 09 23 20 53 65 76 65 72 61 6c 20  ......# Several 
26a0: 62 75 69 6c 64 20 73 63 72 69 70 74 73 20 72 65  build scripts re
26b0: 6c 79 20 6f 6e 20 6d 69 6e 6b 69 74 20 74 6f 20  ly on minkit to 
26c0: 77 6f 72 6b 0a 09 09 09 09 69 66 20 67 72 65 70  work.....if grep
26d0: 20 27 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d   './build/make-m
26e0: 69 6e 6b 69 74 27 20 22 24 7b 6b 69 74 63 72 65  inkit' "${kitcre
26f0: 61 74 6f 72 7d 22 20 3e 2f 64 65 76 2f 6e 75 6c  ator}" >/dev/nul
2700: 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74  l 2>/dev/null; t
2710: 68 65 6e 0a 09 09 09 09 09 65 63 68 6f 20 22 20  hen......echo " 
2720: 20 63 61 74 20 3c 3c 20 5c 5f 5f 45 4f 46 5f 5f   cat << \__EOF__
2730: 20 3e 20 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d   > ./build/make-
2740: 6d 69 6e 6b 69 74 22 20 3e 3e 20 22 24 7b 62 75  minkit" >> "${bu
2750: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09 73 65  ildlog}"......se
2760: 64 20 27 73 40 5e 40 20 20 40 27 20 20 27 2e 2f  d 's@^@  @'  './
2770: 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69 6e 6b 69  build/make-minki
2780: 74 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f  t' >> "${buildlo
2790: 67 7d 22 0a 09 09 09 09 09 65 63 68 6f 20 22 20  g}"......echo " 
27a0: 20 5f 5f 45 4f 46 5f 5f 22 20 3e 3e 20 22 24 7b   __EOF__" >> "${
27b0: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09  buildlog}"......
27c0: 65 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75  echo '' >> "${bu
27d0: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 66 69 0a  ildlog}".....fi.
27e0: 0a 09 09 09 09 23 20 53 65 76 65 72 61 6c 20 62  .....# Several b
27f0: 75 69 6c 64 20 73 63 72 69 70 74 73 20 72 65 6c  uild scripts rel
2800: 79 20 6f 6e 20 6d 61 6b 65 2d 6b 69 74 2d 63 72  y on make-kit-cr
2810: 6f 73 73 63 6f 6d 70 69 6c 65 20 74 6f 20 77 6f  osscompile to wo
2820: 72 6b 0a 09 09 09 09 69 66 20 67 72 65 70 20 27  rk.....if grep '
2830: 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74  ./build/make-kit
2840: 2d 63 72 6f 73 73 63 6f 6d 70 69 6c 65 27 20 22  -crosscompile' "
2850: 24 7b 6b 69 74 63 72 65 61 74 6f 72 7d 22 20 3e  ${kitcreator}" >
2860: 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76  /dev/null 2>/dev
2870: 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 09 09  /null; then.....
2880: 09 65 63 68 6f 20 22 20 20 63 61 74 20 3c 3c 20  .echo "  cat << 
2890: 5c 5f 5f 45 4f 46 5f 5f 20 3e 20 2e 2f 62 75 69  \__EOF__ > ./bui
28a0: 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 63 72 6f 73  ld/make-kit-cros
28b0: 73 63 6f 6d 70 69 6c 65 22 20 3e 3e 20 22 24 7b  scompile" >> "${
28c0: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09  buildlog}"......
28d0: 73 65 64 20 27 73 40 5e 40 20 20 40 27 20 20 27  sed 's@^@  @'  '
28e0: 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74  ./build/make-kit
28f0: 2d 63 72 6f 73 73 63 6f 6d 70 69 6c 65 27 20 3e  -crosscompile' >
2900: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
2910: 09 09 09 09 09 65 63 68 6f 20 22 20 20 5f 5f 45  .....echo "  __E
2920: 4f 46 5f 5f 22 20 3e 3e 20 22 24 7b 62 75 69 6c  OF__" >> "${buil
2930: 64 6c 6f 67 7d 22 0a 09 09 09 09 09 65 63 68 6f  dlog}"......echo
2940: 20 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c   '' >> "${buildl
2950: 6f 67 7d 22 0a 09 09 09 09 66 69 0a 0a 09 09 09  og}".....fi.....
2960: 09 65 63 68 6f 20 22 20 20 63 61 74 20 3c 3c 20  .echo "  cat << 
2970: 5c 5f 5f 45 4f 46 5f 5f 20 3e 20 24 7b 6b 69 74  \__EOF__ > ${kit
2980: 63 72 65 61 74 6f 72 7d 22 20 3e 3e 20 22 24 7b  creator}" >> "${
2990: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 73  buildlog}".....s
29a0: 65 64 20 27 73 40 5e 40 20 20 40 27 20 20 22 24  ed 's@^@  @'  "$
29b0: 7b 6b 69 74 63 72 65 61 74 6f 72 7d 22 20 3e 3e  {kitcreator}" >>
29c0: 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09   "${buildlog}"..
29d0: 09 09 09 65 63 68 6f 20 22 20 20 5f 5f 45 4f 46  ...echo "  __EOF
29e0: 5f 5f 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c  __" >> "${buildl
29f0: 6f 67 7d 22 0a 09 09 09 09 65 63 68 6f 20 27 27  og}".....echo ''
2a00: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
2a10: 22 0a 09 09 09 66 69 0a 09 09 09 65 63 68 6f 20  "....fi....echo 
2a20: 22 20 20 5c 22 24 7b 6b 69 74 63 72 65 61 74 6f  "  \"${kitcreato
2a30: 72 7d 5c 22 20 5c 22 24 7b 76 65 72 73 69 6f 6e  r}\" \"${version
2a40: 7d 5c 22 20 24 7b 61 72 67 73 7d 22 20 3e 3e 20  }\" ${args}" >> 
2a50: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09  "${buildlog}"...
2a60: 09 65 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62  .echo '' >> "${b
2a70: 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 65 63 68  uildlog}"....ech
2a80: 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64  o '' >> "${build
2a90: 6c 6f 67 7d 22 0a 09 09 09 65 63 68 6f 20 27 27  log}"....echo ''
2aa0: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
2ab0: 22 0a 09 09 09 65 63 68 6f 20 22 20 2a 2a 2a 20  "....echo " *** 
2ac0: 42 75 69 6c 64 20 52 65 73 75 6c 74 73 22 20 3e  Build Results" >
2ad0: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
2ae0: 09 09 09 65 63 68 6f 20 27 27 20 3e 3e 20 22 24  ...echo '' >> "$
2af0: 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 0a 09 09 09  {buildlog}".....
2b00: 62 75 69 6c 64 66 61 69 6c 65 64 3d 22 30 22 0a  buildfailed="0".
2b10: 09 09 09 22 24 7b 6b 69 74 63 72 65 61 74 6f 72  ..."${kitcreator
2b20: 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e 7d 22 20  }" "${version}" 
2b30: 24 7b 61 72 67 73 7d 20 3e 3e 20 22 24 7b 62 75  ${args} >> "${bu
2b40: 69 6c 64 6c 6f 67 7d 22 20 32 3e 26 31 20 7c 7c  ildlog}" 2>&1 ||
2b50: 20 62 75 69 6c 64 66 61 69 6c 65 64 3d 22 31 22   buildfailed="1"
2b60: 0a 09 09 09 67 72 65 70 20 2d 6e 20 27 5e 27 20  ....grep -n '^' 
2b70: 2a 2f 62 75 69 6c 64 2e 6c 6f 67 20 3e 3e 20 22  */build.log >> "
2b80: 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 20 32 3e 26  ${buildlog}" 2>&
2b90: 31 0a 0a 09 09 09 69 66 20 5b 20 22 24 7b 6b 69  1.....if [ "${ki
2ba0: 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d 3b 20  tdll}" = "1" ]; 
2bb0: 74 68 65 6e 0a 09 09 09 09 23 20 43 72 65 61 74  then.....# Creat
2bc0: 65 20 74 65 73 74 20 64 72 69 76 65 72 73 20 66  e test drivers f
2bd0: 6f 72 20 4b 69 74 44 4c 4c 0a 09 09 09 09 28 0a  or KitDLL.....(.
2be0: 09 09 09 09 09 65 63 68 6f 20 22 22 0a 09 09 09  .....echo ""....
2bf0: 09 09 65 63 68 6f 20 22 22 0a 09 09 09 09 09 65  ..echo ""......e
2c00: 63 68 6f 20 22 22 0a 09 09 09 09 09 65 63 68 6f  cho ""......echo
2c10: 20 22 20 2a 2a 2a 20 42 75 69 6c 64 69 6e 67 20   " *** Building 
2c20: 4b 69 74 44 4c 4c 20 74 65 73 74 20 64 72 69 76  KitDLL test driv
2c30: 65 72 20 28 74 63 6c 73 68 29 22 0a 09 09 09 09  er (tclsh)".....
2c40: 09 65 63 68 6f 20 22 22 0a 0a 09 09 09 09 09 63  .echo "".......c
2c50: 64 20 6b 69 74 73 68 2f 62 75 69 6c 64 2f 6b 69  d kitsh/build/ki
2c60: 74 73 68 2d 2a 2f 20 7c 7c 20 65 78 69 74 20 31  tsh-*/ || exit 1
2c70: 0a 09 09 09 09 09 6d 61 6b 65 20 74 63 6c 73 68  ......make tclsh
2c80: 0a 09 09 09 09 09 63 70 20 74 63 6c 73 68 20 2e  ......cp tclsh .
2c90: 2e 2f 2e 2e 2f 2e 2e 2f 0a 09 09 09 09 29 20 3e  ./../../.....) >
2ca0: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 20  > "${buildlog}" 
2cb0: 32 3e 26 31 0a 09 09 09 66 69 0a 0a 09 09 09 23  2>&1....fi.....#
2cc0: 20 50 65 72 66 6f 72 6d 20 77 69 6c 64 63 61 72   Perform wildcar
2cd0: 64 20 65 78 70 61 6e 73 69 6f 6e 0a 09 09 09 63  d expansion....c
2ce0: 72 65 61 74 65 64 6b 69 74 3d 22 24 28 6c 73 20  reatedkit="$(ls 
2cf0: 2d 66 31 20 24 7b 63 72 65 61 74 65 64 6b 69 74  -f1 ${createdkit
2d00: 7d 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 7c 20  } 2>/dev/null | 
2d10: 67 72 65 70 20 2d 76 20 27 5c 2e 74 61 72 5c 2e  grep -v '\.tar\.
2d20: 67 7a 24 27 20 7c 20 68 65 61 64 20 2d 6e 20 31  gz$' | head -n 1
2d30: 29 22 0a 0a 09 09 09 69 66 20 5b 20 21 20 2d 66  )".....if [ ! -f
2d40: 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74 7d 22   "${createdkit}"
2d50: 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68   ]; then.....ech
2d60: 6f 20 22 46 61 69 6c 65 64 20 74 6f 20 63 72 65  o "Failed to cre
2d70: 61 74 65 20 6b 69 74 20 24 7b 76 65 72 73 69 6f  ate kit ${versio
2d80: 6e 7d 2f 24 7b 6b 69 74 7d 22 20 3e 26 32 0a 0a  n}/${kit}" >&2..
2d90: 09 09 09 09 66 61 69 6c 65 64 3d 22 24 7b 66 61  ....failed="${fa
2da0: 69 6c 65 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d  iled} ${version}
2db0: 2f 24 7b 6b 69 74 7d 2d 62 75 69 6c 64 22 0a 0a  /${kit}-build"..
2dc0: 09 09 09 09 74 6f 75 63 68 20 22 24 7b 66 61 69  ....touch "${fai
2dd0: 6c 6f 75 74 70 75 74 6e 61 6d 65 7d 22 0a 09 09  loutputname}"...
2de0: 09 09 6d 76 20 22 24 7b 62 75 69 6c 64 6c 6f 67  ..mv "${buildlog
2df0: 7d 22 20 22 24 7b 66 61 69 6c 62 75 69 6c 64 6c  }" "${failbuildl
2e00: 6f 67 7d 22 0a 0a 09 09 09 09 72 6d 20 2d 66 20  og}"......rm -f 
2e10: 74 63 6c 73 68 0a 0a 09 09 09 09 63 6f 6e 74 69  tclsh......conti
2e20: 6e 75 65 0a 09 09 09 66 69 0a 0a 09 09 09 23 20  nue....fi.....# 
2e30: 56 65 72 69 66 79 20 73 61 6e 69 74 79 20 6f 66  Verify sanity of
2e40: 20 63 72 65 61 74 65 64 20 6b 69 74 0a 09 09 09   created kit....
2e50: 69 73 73 61 6e 65 3d 31 0a 0a 09 09 09 23 23 20  issane=1.....## 
2e60: 56 65 72 69 66 79 20 74 68 61 74 20 57 69 6e 33  Verify that Win3
2e70: 32 20 62 75 69 6c 64 73 20 61 72 65 20 6f 66 20  2 builds are of 
2e80: 63 6f 72 72 65 63 74 20 74 79 70 65 0a 09 09 09  correct type....
2e90: 23 23 20 56 65 72 69 66 79 20 74 68 61 74 20 44  ## Verify that D
2ea0: 4c 4c 20 62 75 69 6c 64 73 20 61 72 65 20 6f 66  LL builds are of
2eb0: 20 63 6f 72 72 65 63 74 20 74 79 70 65 0a 09 09   correct type...
2ec0: 09 63 61 73 65 20 22 2d 24 7b 76 65 72 73 69 6f  .case "-${versio
2ed0: 6e 7d 2d 24 7b 6b 69 74 7d 2d 22 20 69 6e 0a 09  n}-${kit}-" in..
2ee0: 09 09 09 2a 2d 77 69 6e 5b 33 36 5d 5b 32 34 5d  ...*-win[36][24]
2ef0: 2d 6b 69 74 64 6c 6c 2d 2a 7c 2a 2d 77 69 6e 5b  -kitdll-*|*-win[
2f00: 33 36 5d 5b 32 34 5d 2d 2a 2d 6b 69 74 64 6c 6c  36][24]-*-kitdll
2f10: 2d 2a 29 0a 09 09 09 09 09 69 66 20 21 20 66 69  -*)......if ! fi
2f20: 6c 65 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74  le "${createdkit
2f30: 7d 22 20 7c 20 67 72 65 70 20 27 4d 53 20 57 69  }" | grep 'MS Wi
2f40: 6e 64 6f 77 73 27 20 7c 20 67 72 65 70 20 27 28  ndows' | grep '(
2f50: 44 4c 4c 29 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c  DLL)' >/dev/null
2f60: 3b 20 74 68 65 6e 0a 09 09 09 09 09 09 69 73 73  ; then.......iss
2f70: 61 6e 65 3d 30 0a 09 09 09 09 09 66 69 0a 09 09  ane=0......fi...
2f80: 09 09 09 3b 3b 0a 09 09 09 09 2a 2d 6b 69 74 64  ...;;.....*-kitd
2f90: 6c 6c 2d 2a 29 0a 09 09 09 09 09 69 66 20 21 20  ll-*)......if ! 
2fa0: 66 69 6c 65 20 22 24 7b 63 72 65 61 74 65 64 6b  file "${createdk
2fb0: 69 74 7d 22 20 7c 20 67 72 65 70 20 27 73 68 61  it}" | grep 'sha
2fc0: 72 65 64 20 6f 62 6a 65 63 74 27 20 3e 2f 64 65  red object' >/de
2fd0: 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 09  v/null; then....
2fe0: 09 09 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 09  ...issane=0.....
2ff0: 09 66 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09 09  .fi......;;.....
3000: 2a 2d 77 69 6e 5b 33 36 5d 5b 32 34 5d 2d 6e 6f  *-win[36][24]-no
3010: 74 6b 2d 2a 7c 2a 2d 77 69 6e 5b 33 36 5d 5b 32  tk-*|*-win[36][2
3020: 34 5d 2d 2a 2d 6e 6f 74 6b 2d 2a 29 0a 09 09 09  4]-*-notk-*)....
3030: 09 09 69 66 20 21 20 66 69 6c 65 20 22 24 7b 63  ..if ! file "${c
3040: 72 65 61 74 65 64 6b 69 74 7d 22 20 7c 20 67 72  reatedkit}" | gr
3050: 65 70 20 27 4d 53 20 57 69 6e 64 6f 77 73 27 20  ep 'MS Windows' 
3060: 7c 20 67 72 65 70 20 27 28 63 6f 6e 73 6f 6c 65  | grep '(console
3070: 29 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74  )' >/dev/null; t
3080: 68 65 6e 0a 09 09 09 09 09 09 65 63 68 6f 20 22  hen.......echo "
3090: 4b 69 74 20 66 61 69 6c 65 64 20 73 61 6e 69 74  Kit failed sanit
30a0: 79 20 63 68 65 63 6b 20 66 6f 72 20 62 65 69 6e  y check for bein
30b0: 67 20 61 20 63 6f 6e 73 6f 6c 65 20 61 70 70 6c  g a console appl
30c0: 69 63 61 74 69 6f 6e 22 20 3e 26 32 0a 09 09 09  ication" >&2....
30d0: 09 09 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 09  ...issane=0.....
30e0: 09 66 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09 09  .fi......;;.....
30f0: 2a 2d 77 69 6e 5b 33 36 5d 5b 32 34 5d 2d 2a 29  *-win[36][24]-*)
3100: 0a 09 09 09 09 09 69 66 20 21 20 66 69 6c 65 20  ......if ! file 
3110: 22 24 7b 63 72 65 61 74 65 64 6b 69 74 7d 22 20  "${createdkit}" 
3120: 7c 20 67 72 65 70 20 27 4d 53 20 57 69 6e 64 6f  | grep 'MS Windo
3130: 77 73 27 20 7c 20 67 72 65 70 20 27 28 47 55 49  ws' | grep '(GUI
3140: 29 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74  )' >/dev/null; t
3150: 68 65 6e 0a 09 09 09 09 09 09 65 63 68 6f 20 22  hen.......echo "
3160: 4b 69 74 20 66 61 69 6c 65 64 20 73 61 6e 69 74  Kit failed sanit
3170: 79 20 63 68 65 63 6b 20 66 6f 72 20 62 65 69 6e  y check for bein
3180: 67 20 61 20 47 55 49 20 61 70 70 6c 69 63 61 74  g a GUI applicat
3190: 69 6f 6e 22 20 3e 26 32 0a 09 09 09 09 09 09 69  ion" >&2.......i
31a0: 73 73 61 6e 65 3d 30 0a 09 09 09 09 09 66 69 0a  ssane=0......fi.
31b0: 09 09 09 09 09 3b 3b 0a 09 09 09 65 73 61 63 0a  .....;;....esac.
31c0: 0a 09 09 09 23 23 20 56 65 72 69 66 79 20 74 68  ....## Verify th
31d0: 65 20 62 75 69 6c 64 20 63 6f 6d 70 6c 65 74 65  e build complete
31e0: 64 20 77 69 74 68 6f 75 74 20 77 61 72 6e 69 6e  d without warnin
31f0: 67 73 0a 09 09 09 69 66 20 5b 20 22 24 7b 62 75  gs....if [ "${bu
3200: 69 6c 64 66 61 69 6c 65 64 7d 22 20 3d 20 22 31  ildfailed}" = "1
3210: 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65 63  " ]; then.....ec
3220: 68 6f 20 22 4b 69 74 20 66 61 69 6c 65 64 20 73  ho "Kit failed s
3230: 61 6e 69 74 79 20 63 68 65 63 6b 20 66 6f 72 20  anity check for 
3240: 42 75 69 6c 64 69 6e 67 22 20 3e 26 32 0a 0a 09  Building" >&2...
3250: 09 09 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 66  ...issane=0....f
3260: 69 0a 0a 09 09 09 23 20 4d 61 6b 65 20 6e 6f 74  i.....# Make not
3270: 65 20 6f 66 20 73 61 6e 69 74 79 20 66 61 69 6c  e of sanity fail
3280: 75 72 65 0a 09 09 09 69 66 20 5b 20 22 24 7b 69  ure....if [ "${i
3290: 73 73 61 6e 65 7d 22 20 21 3d 20 22 31 22 20 5d  ssane}" != "1" ]
32a0: 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68 6f 20  ; then.....echo 
32b0: 22 4b 69 74 20 66 61 69 6c 65 64 20 73 61 6e 69  "Kit failed sani
32c0: 74 79 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b  ty ${version}/${
32d0: 6b 69 74 7d 22 20 3e 26 32 0a 0a 09 09 09 09 66  kit}" >&2......f
32e0: 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c 65 64 7d  ailed="${failed}
32f0: 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69   ${version}/${ki
3300: 74 7d 2d 73 61 6e 69 74 79 22 0a 0a 09 09 09 09  t}-sanity"......
3310: 6d 76 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74  mv "${createdkit
3320: 7d 22 20 22 24 7b 66 61 69 6c 6f 75 74 70 75 74  }" "${failoutput
3330: 6e 61 6d 65 7d 22 0a 09 09 09 09 6d 76 20 22 24  name}".....mv "$
3340: 7b 62 75 69 6c 64 6c 6f 67 7d 22 20 22 24 7b 66  {buildlog}" "${f
3350: 61 69 6c 62 75 69 6c 64 6c 6f 67 7d 22 0a 0a 09  ailbuildlog}"...
3360: 09 09 09 72 6d 20 2d 66 20 74 63 6c 73 68 0a 0a  ...rm -f tclsh..
3370: 09 09 09 09 63 6f 6e 74 69 6e 75 65 0a 09 09 09  ....continue....
3380: 66 69 0a 0a 09 09 09 23 20 52 65 6e 61 6d 65 20  fi.....# Rename 
3390: 63 72 65 61 74 65 64 20 6b 69 74 20 74 6f 20 66  created kit to f
33a0: 69 6e 61 6c 20 64 65 73 74 69 6e 61 74 69 6f 6e  inal destination
33b0: 0a 09 09 09 6d 76 20 22 24 7b 63 72 65 61 74 65  ....mv "${create
33c0: 64 6b 69 74 7d 22 20 22 24 7b 6f 75 74 70 75 74  dkit}" "${output
33d0: 6e 61 6d 65 7d 22 0a 09 09 09 69 66 20 5b 20 2d  name}"....if [ -
33e0: 66 20 22 74 63 6c 73 68 22 20 5d 3b 20 74 68 65  f "tclsh" ]; the
33f0: 6e 0a 09 09 09 09 6d 76 20 22 74 63 6c 73 68 22  n.....mv "tclsh"
3400: 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d   "${outputname}-
3410: 74 63 6c 73 68 22 0a 09 09 09 66 69 0a 0a 09 09  tclsh"....fi....
3420: 09 23 20 46 6f 72 20 4b 69 74 44 4c 4c 2c 20 6d  .# For KitDLL, m
3430: 61 6b 65 20 61 20 6e 6f 74 65 20 6f 66 20 74 68  ake a note of th
3440: 65 20 6f 72 69 67 69 6e 61 6c 20 6e 61 6d 65 0a  e original name.
3450: 09 09 09 69 66 20 5b 20 22 24 7b 6b 69 74 64 6c  ...if [ "${kitdl
3460: 6c 7d 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65  l}" = "1" ]; the
3470: 6e 0a 09 09 09 09 65 63 68 6f 20 22 24 7b 63 72  n.....echo "${cr
3480: 65 61 74 65 64 6b 69 74 7d 22 20 3e 20 22 24 7b  eatedkit}" > "${
3490: 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69 67  outputname}-orig
34a0: 6e 61 6d 65 22 0a 0a 09 09 09 09 69 66 20 5b 20  name"......if [ 
34b0: 2d 66 20 22 24 7b 73 64 6b 7d 22 20 5d 3b 20 74  -f "${sdk}" ]; t
34c0: 68 65 6e 0a 09 09 09 09 09 6d 76 20 22 24 7b 73  hen......mv "${s
34d0: 64 6b 7d 22 20 22 24 7b 6f 75 74 70 75 74 6e 61  dk}" "${outputna
34e0: 6d 65 7d 2d 73 64 6b 2e 74 61 72 2e 67 7a 22 0a  me}-sdk.tar.gz".
34f0: 09 09 09 09 66 69 0a 09 09 09 66 69 0a 09 09 66  ....fi....fi...f
3500: 69 0a 0a 09 09 23 20 54 65 73 74 20 7a 69 70 20  i....# Test zip 
3510: 73 74 61 74 75 73 0a 09 09 69 66 20 75 6e 7a 69  status...if unzi
3520: 70 20 2d 6c 20 22 24 7b 6f 75 74 70 75 74 6e 61  p -l "${outputna
3530: 6d 65 7d 22 20 32 3e 26 31 20 7c 20 67 72 65 70  me}" 2>&1 | grep
3540: 20 27 62 6f 6f 74 5c 2e 74 63 6c 27 20 3e 2f 64   'boot\.tcl' >/d
3550: 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09  ev/null; then...
3560: 09 63 61 6e 75 6e 7a 69 70 3d 22 31 22 0a 09 09  .canunzip="1"...
3570: 65 6c 73 65 0a 09 09 09 63 61 6e 75 6e 7a 69 70  else....canunzip
3580: 3d 22 30 22 0a 09 09 66 69 0a 0a 09 09 69 66 20  ="0"...fi....if 
3590: 5b 20 22 24 7b 69 73 7a 69 70 7d 22 20 21 3d 20  [ "${iszip}" != 
35a0: 22 24 7b 63 61 6e 75 6e 7a 69 70 7d 22 20 5d 3b  "${canunzip}" ];
35b0: 20 74 68 65 6e 0a 09 09 09 65 63 68 6f 20 22 46   then....echo "F
35c0: 61 69 6c 65 64 20 74 6f 20 75 6e 7a 69 70 20 7a  ailed to unzip z
35d0: 69 70 6b 69 74 20 6f 72 20 77 61 73 20 61 62 6c  ipkit or was abl
35e0: 65 20 74 6f 20 75 6e 7a 69 70 20 6e 6f 6e 2d 7a  e to unzip non-z
35f0: 69 70 6b 69 74 20 24 7b 76 65 72 73 69 6f 6e 7d  ipkit ${version}
3600: 2f 24 7b 6b 69 74 7d 22 20 3e 26 32 0a 0a 09 09  /${kit}" >&2....
3610: 09 66 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c 65  .failed="${faile
3620: 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b  d} ${version}/${
3630: 6b 69 74 7d 2d 7a 69 70 22 0a 0a 09 09 09 63 6f  kit}-zip".....co
3640: 6e 74 69 6e 75 65 0a 09 09 66 69 0a 0a 09 09 23  ntinue...fi....#
3650: 20 44 6f 20 6e 6f 74 20 63 6f 6e 74 69 6e 75 65   Do not continue
3660: 20 70 61 73 74 20 68 65 72 65 20 66 6f 72 20 75   past here for u
3670: 6e 2d 72 75 6e 6e 61 62 6c 65 20 6b 69 74 73 0a  n-runnable kits.
3680: 09 09 69 66 20 5b 20 22 24 7b 72 75 6e 6e 61 62  ..if [ "${runnab
3690: 6c 65 7d 22 20 21 3d 20 22 31 22 20 5d 3b 20 74  le}" != "1" ]; t
36a0: 68 65 6e 0a 09 09 09 63 6f 6e 74 69 6e 75 65 0a  hen....continue.
36b0: 09 09 66 69 0a 0a 09 09 23 20 49 66 20 74 68 65  ..fi....# If the
36c0: 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 6f 72 69   name of the ori
36d0: 67 69 6e 61 6c 20 62 75 69 6c 64 20 6d 61 74 74  ginal build matt
36e0: 65 72 73 2c 20 73 79 6d 6c 69 6e 6b 20 69 74 20  ers, symlink it 
36f0: 75 70 0a 09 09 69 66 20 5b 20 2d 66 20 22 24 7b  up...if [ -f "${
3700: 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69 67  outputname}-orig
3710: 6e 61 6d 65 22 20 5d 3b 20 74 68 65 6e 0a 09 09  name" ]; then...
3720: 09 63 72 65 61 74 65 64 6b 69 74 3d 22 24 28 63  .createdkit="$(c
3730: 61 74 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65  at "${outputname
3740: 7d 2d 6f 72 69 67 6e 61 6d 65 22 29 22 0a 0a 09  }-origname")"...
3750: 09 09 6c 6e 20 2d 73 20 22 24 7b 6f 75 74 70 75  ..ln -s "${outpu
3760: 74 6e 61 6d 65 7d 22 20 22 24 7b 63 72 65 61 74  tname}" "${creat
3770: 65 64 6b 69 74 7d 22 0a 09 09 66 69 0a 0a 09 09  edkit}"...fi....
3780: 23 20 50 65 72 66 6f 72 6d 20 62 61 74 74 65 72  # Perform batter
3790: 79 20 6f 66 20 74 65 73 74 73 0a 09 09 23 23 20  y of tests...## 
37a0: 43 6c 65 61 6e 20 74 65 73 74 73 20 6c 6f 67 0a  Clean tests log.
37b0: 09 09 72 6d 20 2d 66 20 22 24 7b 74 65 73 74 72  ..rm -f "${testr
37c0: 65 73 75 6c 74 73 6c 6f 67 7d 22 0a 09 09 66 6f  esultslog}"...fo
37d0: 72 20 74 65 73 74 73 63 70 20 69 6e 20 22 24 7b  r testscp in "${
37e0: 54 45 53 54 44 49 52 7d 22 2f 74 65 73 74 73 2f  TESTDIR}"/tests/
37f0: 2a 2e 74 63 6c 3b 20 64 6f 0a 09 09 09 74 65 73  *.tcl; do....tes
3800: 74 73 63 70 5f 74 61 67 3d 22 24 28 62 61 73 65  tscp_tag="$(base
3810: 6e 61 6d 65 20 22 24 7b 74 65 73 74 73 63 70 7d  name "${testscp}
3820: 22 20 2e 74 63 6c 29 22 0a 09 09 09 74 65 73 74  " .tcl)"....test
3830: 73 63 70 70 72 65 3d 22 24 28 64 69 72 6e 61 6d  scppre="$(dirnam
3840: 65 20 22 24 7b 74 65 73 74 73 63 70 7d 22 29 2f  e "${testscp}")/
3850: 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d 2e 73  ${testscp_tag}.s
3860: 68 22 0a 09 09 09 73 63 70 6c 6f 67 66 69 6c 65  h"....scplogfile
3870: 3d 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d  ="${outputname}-
3880: 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d 2e 6c  ${testscp_tag}.l
3890: 6f 67 22 0a 0a 09 09 09 23 20 49 66 20 61 20 63  og".....# If a c
38a0: 6f 6d 6d 61 6e 64 20 69 73 20 72 65 71 75 69 72  ommand is requir
38b0: 65 64 20 74 6f 20 73 74 61 72 74 20 74 68 65 20  ed to start the 
38c0: 6b 69 74 2c 20 70 72 65 70 61 72 65 20 74 6f 20  kit, prepare to 
38d0: 6b 69 6c 6c 20 69 74 0a 09 09 09 23 20 69 6e 20  kill it....# in 
38e0: 63 61 73 65 20 6f 66 20 74 69 6d 65 6f 75 74 2e  case of timeout.
38f0: 0a 09 09 09 23 23 20 54 65 6d 70 6f 72 61 72 69  ....## Temporari
3900: 6c 79 20 64 69 73 61 62 6c 65 64 20 73 69 6e 63  ly disabled sinc
3910: 65 20 63 75 72 72 65 6e 74 6c 79 20 69 74 20 69  e currently it i
3920: 73 20 63 61 75 73 69 6e 67 0a 09 09 09 23 23 20  s causing....## 
3930: 6d 6f 72 65 20 70 72 6f 62 6c 65 6d 73 20 69 6e  more problems in
3940: 20 74 68 65 20 66 6f 72 6d 20 6f 66 20 74 65 73   the form of tes
3950: 74 73 20 62 65 69 6e 67 20 6b 69 6c 6c 65 64 0a  ts being killed.
3960: 09 09 09 23 23 20 70 72 65 6d 61 74 75 72 65 6c  ...## prematurel
3970: 79 20 74 68 61 6e 20 77 65 20 61 72 65 20 68 61  y than we are ha
3980: 76 69 6e 67 20 69 73 73 75 65 73 20 77 69 74 68  ving issues with
3990: 20 74 65 73 74 73 0a 09 09 09 23 23 20 68 61 6e   tests....## han
39a0: 67 69 6e 67 0a 09 09 09 6b 69 74 72 75 6e 6b 69  ging....kitrunki
39b0: 6c 6c 70 69 64 3d 22 22 0a 09 09 09 69 66 20 5b  llpid=""....if [
39c0: 20 22 31 22 20 3d 20 22 30 22 20 2d 61 20 2d 6e   "1" = "0" -a -n
39d0: 20 22 24 7b 6b 69 74 72 75 6e 63 6d 64 7d 22 20   "${kitruncmd}" 
39e0: 5d 3b 20 74 68 65 6e 0a 09 09 09 09 28 0a 09 09  ]; then.....(...
39f0: 09 09 09 73 6c 65 65 70 20 31 32 30 0a 09 09 09  ...sleep 120....
3a00: 09 09 6b 69 6c 6c 61 6c 6c 20 22 24 28 62 61 73  ..killall "$(bas
3a10: 65 6e 61 6d 65 20 22 24 7b 6f 75 74 70 75 74 6e  ename "${outputn
3a20: 61 6d 65 7d 22 29 22 20 3e 2f 64 65 76 2f 6e 75  ame}")" >/dev/nu
3a30: 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a 09  ll 2>/dev/null..
3a40: 09 09 09 29 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20  ...) >/dev/null 
3a50: 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 26 0a 09 09  2>/dev/null &...
3a60: 09 09 6b 69 74 72 75 6e 6b 69 6c 6c 70 69 64 3d  ..kitrunkillpid=
3a70: 22 24 21 22 0a 09 09 09 66 69 0a 0a 09 09 09 28  "$!"....fi.....(
3a80: 0a 09 09 09 09 69 66 20 5b 20 2d 66 20 22 24 7b  .....if [ -f "${
3a90: 74 65 73 74 73 63 70 70 72 65 7d 22 20 5d 3b 20  testscppre}" ]; 
3aa0: 74 68 65 6e 0a 09 09 09 09 09 2e 20 22 24 7b 74  then....... "${t
3ab0: 65 73 74 73 63 70 70 72 65 7d 22 0a 09 09 09 09  estscppre}".....
3ac0: 66 69 0a 0a 09 09 09 09 69 66 20 5b 20 22 24 7b  fi......if [ "${
3ad0: 6b 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d  kitdll}" = "1" ]
3ae0: 3b 20 74 68 65 6e 0a 09 09 09 09 09 24 7b 6b 69  ; then......${ki
3af0: 74 72 75 6e 63 6d 64 7d 20 22 24 7b 6f 75 74 70  truncmd} "${outp
3b00: 75 74 6e 61 6d 65 7d 2d 74 63 6c 73 68 22 20 22  utname}-tclsh" "
3b10: 24 7b 74 65 73 74 73 63 70 7d 22 20 22 24 7b 6f  ${testscp}" "${o
3b20: 75 74 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b 6b  utputname}" "${k
3b30: 69 74 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e 7d  it}" "${version}
3b40: 22 0a 09 09 09 09 65 6c 73 65 0a 09 09 09 09 09  ".....else......
3b50: 24 7b 6b 69 74 72 75 6e 63 6d 64 7d 20 22 24 7b  ${kitruncmd} "${
3b60: 6f 75 74 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b  outputname}" "${
3b70: 74 65 73 74 73 63 70 7d 22 20 22 24 7b 6f 75 74  testscp}" "${out
3b80: 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b 6b 69 74  putname}" "${kit
3b90: 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e 7d 22 0a  }" "${version}".
3ba0: 09 09 09 09 66 69 0a 09 09 09 29 20 3e 20 22 24  ....fi....) > "$
3bb0: 7b 73 63 70 6c 6f 67 66 69 6c 65 7d 22 20 32 3e  {scplogfile}" 2>
3bc0: 26 31 0a 0a 09 09 09 69 66 20 5b 20 22 24 3f 22  &1.....if [ "$?"
3bd0: 20 21 3d 20 22 30 22 20 5d 3b 20 74 68 65 6e 0a   != "0" ]; then.
3be0: 09 09 09 09 65 63 68 6f 20 22 53 63 72 69 70 74  ....echo "Script
3bf0: 20 66 61 69 6c 65 64 3a 20 24 7b 74 65 73 74 73   failed: ${tests
3c00: 63 70 5f 74 61 67 7d 20 6f 6e 20 24 7b 76 65 72  cp_tag} on ${ver
3c10: 73 69 6f 6e 7d 2f 24 7b 6b 69 74 7d 22 20 3e 26  sion}/${kit}" >&
3c20: 32 0a 0a 09 09 09 09 66 61 69 6c 65 64 3d 22 24  2......failed="$
3c30: 7b 66 61 69 6c 65 64 7d 20 24 7b 76 65 72 73 69  {failed} ${versi
3c40: 6f 6e 7d 2f 24 7b 6b 69 74 7d 2d 74 65 73 74 2d  on}/${kit}-test-
3c50: 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d 22 0a  ${testscp_tag}".
3c60: 0a 09 09 09 09 65 63 68 6f 20 22 24 7b 74 65 73  .....echo "${tes
3c70: 74 73 63 70 5f 74 61 67 7d 3a 20 46 41 49 4c 22  tscp_tag}: FAIL"
3c80: 20 3e 3e 20 20 22 24 7b 74 65 73 74 72 65 73 75   >>  "${testresu
3c90: 6c 74 73 6c 6f 67 7d 22 0a 0a 09 09 09 09 63 6f  ltslog}"......co
3ca0: 6e 74 69 6e 75 65 0a 09 09 09 66 69 0a 0a 09 09  ntinue....fi....
3cb0: 09 23 20 4b 69 6c 6c 20 74 68 65 20 77 61 74 63  .# Kill the watc
3cc0: 68 64 6f 67 20 66 6f 72 20 74 68 69 73 20 69 74  hdog for this it
3cd0: 65 72 61 74 69 6f 6e 0a 09 09 09 69 66 20 5b 20  eration....if [ 
3ce0: 2d 6e 20 22 24 7b 6b 69 74 72 75 6e 6b 69 6c 6c  -n "${kitrunkill
3cf0: 70 69 64 7d 22 20 5d 3b 20 74 68 65 6e 0a 09 09  pid}" ]; then...
3d00: 09 09 6b 69 6c 6c 20 2d 39 20 22 24 7b 6b 69 74  ..kill -9 "${kit
3d10: 72 75 6e 6b 69 6c 6c 70 69 64 7d 22 20 3e 2f 64  runkillpid}" >/d
3d20: 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e  ev/null 2>/dev/n
3d30: 75 6c 6c 0a 09 09 09 66 69 0a 0a 09 09 09 65 63  ull....fi.....ec
3d40: 68 6f 20 22 24 7b 74 65 73 74 73 63 70 5f 74 61  ho "${testscp_ta
3d50: 67 7d 3a 20 50 41 53 53 22 20 3e 3e 20 20 22 24  g}: PASS" >>  "$
3d60: 7b 74 65 73 74 72 65 73 75 6c 74 73 6c 6f 67 7d  {testresultslog}
3d70: 22 0a 0a 09 09 09 72 6d 20 2d 66 20 22 24 7b 73  ".....rm -f "${s
3d80: 63 70 6c 6f 67 66 69 6c 65 7d 22 0a 09 09 64 6f  cplogfile}"...do
3d90: 6e 65 0a 0a 09 09 69 66 20 5b 20 2d 66 20 22 24  ne....if [ -f "$
3da0: 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69  {outputname}-ori
3db0: 67 6e 61 6d 65 22 20 5d 3b 20 74 68 65 6e 0a 09  gname" ]; then..
3dc0: 09 09 72 6d 20 2d 66 20 22 24 7b 63 72 65 61 74  ..rm -f "${creat
3dd0: 65 64 6b 69 74 7d 22 0a 09 09 66 69 0a 09 64 6f  edkit}"...fi..do
3de0: 6e 65 0a 64 6f 6e 65 0a 0a 69 66 20 5b 20 2d 6e  ne.done..if [ -n
3df0: 20 22 24 7b 66 61 69 6c 65 64 7d 22 20 5d 3b 20   "${failed}" ]; 
3e00: 74 68 65 6e 0a 09 65 63 68 6f 20 22 46 61 69 6c  then..echo "Fail
3e10: 65 64 3a 20 24 7b 66 61 69 6c 65 64 7d 22 0a 66  ed: ${failed}".f
3e20: 69 0a 0a 23 20 43 6c 65 61 6e 75 70 0a 23 23 20  i..# Cleanup.## 
3e30: 54 65 72 6d 69 6e 61 74 65 20 58 76 66 62 0a 6b  Terminate Xvfb.k
3e40: 69 6c 6c 20 2d 39 20 22 24 7b 58 56 46 42 5f 50  ill -9 "${XVFB_P
3e50: 49 44 7d 22 0a 0a 23 23 20 52 65 6d 6f 76 65 20  ID}"..## Remove 
3e60: 77 69 6e 65 0a 72 6d 20 2d 72 66 20 22 24 7b 57  wine.rm -rf "${W
3e70: 49 4e 45 50 52 45 46 49 58 33 32 7d 22 20 22 24  INEPREFIX32}" "$
3e80: 7b 57 49 4e 45 50 52 45 46 49 58 36 34 7d 22 0a  {WINEPREFIX64}".
3e90: 0a 2e 2f 6b 69 74 63 72 65 61 74 6f 72 20 63 6c  ../kitcreator cl
3ea0: 65 61 6e 0a 72 6d 20 2d 66 20 74 63 6c 73 68 0a  ean.rm -f tclsh.