Hex Artifact Content

Artifact 2dc0e708aca1e196efc34f65fe55b0cad56f029c:


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 57 49 4e 45 50 52 45 46  e-reg"..WINEPREF
04e0: 49 58 3d 22 24 7b 57 49 4e 45 50 52 45 46 49 58  IX="${WINEPREFIX
04f0: 33 32 7d 22 20 72 65 67 65 64 69 74 20 22 24 7b  32}" regedit "${
0500: 57 49 4e 45 50 52 45 46 49 58 33 32 7d 2f 75 70  WINEPREFIX32}/up
0510: 64 61 74 65 2d 72 65 67 22 20 3e 2f 64 65 76 2f  date-reg" >/dev/
0520: 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c  null 2>/dev/null
0530: 0a 57 49 4e 45 50 52 45 46 49 58 3d 22 24 7b 57  .WINEPREFIX="${W
0540: 49 4e 45 50 52 45 46 49 58 36 34 7d 22 20 72 65  INEPREFIX64}" re
0550: 67 65 64 69 74 20 22 24 7b 57 49 4e 45 50 52 45  gedit "${WINEPRE
0560: 46 49 58 36 34 7d 2f 75 70 64 61 74 65 2d 72 65  FIX64}/update-re
0570: 67 22 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e  g" >/dev/null 2>
0580: 2f 64 65 76 2f 6e 75 6c 6c 0a 0a 23 20 53 74 61  /dev/null..# Sta
0590: 72 74 20 58 76 66 62 20 66 6f 72 20 58 31 31 2d  rt Xvfb for X11-
05a0: 62 61 73 65 64 20 74 65 73 74 73 0a 58 56 46 42  based tests.XVFB
05b0: 5f 50 49 44 3d 22 24 28 0a 09 58 76 66 62 20 3a  _PID="$(..Xvfb :
05c0: 33 31 20 2d 73 63 72 65 65 6e 20 30 20 38 30 30  31 -screen 0 800
05d0: 78 36 30 30 78 32 34 20 2d 6e 6f 6c 69 73 74 65  x600x24 -noliste
05e0: 6e 20 74 63 70 20 3e 2f 64 65 76 2f 6e 75 6c 6c  n tcp >/dev/null
05f0: 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 26 0a 09   2>/dev/null &..
0600: 65 63 68 6f 20 22 24 21 22 0a 29 22 0a 44 49 53  echo "$!".)".DIS
0610: 50 4c 41 59 3d 3a 33 31 0a 65 78 70 6f 72 74 20  PLAY=:31.export 
0620: 44 49 53 50 4c 41 59 0a 0a 69 66 20 5b 20 22 24  DISPLAY..if [ "$
0630: 7b 42 49 47 42 55 49 4c 44 7d 22 20 3d 20 22 31  {BIGBUILD}" = "1
0640: 22 20 5d 3b 20 74 68 65 6e 0a 09 6b 69 74 73 3d  " ]; then..kits=
0650: 22 24 28 65 63 68 6f 20 6e 6f 72 6d 61 6c 7b 2c  "$(echo normal{,
0660: 2d 7a 69 70 2c 2d 6e 6f 6d 6b 34 7d 7b 2c 2d 74  -zip,-nomk4}{,-t
0670: 68 72 65 61 64 65 64 7d 7b 2c 2d 73 74 61 74 69  hreaded}{,-stati
0680: 63 74 6b 2c 2d 6e 6f 74 6b 7d 20 6e 6f 72 6d 61  ctk,-notk} norma
0690: 6c 7b 2c 2d 74 68 72 65 61 64 65 64 7d 7b 2c 2d  l{,-threaded}{,-
06a0: 6e 6f 74 6b 7d 7b 2c 2d 6e 6f 6d 6b 34 7d 7b 2c  notk}{,-nomk4}{,
06b0: 2d 64 65 62 75 67 7d 2d 6b 69 74 64 6c 6c 20 77  -debug}-kitdll w
06c0: 69 6e 33 32 2d 69 35 38 36 7b 2c 2d 7a 69 70 2c  in32-i586{,-zip,
06d0: 2d 6e 6f 6d 6b 34 7d 7b 2c 2d 74 68 72 65 61 64  -nomk4}{,-thread
06e0: 65 64 7d 7b 2c 2d 6e 6f 74 6b 7d 20 77 69 6e 33  ed}{,-notk} win3
06f0: 32 2d 69 35 38 36 7b 2c 2d 74 68 72 65 61 64 65  2-i586{,-threade
0700: 64 7d 7b 2c 2d 6e 6f 74 6b 7d 7b 2c 2d 6e 6f 6d  d}{,-notk}{,-nom
0710: 6b 34 7d 2d 6b 69 74 64 6c 6c 20 6d 69 6e 7b 2c  k4}-kitdll min{,
0720: 2d 73 74 61 74 69 63 7d 20 7b 6c 69 6e 75 78 2d  -static} {linux-
0730: 6d 69 70 73 65 6c 2d 6d 69 6e 7d 7b 2c 2d 64 65  mipsel-min}{,-de
0740: 62 75 67 7d 7b 2c 2d 6b 69 74 64 6c 6c 7d 20 7b  bug}{,-kitdll} {
0750: 6c 69 6e 75 78 2d 69 33 38 36 2c 73 6f 6c 61 72  linux-i386,solar
0760: 69 73 2d 69 33 38 36 2c 73 6f 6c 61 72 69 73 2d  is-i386,solaris-
0770: 61 6d 64 36 34 2c 73 6f 6c 61 72 69 73 2d 73 70  amd64,solaris-sp
0780: 61 72 63 2c 73 6f 6c 61 72 69 73 2d 73 70 61 72  arc,solaris-spar
0790: 63 36 34 2c 66 72 65 65 62 73 64 2d 61 6d 64 36  c64,freebsd-amd6
07a0: 34 2c 6e 65 74 62 73 64 2d 61 6d 64 36 34 7d 7b  4,netbsd-amd64}{
07b0: 2c 2d 7a 69 70 2c 2d 6e 6f 6d 6b 34 7d 7b 2c 2d  ,-zip,-nomk4}{,-
07c0: 74 68 72 65 61 64 65 64 7d 7b 2c 2d 73 74 61 74  threaded}{,-stat
07d0: 69 63 74 6b 2c 2d 6e 6f 74 6b 7d 7b 2c 64 65 62  ictk,-notk}{,deb
07e0: 75 67 7d 20 7b 73 6f 6c 61 72 69 73 2d 69 33 38  ug} {solaris-i38
07f0: 36 2c 73 6f 6c 61 72 69 73 2d 61 6d 64 36 34 2c  6,solaris-amd64,
0800: 73 6f 6c 61 72 69 73 2d 73 70 61 72 63 2c 73 6f  solaris-sparc,so
0810: 6c 61 72 69 73 2d 73 70 61 72 63 36 34 2c 66 72  laris-sparc64,fr
0820: 65 65 62 73 64 2d 61 6d 64 36 34 2c 6e 65 74 62  eebsd-amd64,netb
0830: 73 64 2d 61 6d 64 36 34 7d 7b 2c 2d 74 68 72 65  sd-amd64}{,-thre
0840: 61 64 65 64 7d 7b 2c 2d 6e 6f 74 6b 7d 7b 2c 2d  aded}{,-notk}{,-
0850: 6e 6f 6d 6b 34 7d 7b 2c 64 65 62 75 67 7d 2d 6b  nomk4}{,debug}-k
0860: 69 74 64 6c 6c 20 6e 65 74 62 73 64 2d 69 33 38  itdll netbsd-i38
0870: 36 7b 2c 2d 7a 69 70 2c 2d 6e 6f 6d 6b 34 7d 7b  6{,-zip,-nomk4}{
0880: 2c 2d 74 68 72 65 61 64 65 64 7d 7b 2c 64 65 62  ,-threaded}{,deb
0890: 75 67 7d 2d 6e 6f 74 6b 20 6e 65 74 62 73 64 2d  ug}-notk netbsd-
08a0: 69 33 38 36 7b 2c 2d 74 68 72 65 61 64 65 64 7d  i386{,-threaded}
08b0: 7b 2c 2d 6e 6f 6d 6b 34 7d 7b 2c 64 65 62 75 67  {,-nomk4}{,debug
08c0: 7d 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 61 6e  }-notk-kitdll an
08d0: 64 72 6f 69 64 2d 61 72 6d 2d 6e 6f 74 6b 7b 2c  droid-arm-notk{,
08e0: 2d 64 65 62 75 67 7d 20 61 6e 64 6f 69 64 2d 61  -debug} andoid-a
08f0: 72 6d 2d 6e 6f 74 6b 7b 2c 2d 64 65 62 75 67 7d  rm-notk{,-debug}
0900: 2d 6b 69 74 64 6c 6c 29 22 0a 65 6c 73 65 0a 09  -kitdll)".else..
0910: 6b 69 74 73 3d 22 6e 6f 72 6d 61 6c 20 6e 6f 72  kits="normal nor
0920: 6d 61 6c 2d 7a 69 70 20 6e 6f 72 6d 61 6c 2d 74  mal-zip normal-t
0930: 68 72 65 61 64 65 64 20 6e 6f 72 6d 61 6c 2d 74  hreaded normal-t
0940: 68 72 65 61 64 65 64 2d 7a 69 70 20 6e 6f 72 6d  hreaded-zip norm
0950: 61 6c 2d 73 74 61 74 69 63 74 6b 20 6e 6f 72 6d  al-statictk norm
0960: 61 6c 2d 6e 6f 74 6b 20 6e 6f 72 6d 61 6c 2d 74  al-notk normal-t
0970: 68 72 65 61 64 65 64 2d 6e 6f 74 6b 20 6e 6f 72  hreaded-notk nor
0980: 6d 61 6c 2d 74 68 72 65 61 64 65 64 2d 7a 69 70  mal-threaded-zip
0990: 2d 6e 6f 74 6b 20 6e 6f 72 6d 61 6c 2d 6e 6f 6d  -notk normal-nom
09a0: 6b 34 20 6e 6f 72 6d 61 6c 2d 64 65 62 75 67 20  k4 normal-debug 
09b0: 6d 69 6e 20 6d 69 6e 2d 73 74 61 74 69 63 20 6e  min min-static n
09c0: 6f 72 6d 61 6c 2d 6b 69 74 64 6c 6c 20 6e 6f 72  ormal-kitdll nor
09d0: 6d 61 6c 2d 74 68 72 65 61 64 65 64 2d 6b 69 74  mal-threaded-kit
09e0: 64 6c 6c 20 6e 6f 72 6d 61 6c 2d 6e 6f 74 6b 2d  dll normal-notk-
09f0: 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61 6c 2d 6e 6f  kitdll normal-no
0a00: 6d 6b 34 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61  mk4-kitdll norma
0a10: 6c 2d 6e 6f 6d 6b 34 2d 6e 6f 74 6b 2d 6b 69 74  l-nomk4-notk-kit
0a20: 64 6c 6c 20 6e 6f 72 6d 61 6c 2d 74 68 72 65 61  dll normal-threa
0a30: 64 65 64 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c  ded-nomk4-kitdll
0a40: 20 6e 6f 72 6d 61 6c 2d 74 68 72 65 61 64 65 64   normal-threaded
0a50: 2d 6e 6f 74 6b 2d 6e 6f 6d 6b 34 2d 6b 69 74 64  -notk-nomk4-kitd
0a60: 6c 6c 20 6e 6f 72 6d 61 6c 2d 64 65 62 75 67 2d  ll normal-debug-
0a70: 6b 69 74 64 6c 6c 20 6d 69 6e 2d 6b 69 74 64 6c  kitdll min-kitdl
0a80: 6c 20 77 69 6e 33 32 2d 69 35 38 36 20 77 69 6e  l win32-i586 win
0a90: 33 32 2d 69 35 38 36 2d 7a 69 70 20 77 69 6e 33  32-i586-zip win3
0aa0: 32 2d 69 35 38 36 2d 74 68 72 65 61 64 65 64 20  2-i586-threaded 
0ab0: 77 69 6e 33 32 2d 69 35 38 36 2d 74 68 72 65 61  win32-i586-threa
0ac0: 64 65 64 2d 7a 69 70 20 77 69 6e 33 32 2d 69 35  ded-zip win32-i5
0ad0: 38 36 2d 6e 6f 74 6b 20 77 69 6e 33 32 2d 69 35  86-notk win32-i5
0ae0: 38 36 2d 74 68 72 65 61 64 65 64 2d 6e 6f 74 6b  86-threaded-notk
0af0: 20 77 69 6e 33 32 2d 69 35 38 36 2d 6e 6f 6d 6b   win32-i586-nomk
0b00: 34 20 77 69 6e 33 32 2d 69 35 38 36 2d 6b 69 74  4 win32-i586-kit
0b10: 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38 36 2d 74  dll win32-i586-t
0b20: 68 72 65 61 64 65 64 2d 6b 69 74 64 6c 6c 20 77  hreaded-kitdll w
0b30: 69 6e 33 32 2d 69 35 38 36 2d 6e 6f 74 6b 2d 6b  in32-i586-notk-k
0b40: 69 74 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38 36  itdll win32-i586
0b50: 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c 20 77 69  -nomk4-kitdll wi
0b60: 6e 33 32 2d 69 35 38 36 2d 6e 6f 6d 6b 34 2d 6e  n32-i586-nomk4-n
0b70: 6f 74 6b 2d 6b 69 74 64 6c 6c 20 77 69 6e 33 32  otk-kitdll win32
0b80: 2d 69 35 38 36 2d 74 68 72 65 61 64 65 64 2d 6e  -i586-threaded-n
0b90: 6f 6d 6b 34 2d 6b 69 74 64 6c 6c 20 77 69 6e 33  omk4-kitdll win3
0ba0: 32 2d 69 35 38 36 2d 74 68 72 65 61 64 65 64 2d  2-i586-threaded-
0bb0: 6e 6f 74 6b 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c  notk-nomk4-kitdl
0bc0: 6c 20 77 69 6e 36 34 2d 61 6d 64 36 34 20 77 69  l win64-amd64 wi
0bd0: 6e 36 34 2d 61 6d 64 36 34 2d 7a 69 70 20 77 69  n64-amd64-zip wi
0be0: 6e 36 34 2d 61 6d 64 36 34 2d 74 68 72 65 61 64  n64-amd64-thread
0bf0: 65 64 20 77 69 6e 36 34 2d 61 6d 64 36 34 2d 74  ed win64-amd64-t
0c00: 68 72 65 61 64 65 64 2d 7a 69 70 20 77 69 6e 36  hreaded-zip win6
0c10: 34 2d 61 6d 64 36 34 2d 6e 6f 74 6b 20 77 69 6e  4-amd64-notk win
0c20: 36 34 2d 61 6d 64 36 34 2d 74 68 72 65 61 64 65  64-amd64-threade
0c30: 64 2d 6e 6f 74 6b 20 77 69 6e 36 34 2d 61 6d 64  d-notk win64-amd
0c40: 36 34 2d 6e 6f 6d 6b 34 20 77 69 6e 36 34 2d 61  64-nomk4 win64-a
0c50: 6d 64 36 34 2d 6b 69 74 64 6c 6c 20 77 69 6e 36  md64-kitdll win6
0c60: 34 2d 61 6d 64 36 34 2d 74 68 72 65 61 64 65 64  4-amd64-threaded
0c70: 2d 6b 69 74 64 6c 6c 20 77 69 6e 36 34 2d 61 6d  -kitdll win64-am
0c80: 64 36 34 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20  d64-notk-kitdll 
0c90: 77 69 6e 36 34 2d 61 6d 64 36 34 2d 6e 6f 6d 6b  win64-amd64-nomk
0ca0: 34 2d 6b 69 74 64 6c 6c 20 77 69 6e 36 34 2d 61  4-kitdll win64-a
0cb0: 6d 64 36 34 2d 6e 6f 6d 6b 34 2d 6e 6f 74 6b 2d  md64-nomk4-notk-
0cc0: 6b 69 74 64 6c 6c 20 77 69 6e 36 34 2d 61 6d 64  kitdll win64-amd
0cd0: 36 34 2d 74 68 72 65 61 64 65 64 2d 6e 6f 6d 6b  64-threaded-nomk
0ce0: 34 2d 6b 69 74 64 6c 6c 20 77 69 6e 36 34 2d 61  4-kitdll win64-a
0cf0: 6d 64 36 34 2d 74 68 72 65 61 64 65 64 2d 6e 6f  md64-threaded-no
0d00: 74 6b 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c 20  tk-nomk4-kitdll 
0d10: 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 2d 6e 6f 74  linux-mipsel-not
0d20: 6b 20 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 2d 6e  k linux-mipsel-n
0d30: 6f 74 6b 2d 6b 69 74 64 6c 6c 20 6c 69 6e 75 78  otk-kitdll linux
0d40: 2d 69 33 38 36 20 6c 69 6e 75 78 2d 69 33 38 36  -i386 linux-i386
0d50: 2d 64 65 62 75 67 20 6c 69 6e 75 78 2d 69 33 38  -debug linux-i38
0d60: 36 2d 6b 69 74 64 6c 6c 20 6c 69 6e 75 78 2d 69  6-kitdll linux-i
0d70: 33 38 36 2d 64 65 62 75 67 2d 6b 69 74 64 6c 6c  386-debug-kitdll
0d80: 20 6c 69 6e 75 78 2d 69 33 38 36 2d 6e 6f 74 6b   linux-i386-notk
0d90: 20 6c 69 6e 75 78 2d 69 33 38 36 2d 6e 6f 74 6b   linux-i386-notk
0da0: 2d 64 65 62 75 67 20 6c 69 6e 75 78 2d 69 33 38  -debug linux-i38
0db0: 36 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 6c 69  6-notk-kitdll li
0dc0: 6e 75 78 2d 69 33 38 36 2d 6e 6f 74 6b 2d 64 65  nux-i386-notk-de
0dd0: 62 75 67 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72  bug-kitdll solar
0de0: 69 73 2d 69 33 38 36 20 73 6f 6c 61 72 69 73 2d  is-i386 solaris-
0df0: 69 33 38 36 2d 64 65 62 75 67 20 73 6f 6c 61 72  i386-debug solar
0e00: 69 73 2d 69 33 38 36 2d 6b 69 74 64 6c 6c 20 73  is-i386-kitdll s
0e10: 6f 6c 61 72 69 73 2d 69 33 38 36 2d 64 65 62 75  olaris-i386-debu
0e20: 67 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72 69 73  g-kitdll solaris
0e30: 2d 61 6d 64 36 34 20 73 6f 6c 61 72 69 73 2d 61  -amd64 solaris-a
0e40: 6d 64 36 34 2d 64 65 62 75 67 20 73 6f 6c 61 72  md64-debug solar
0e50: 69 73 2d 61 6d 64 36 34 2d 6b 69 74 64 6c 6c 20  is-amd64-kitdll 
0e60: 73 6f 6c 61 72 69 73 2d 61 6d 64 36 34 2d 64 65  solaris-amd64-de
0e70: 62 75 67 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72  bug-kitdll solar
0e80: 69 73 2d 73 70 61 72 63 20 73 6f 6c 61 72 69 73  is-sparc solaris
0e90: 2d 73 70 61 72 63 2d 64 65 62 75 67 20 73 6f 6c  -sparc-debug sol
0ea0: 61 72 69 73 2d 73 70 61 72 63 2d 6b 69 74 64 6c  aris-sparc-kitdl
0eb0: 6c 20 73 6f 6c 61 72 69 73 2d 73 70 61 72 63 2d  l solaris-sparc-
0ec0: 64 65 62 75 67 2d 6b 69 74 64 6c 6c 20 73 6f 6c  debug-kitdll sol
0ed0: 61 72 69 73 2d 73 70 61 72 63 36 34 20 73 6f 6c  aris-sparc64 sol
0ee0: 61 72 69 73 2d 73 70 61 72 63 36 34 2d 64 65 62  aris-sparc64-deb
0ef0: 75 67 20 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  ug solaris-sparc
0f00: 36 34 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72 69  64-kitdll solari
0f10: 73 2d 73 70 61 72 63 36 34 2d 64 65 62 75 67 2d  s-sparc64-debug-
0f20: 6b 69 74 64 6c 6c 20 66 72 65 65 62 73 64 2d 61  kitdll freebsd-a
0f30: 6d 64 36 34 20 66 72 65 65 62 73 64 2d 61 6d 64  md64 freebsd-amd
0f40: 36 34 2d 64 65 62 75 67 20 66 72 65 65 62 73 64  64-debug freebsd
0f50: 2d 61 6d 64 36 34 2d 6b 69 74 64 6c 6c 20 66 72  -amd64-kitdll fr
0f60: 65 65 62 73 64 2d 61 6d 64 36 34 2d 64 65 62 75  eebsd-amd64-debu
0f70: 67 2d 6b 69 74 64 6c 6c 20 6e 65 74 62 73 64 2d  g-kitdll netbsd-
0f80: 69 33 38 36 2d 6e 6f 74 6b 20 6e 65 74 62 73 64  i386-notk netbsd
0f90: 2d 69 33 38 36 2d 6e 6f 74 6b 2d 64 65 62 75 67  -i386-notk-debug
0fa0: 20 6e 65 74 62 73 64 2d 69 33 38 36 2d 6e 6f 74   netbsd-i386-not
0fb0: 6b 2d 6b 69 74 64 6c 6c 20 6e 65 74 62 73 64 2d  k-kitdll netbsd-
0fc0: 69 33 38 36 2d 6e 6f 74 6b 2d 64 65 62 75 67 2d  i386-notk-debug-
0fd0: 6b 69 74 64 6c 6c 20 6e 65 74 62 73 64 2d 61 6d  kitdll netbsd-am
0fe0: 64 36 34 20 6e 65 74 62 73 64 2d 61 6d 64 36 34  d64 netbsd-amd64
0ff0: 2d 64 65 62 75 67 20 6e 65 74 62 73 64 2d 61 6d  -debug netbsd-am
1000: 64 36 34 2d 6b 69 74 64 6c 6c 20 6e 65 74 62 73  d64-kitdll netbs
1010: 64 2d 61 6d 64 36 34 2d 64 65 62 75 67 2d 6b 69  d-amd64-debug-ki
1020: 74 64 6c 6c 20 61 6e 64 72 6f 69 64 2d 61 72 6d  tdll android-arm
1030: 2d 6e 6f 74 6b 20 61 6e 64 72 6f 69 64 2d 61 72  -notk android-ar
1040: 6d 2d 6e 6f 74 6b 2d 64 65 62 75 67 20 61 6e 64  m-notk-debug and
1050: 72 6f 69 64 2d 61 72 6d 2d 6e 6f 74 6b 2d 6b 69  roid-arm-notk-ki
1060: 74 64 6c 6c 20 61 6e 64 72 6f 69 64 2d 61 72 6d  tdll android-arm
1070: 2d 6e 6f 74 6b 2d 64 65 62 75 67 2d 6b 69 74 64  -notk-debug-kitd
1080: 6c 6c 22 0a 66 69 0a 0a 66 61 69 6c 65 64 3d 22  ll".fi..failed="
1090: 22 0a 66 6f 72 20 6b 69 74 20 69 6e 20 24 6b 69  ".for kit in $ki
10a0: 74 73 3b 20 64 6f 0a 09 6b 69 74 63 72 65 61 74  ts; do..kitcreat
10b0: 6f 72 3d 22 2e 2f 6b 69 74 63 72 65 61 74 6f 72  or="./kitcreator
10c0: 22 0a 09 61 72 67 73 3d 22 22 0a 09 72 75 6e 6e  "..args=""..runn
10d0: 61 62 6c 65 3d 22 31 22 0a 09 69 73 7a 69 70 3d  able="1"..iszip=
10e0: 22 30 22 0a 09 73 74 61 74 69 63 74 6b 3d 22 30  "0"..statictk="0
10f0: 22 0a 09 6e 6f 74 6b 3d 22 30 22 0a 09 6e 6f 6d  "..notk="0"..nom
1100: 6b 34 3d 22 30 22 0a 09 78 63 6f 6d 70 69 6c 65  k4="0"..xcompile
1110: 3d 22 30 22 0a 09 6b 69 74 64 6c 6c 3d 22 30 22  ="0"..kitdll="0"
1120: 0a 09 6b 69 74 72 75 6e 63 6d 64 3d 22 22 0a 0a  ..kitruncmd=""..
1130: 09 23 20 48 61 6e 64 6c 65 20 62 61 73 65 20 63  .# Handle base c
1140: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a 09 6f 73  onfiguration..os
1150: 3d 22 24 28 75 6e 61 6d 65 20 2d 73 20 7c 20 64  ="$(uname -s | d
1160: 64 20 63 6f 6e 76 3d 6c 63 61 73 65 20 32 3e 2f  d conv=lcase 2>/
1170: 64 65 76 2f 6e 75 6c 6c 29 22 0a 09 63 70 75 3d  dev/null)"..cpu=
1180: 22 24 28 75 6e 61 6d 65 20 2d 6d 20 7c 20 64 64  "$(uname -m | dd
1190: 20 63 6f 6e 76 3d 6c 63 61 73 65 20 32 3e 2f 64   conv=lcase 2>/d
11a0: 65 76 2f 6e 75 6c 6c 20 7c 20 73 65 64 20 27 73  ev/null | sed 's
11b0: 40 78 38 36 5f 36 34 40 61 6d 64 36 34 40 3b 73  @x86_64@amd64@;s
11c0: 40 69 2e 38 36 40 69 33 38 36 40 27 29 22 0a 09  @i.86@i386@')"..
11d0: 63 61 73 65 20 22 24 7b 6b 69 74 7d 22 20 69 6e  case "${kit}" in
11e0: 0a 09 09 6e 6f 72 6d 61 6c 7c 6e 6f 72 6d 61 6c  ...normal|normal
11f0: 2d 2a 29 0a 09 09 09 6b 69 74 3d 22 24 28 65 63  -*)....kit="$(ec
1200: 68 6f 20 22 24 7b 6b 69 74 7d 22 20 7c 20 73 65  ho "${kit}" | se
1210: 64 20 22 73 40 5e 6e 6f 72 6d 61 6c 40 24 6f 73  d "s@^normal@$os
1220: 2d 24 63 70 75 40 22 29 22 0a 09 09 09 3b 3b 0a  -$cpu@")"....;;.
1230: 09 09 6d 69 6e 7c 6d 69 6e 2d 6b 69 74 64 6c 6c  ..min|min-kitdll
1240: 29 0a 09 09 09 6b 69 74 63 72 65 61 74 6f 72 3d  )....kitcreator=
1250: 22 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69  "./build/make-mi
1260: 6e 6b 69 74 22 0a 09 09 09 69 73 7a 69 70 3d 22  nkit"....iszip="
1270: 31 22 0a 09 09 09 6e 6f 74 6b 3d 22 31 22 0a 09  1"....notk="1"..
1280: 09 09 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24  ..kit="$(echo "$
1290: 7b 6b 69 74 7d 22 20 7c 20 73 65 64 20 22 73 40  {kit}" | sed "s@
12a0: 5e 6d 69 6e 40 24 6f 73 2d 24 63 70 75 2d 6d 69  ^min@$os-$cpu-mi
12b0: 6e 40 22 29 22 0a 09 09 09 3b 3b 0a 09 09 6d 69  n@")"....;;...mi
12c0: 6e 2d 73 74 61 74 69 63 29 0a 09 09 09 6b 69 74  n-static)....kit
12d0: 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75 69 6c 64  creator="./build
12e0: 2f 6d 61 6b 65 2d 6d 69 6e 6b 69 74 2d 73 74 61  /make-minkit-sta
12f0: 74 69 63 22 0a 09 09 09 69 73 7a 69 70 3d 22 31  tic"....iszip="1
1300: 22 0a 09 09 09 6e 6f 74 6b 3d 22 31 22 0a 09 09  "....notk="1"...
1310: 09 6b 69 74 3d 22 24 7b 6f 73 7d 2d 24 7b 63 70  .kit="${os}-${cp
1320: 75 7d 2d 6d 69 6e 2d 73 74 61 74 69 63 22 0a 09  u}-min-static"..
1330: 09 09 3b 3b 0a 09 09 77 69 6e 33 32 7c 77 69 6e  ..;;...win32|win
1340: 33 32 2d 2a 29 0a 09 09 09 6b 69 74 63 72 65 61  32-*)....kitcrea
1350: 74 6f 72 3d 22 2e 2f 62 75 69 6c 64 2f 6d 61 6b  tor="./build/mak
1360: 65 2d 6b 69 74 2d 77 69 6e 33 32 22 0a 09 09 09  e-kit-win32"....
1370: 78 63 6f 6d 70 69 6c 65 3d 22 31 22 0a 09 09 09  xcompile="1"....
1380: 72 75 6e 6e 61 62 6c 65 3d 22 31 22 0a 09 09 09  runnable="1"....
1390: 6b 69 74 72 75 6e 63 6d 64 3d 22 77 69 6e 65 22  kitruncmd="wine"
13a0: 0a 09 09 09 3b 3b 0a 09 09 77 69 6e 36 34 7c 77  ....;;...win64|w
13b0: 69 6e 36 34 2d 2a 29 0a 09 09 09 6b 69 74 63 72  in64-*)....kitcr
13c0: 65 61 74 6f 72 3d 22 2e 2f 62 75 69 6c 64 2f 6d  eator="./build/m
13d0: 61 6b 65 2d 6b 69 74 2d 77 69 6e 33 32 22 0a 09  ake-kit-win32"..
13e0: 09 09 78 63 6f 6d 70 69 6c 65 3d 22 31 22 0a 09  ..xcompile="1"..
13f0: 09 09 72 75 6e 6e 61 62 6c 65 3d 22 31 22 0a 09  ..runnable="1"..
1400: 09 09 6b 69 74 72 75 6e 63 6d 64 3d 22 77 69 6e  ..kitruncmd="win
1410: 65 36 34 22 0a 09 09 09 3b 3b 0a 09 09 6c 69 6e  e64"....;;...lin
1420: 75 78 2d 6d 69 70 73 65 6c 2d 6d 69 6e 7c 6c 69  ux-mipsel-min|li
1430: 6e 75 78 2d 6d 69 70 73 65 6c 2d 6d 69 6e 2d 6b  nux-mipsel-min-k
1440: 69 74 64 6c 6c 29 0a 09 09 09 6b 69 74 63 72 65  itdll)....kitcre
1450: 61 74 6f 72 3d 22 2e 2f 62 75 69 6c 64 2f 6d 61  ator="./build/ma
1460: 6b 65 2d 6b 69 74 2d 6c 69 6e 75 78 2d 6d 69 70  ke-kit-linux-mip
1470: 73 65 6c 22 0a 09 09 09 72 75 6e 6e 61 62 6c 65  sel"....runnable
1480: 3d 22 30 22 0a 09 09 09 78 63 6f 6d 70 69 6c 65  ="0"....xcompile
1490: 3d 22 31 22 0a 09 09 09 6e 6f 74 6b 3d 22 31 22  ="1"....notk="1"
14a0: 0a 09 09 09 69 73 7a 69 70 3d 22 31 22 0a 09 09  ....iszip="1"...
14b0: 09 3b 3b 0a 09 09 6c 69 6e 75 78 2d 69 33 38 36  .;;...linux-i386
14c0: 7c 6c 69 6e 75 78 2d 69 33 38 36 2d 2a 29 0a 09  |linux-i386-*)..
14d0: 09 09 6b 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f  ..kitcreator="./
14e0: 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 6c  build/make-kit-l
14f0: 69 6e 75 78 2d 69 33 38 36 22 0a 09 09 09 78 63  inux-i386"....xc
1500: 6f 6d 70 69 6c 65 3d 22 31 22 0a 09 09 09 3b 3b  ompile="1"....;;
1510: 0a 09 09 61 6e 64 72 6f 69 64 2d 61 72 6d 7c 61  ...android-arm|a
1520: 6e 64 72 6f 69 64 2d 61 72 6d 2d 2a 7c 5c 0a 09  ndroid-arm-*|\..
1530: 09 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 7c 6c 69  .linux-mipsel|li
1540: 6e 75 78 2d 6d 69 70 73 65 6c 2d 2a 7c 5c 0a 09  nux-mipsel-*|\..
1550: 09 6c 69 6e 75 78 2d 61 6d 64 36 34 7c 6c 69 6e  .linux-amd64|lin
1560: 75 78 2d 61 6d 64 36 34 2d 2a 7c 5c 0a 09 09 73  ux-amd64-*|\...s
1570: 6f 6c 61 72 69 73 2d 69 33 38 36 7c 73 6f 6c 61  olaris-i386|sola
1580: 72 69 73 2d 69 33 38 36 2d 2a 7c 5c 0a 09 09 73  ris-i386-*|\...s
1590: 6f 6c 61 72 69 73 2d 61 6d 64 36 34 7c 73 6f 6c  olaris-amd64|sol
15a0: 61 72 69 73 2d 61 6d 64 36 34 2d 2a 7c 5c 0a 09  aris-amd64-*|\..
15b0: 09 73 6f 6c 61 72 69 73 2d 73 70 61 72 63 7c 73  .solaris-sparc|s
15c0: 6f 6c 61 72 69 73 2d 73 70 61 72 63 2d 2a 7c 5c  olaris-sparc-*|\
15d0: 0a 09 09 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  ...solaris-sparc
15e0: 36 34 7c 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  64|solaris-sparc
15f0: 36 34 2d 2a 7c 5c 0a 09 09 66 72 65 65 62 73 64  64-*|\...freebsd
1600: 2d 61 6d 64 36 34 7c 66 72 65 65 62 73 64 2d 61  -amd64|freebsd-a
1610: 6d 64 36 34 2d 2a 7c 5c 0a 09 09 6e 65 74 62 73  md64-*|\...netbs
1620: 64 2d 69 33 38 36 7c 6e 65 74 62 73 64 2d 69 33  d-i386|netbsd-i3
1630: 38 36 2d 2a 7c 5c 0a 09 09 6e 65 74 62 73 64 2d  86-*|\...netbsd-
1640: 61 6d 64 36 34 7c 6e 65 74 62 73 64 2d 61 6d 64  amd64|netbsd-amd
1650: 36 34 2d 2a 7c 5c 0a 09 09 68 70 75 78 2d 68 70  64-*|\...hpux-hp
1660: 70 61 36 34 7c 68 70 75 78 2d 68 70 70 61 36 34  pa64|hpux-hppa64
1670: 2d 2a 29 0a 09 09 09 70 6c 61 74 66 6f 72 6d 3d  -*)....platform=
1680: 22 24 28 65 63 68 6f 20 22 24 7b 6b 69 74 7d 22  "$(echo "${kit}"
1690: 20 7c 20 63 75 74 20 2d 66 20 31 2d 32 20 2d 64   | cut -f 1-2 -d
16a0: 20 27 2d 27 29 22 0a 09 09 09 6b 69 74 63 72 65   '-')"....kitcre
16b0: 61 74 6f 72 3d 22 2e 2f 62 75 69 6c 64 2f 6d 61  ator="./build/ma
16c0: 6b 65 2d 6b 69 74 2d 24 7b 70 6c 61 74 66 6f 72  ke-kit-${platfor
16d0: 6d 7d 22 0a 09 09 09 72 75 6e 6e 61 62 6c 65 3d  m}"....runnable=
16e0: 22 30 22 0a 09 09 09 78 63 6f 6d 70 69 6c 65 3d  "0"....xcompile=
16f0: 22 31 22 0a 09 09 09 69 73 7a 69 70 3d 22 30 22  "1"....iszip="0"
1700: 0a 0a 09 09 09 3b 3b 0a 09 65 73 61 63 0a 0a 09  .....;;..esac...
1710: 69 66 20 65 63 68 6f 20 22 24 7b 6b 69 74 7d 22  if echo "${kit}"
1720: 20 7c 20 65 67 72 65 70 20 2d 2d 20 27 2d 28 68   | egrep -- '-(h
1730: 70 70 61 36 34 7c 61 6d 64 36 34 7c 73 70 61 72  ppa64|amd64|spar
1740: 63 36 34 29 28 2d 7c 24 29 27 20 3e 2f 64 65 76  c64)(-|$)' >/dev
1750: 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 61 72  /null; then...ar
1760: 67 73 3d 22 24 7b 61 72 67 73 7d 20 2d 2d 65 6e  gs="${args} --en
1770: 61 62 6c 65 2d 36 34 62 69 74 22 0a 09 66 69 0a  able-64bit"..fi.
1780: 0a 09 63 61 73 65 20 22 24 7b 6b 69 74 72 75 6e  ..case "${kitrun
1790: 63 6d 64 7d 22 20 69 6e 0a 09 09 77 69 6e 65 29  cmd}" in...wine)
17a0: 0a 09 09 09 57 49 4e 45 50 52 45 46 49 58 3d 22  ....WINEPREFIX="
17b0: 24 7b 57 49 4e 45 50 52 45 46 49 58 33 32 7d 22  ${WINEPREFIX32}"
17c0: 0a 09 09 09 65 78 70 6f 72 74 20 57 49 4e 45 50  ....export WINEP
17d0: 52 45 46 49 58 0a 09 09 09 3b 3b 0a 09 09 77 69  REFIX....;;...wi
17e0: 6e 65 36 34 29 0a 09 09 09 57 49 4e 45 50 52 45  ne64)....WINEPRE
17f0: 46 49 58 3d 22 24 7b 57 49 4e 45 50 52 45 46 49  FIX="${WINEPREFI
1800: 58 36 34 7d 22 0a 09 09 09 65 78 70 6f 72 74 20  X64}"....export 
1810: 57 49 4e 45 50 52 45 46 49 58 0a 09 09 09 3b 3b  WINEPREFIX....;;
1820: 0a 09 65 73 61 63 0a 0a 09 69 66 20 5b 20 22 24  ..esac...if [ "$
1830: 7b 78 63 6f 6d 70 69 6c 65 7d 22 20 21 3d 20 22  {xcompile}" != "
1840: 30 22 20 5d 3b 20 74 68 65 6e 0a 09 09 6b 69 74  0" ]; then...kit
1850: 3d 22 24 7b 6b 69 74 7d 2d 78 63 6f 6d 70 69 6c  ="${kit}-xcompil
1860: 65 22 0a 09 66 69 0a 0a 09 23 20 48 61 6e 64 6c  e"..fi...# Handl
1870: 65 20 61 64 64 69 74 69 6f 6e 61 6c 20 63 6f 6e  e additional con
1880: 66 69 67 75 72 61 74 69 6f 6e 0a 09 74 65 6d 70  figuration..temp
1890: 6b 69 74 3d 22 2d 24 7b 6b 69 74 7d 2d 22 0a 09  kit="-${kit}-"..
18a0: 66 6f 72 20 74 72 79 20 69 6e 20 31 20 32 20 33  for try in 1 2 3
18b0: 20 34 20 35 20 36 20 37 20 38 20 39 3b 20 64 6f   4 5 6 7 8 9; do
18c0: 0a 09 09 63 61 73 65 20 22 2d 24 7b 74 65 6d 70  ...case "-${temp
18d0: 6b 69 74 7d 2d 22 20 69 6e 0a 09 09 09 2a 2d 74  kit}-" in....*-t
18e0: 68 72 65 61 64 65 64 2d 2a 29 0a 09 09 09 09 74  hreaded-*).....t
18f0: 65 6d 70 6b 69 74 3d 22 24 28 65 63 68 6f 20 22  empkit="$(echo "
1900: 24 7b 74 65 6d 70 6b 69 74 7d 22 20 7c 20 73 65  ${tempkit}" | se
1910: 64 20 27 73 40 2d 74 68 72 65 61 64 65 64 2d 40  d 's@-threaded-@
1920: 2d 40 27 29 22 0a 09 09 09 09 61 72 67 73 3d 22  -@')".....args="
1930: 24 7b 61 72 67 73 7d 20 2d 2d 65 6e 61 62 6c 65  ${args} --enable
1940: 2d 74 68 72 65 61 64 73 22 0a 09 09 09 09 3b 3b  -threads".....;;
1950: 0a 09 09 09 2a 2d 7a 69 70 2d 2a 29 0a 09 09 09  ....*-zip-*)....
1960: 09 74 65 6d 70 6b 69 74 3d 22 24 28 65 63 68 6f  .tempkit="$(echo
1970: 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22 20 7c 20   "${tempkit}" | 
1980: 73 65 64 20 27 73 40 2d 7a 69 70 2d 40 2d 40 27  sed 's@-zip-@-@'
1990: 29 22 0a 09 09 09 09 61 72 67 73 3d 22 24 7b 61  )".....args="${a
19a0: 72 67 73 7d 20 2d 2d 65 6e 61 62 6c 65 2d 6b 69  rgs} --enable-ki
19b0: 74 2d 73 74 6f 72 61 67 65 3d 7a 69 70 22 0a 09  t-storage=zip"..
19c0: 09 09 09 69 73 7a 69 70 3d 22 31 22 0a 09 09 09  ...iszip="1"....
19d0: 09 3b 3b 0a 09 09 09 2a 2d 73 74 61 74 69 63 74  .;;....*-statict
19e0: 6b 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b 69 74  k-*).....tempkit
19f0: 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65 6d 70  ="$(echo "${temp
1a00: 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73 40 2d  kit}" | sed 's@-
1a10: 73 74 61 74 69 63 74 6b 2d 40 2d 40 27 29 22 0a  statictk-@-@')".
1a20: 09 09 09 09 69 66 20 5b 20 22 24 7b 6e 6f 74 6b  ....if [ "${notk
1a30: 7d 22 20 3d 20 22 30 22 20 5d 3b 20 74 68 65 6e  }" = "0" ]; then
1a40: 0a 09 09 09 09 09 73 74 61 74 69 63 74 6b 3d 22  ......statictk="
1a50: 31 22 0a 09 09 09 09 65 6c 73 65 0a 09 09 09 09  1".....else.....
1a60: 09 65 63 68 6f 20 22 24 7b 6b 69 74 7d 3a 20 55  .echo "${kit}: U
1a70: 6e 61 62 6c 65 20 74 6f 20 63 72 65 61 74 65 20  nable to create 
1a80: 53 74 61 74 69 63 54 6b 20 61 6e 64 20 4e 6f 54  StaticTk and NoT
1a90: 6b 2c 20 69 67 6e 6f 72 69 6e 67 20 53 74 61 74  k, ignoring Stat
1aa0: 69 63 54 6b 22 20 3e 26 32 0a 09 09 09 09 66 69  icTk" >&2.....fi
1ab0: 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d 6e 6f 74  .....;;....*-not
1ac0: 6b 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b 69 74  k-*).....tempkit
1ad0: 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65 6d 70  ="$(echo "${temp
1ae0: 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73 40 2d  kit}" | sed 's@-
1af0: 6e 6f 74 6b 2d 40 2d 40 27 29 22 0a 09 09 09 09  notk-@-@')".....
1b00: 69 66 20 5b 20 22 24 7b 73 74 61 74 69 63 74 6b  if [ "${statictk
1b10: 7d 22 20 3d 20 22 30 22 20 5d 3b 20 74 68 65 6e  }" = "0" ]; then
1b20: 0a 09 09 09 09 09 6e 6f 74 6b 3d 22 31 22 0a 09  ......notk="1"..
1b30: 09 09 09 65 6c 73 65 0a 09 09 09 09 09 65 63 68  ...else......ech
1b40: 6f 20 22 24 7b 6b 69 74 7d 3a 20 55 6e 61 62 6c  o "${kit}: Unabl
1b50: 65 20 74 6f 20 63 72 65 61 74 65 20 53 74 61 74  e to create Stat
1b60: 69 63 54 6b 20 61 6e 64 20 4e 6f 54 6b 2c 20 69  icTk and NoTk, i
1b70: 67 6e 6f 72 69 6e 67 20 4e 6f 54 6b 22 20 3e 26  gnoring NoTk" >&
1b80: 32 0a 09 09 09 09 66 69 0a 09 09 09 09 3b 3b 0a  2.....fi.....;;.
1b90: 09 09 09 2a 2d 6e 6f 6d 6b 34 2d 2a 29 0a 09 09  ...*-nomk4-*)...
1ba0: 09 09 74 65 6d 70 6b 69 74 3d 22 24 28 65 63 68  ..tempkit="$(ech
1bb0: 6f 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22 20 7c  o "${tempkit}" |
1bc0: 20 73 65 64 20 27 73 40 2d 6e 6f 6d 6b 34 2d 40   sed 's@-nomk4-@
1bd0: 2d 40 27 29 22 0a 09 09 09 09 6e 6f 6d 6b 34 3d  -@')".....nomk4=
1be0: 22 31 22 0a 09 09 09 09 69 73 7a 69 70 3d 22 31  "1".....iszip="1
1bf0: 22 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d 6b 69  ".....;;....*-ki
1c00: 74 64 6c 6c 2d 2a 29 0a 09 09 09 09 74 65 6d 70  tdll-*).....temp
1c10: 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 74  kit="$(echo "${t
1c20: 65 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64 20 27  empkit}" | sed '
1c30: 73 40 2d 6b 69 74 64 6c 6c 2d 40 2d 40 27 29 22  s@-kitdll-@-@')"
1c40: 0a 09 09 09 09 6b 69 74 64 6c 6c 3d 22 31 22 0a  .....kitdll="1".
1c50: 09 09 09 09 3b 3b 0a 09 09 09 2a 2d 64 65 62 75  ....;;....*-debu
1c60: 67 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b 69 74  g-*).....tempkit
1c70: 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65 6d 70  ="$(echo "${temp
1c80: 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73 40 2d  kit}" | sed 's@-
1c90: 64 65 62 75 67 2d 40 2d 40 27 29 22 0a 09 09 09  debug-@-@')"....
1ca0: 09 61 72 67 73 3d 22 24 7b 61 72 67 73 7d 20 2d  .args="${args} -
1cb0: 2d 65 6e 61 62 6c 65 2d 73 79 6d 62 6f 6c 73 22  -enable-symbols"
1cc0: 0a 09 09 09 09 3b 3b 0a 09 09 65 73 61 63 0a 09  .....;;...esac..
1cd0: 64 6f 6e 65 0a 0a 09 69 66 20 5b 20 22 24 7b 6b  done...if [ "${k
1ce0: 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d 3b  itdll}" = "1" ];
1cf0: 20 74 68 65 6e 0a 09 09 23 20 43 75 72 72 65 6e   then...# Curren
1d00: 74 6c 79 20 6e 6f 20 4b 69 74 44 4c 4c 20 75 73  tly no KitDLL us
1d10: 65 73 20 5a 69 70 0a 09 09 69 73 7a 69 70 3d 22  es Zip...iszip="
1d20: 30 22 0a 09 66 69 0a 0a 09 66 6f 72 20 76 65 72  0"..fi...for ver
1d30: 73 69 6f 6e 20 69 6e 20 24 7b 56 45 52 53 49 4f  sion in ${VERSIO
1d40: 4e 53 7d 3b 20 64 6f 0a 09 09 23 20 57 6f 72 6b  NS}; do...# Work
1d50: 20 61 72 6f 75 6e 64 20 63 68 61 6e 67 65 73 20   around changes 
1d60: 69 6e 20 64 65 66 61 75 6c 74 20 62 65 68 61 76  in default behav
1d70: 69 6f 75 72 0a 09 09 69 66 20 5b 20 22 24 7b 76  iour...if [ "${v
1d80: 65 72 73 69 6f 6e 7d 22 20 3d 20 22 63 76 73 5f  ersion}" = "cvs_
1d90: 48 45 41 44 22 20 5d 3b 20 74 68 65 6e 0a 09 09  HEAD" ]; then...
1da0: 09 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b  .kit="$(echo "${
1db0: 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73 40 2d  kit}" | sed 's@-
1dc0: 74 68 72 65 61 64 65 64 40 2d 75 6e 74 68 72 65  threaded@-unthre
1dd0: 61 64 65 64 40 27 29 22 0a 09 09 09 61 72 67 73  aded@')"....args
1de0: 3d 22 24 28 65 63 68 6f 20 22 24 7b 61 72 67 73  ="$(echo "${args
1df0: 7d 22 20 7c 20 73 65 64 20 27 73 40 20 2d 2d 65  }" | sed 's@ --e
1e00: 6e 61 62 6c 65 2d 74 68 72 65 61 64 73 40 20 2d  nable-threads@ -
1e10: 2d 64 69 73 61 62 6c 65 2d 74 68 72 65 61 64 73  -disable-threads
1e20: 40 27 29 22 0a 09 09 66 69 0a 0a 09 09 23 20 43  @')"...fi....# C
1e30: 72 65 61 74 65 20 54 63 6c 6b 69 74 0a 09 09 69  reate Tclkit...i
1e40: 66 20 5b 20 22 24 7b 6b 69 74 64 6c 6c 7d 22 20  f [ "${kitdll}" 
1e50: 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09 09  = "1" ]; then...
1e60: 09 63 72 65 61 74 65 64 6b 69 74 3d 22 6c 69 62  .createdkit="lib
1e70: 74 63 6c 6b 69 74 2a 2e 64 6c 6c 20 6c 69 62 74  tclkit*.dll libt
1e80: 63 6c 6b 69 74 2a 2e 2a 22 0a 09 09 09 6f 75 74  clkit*.*"....out
1e90: 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53 54 44  putname="${TESTD
1ea0: 49 52 7d 2f 6b 69 74 73 2f 6c 69 62 74 63 6c 6b  IR}/kits/libtclk
1eb0: 69 74 2d 24 7b 76 65 72 73 69 6f 6e 7d 2d 24 7b  it-${version}-${
1ec0: 6b 69 74 7d 22 0a 09 09 09 66 61 69 6c 6f 75 74  kit}"....failout
1ed0: 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53 54 44  putname="${TESTD
1ee0: 49 52 7d 2f 6b 69 74 73 2f 66 61 69 6c 65 64 2f  IR}/kits/failed/
1ef0: 6c 69 62 74 63 6c 6b 69 74 2d 24 7b 76 65 72 73  libtclkit-${vers
1f00: 69 6f 6e 7d 2d 24 7b 6b 69 74 7d 22 0a 09 09 09  ion}-${kit}"....
1f10: 73 64 6b 3d 22 6c 69 62 74 63 6c 6b 69 74 2d 73  sdk="libtclkit-s
1f20: 64 6b 2d 24 7b 76 65 72 73 69 6f 6e 7d 2e 74 61  dk-${version}.ta
1f30: 72 2e 67 7a 22 0a 09 09 65 6c 73 65 0a 09 09 09  r.gz"...else....
1f40: 63 72 65 61 74 65 64 6b 69 74 3d 22 74 63 6c 6b  createdkit="tclk
1f50: 69 74 2d 24 7b 76 65 72 73 69 6f 6e 7d 22 0a 09  it-${version}"..
1f60: 09 09 6f 75 74 70 75 74 6e 61 6d 65 3d 22 24 7b  ..outputname="${
1f70: 54 45 53 54 44 49 52 7d 2f 6b 69 74 73 2f 74 63  TESTDIR}/kits/tc
1f80: 6c 6b 69 74 2d 24 7b 76 65 72 73 69 6f 6e 7d 2d  lkit-${version}-
1f90: 24 7b 6b 69 74 7d 22 0a 09 09 09 66 61 69 6c 6f  ${kit}"....failo
1fa0: 75 74 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53  utputname="${TES
1fb0: 54 44 49 52 7d 2f 6b 69 74 73 2f 66 61 69 6c 65  TDIR}/kits/faile
1fc0: 64 2f 74 63 6c 6b 69 74 2d 24 7b 76 65 72 73 69  d/tclkit-${versi
1fd0: 6f 6e 7d 2d 24 7b 6b 69 74 7d 22 0a 09 09 09 73  on}-${kit}"....s
1fe0: 64 6b 3d 27 27 0a 09 09 66 69 0a 09 09 62 75 69  dk=''...fi...bui
1ff0: 6c 64 6c 6f 67 3d 22 24 7b 6f 75 74 70 75 74 6e  ldlog="${outputn
2000: 61 6d 65 7d 2d 62 75 69 6c 64 2e 6c 6f 67 22 0a  ame}-build.log".
2010: 09 09 66 61 69 6c 62 75 69 6c 64 6c 6f 67 3d 22  ..failbuildlog="
2020: 24 7b 66 61 69 6c 6f 75 74 70 75 74 6e 61 6d 65  ${failoutputname
2030: 7d 2d 62 75 69 6c 64 2e 6c 6f 67 22 0a 09 09 74  }-build.log"...t
2040: 65 73 74 72 65 73 75 6c 74 73 6c 6f 67 3d 22 24  estresultslog="$
2050: 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 74 65 73  {outputname}-tes
2060: 74 73 2e 6c 6f 67 22 0a 0a 09 09 69 66 20 5b 20  ts.log"....if [ 
2070: 21 20 2d 66 20 22 24 7b 6f 75 74 70 75 74 6e 61  ! -f "${outputna
2080: 6d 65 7d 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09  me}" ]; then....
2090: 75 6e 73 65 74 20 4b 49 54 43 52 45 41 54 4f 52  unset KITCREATOR
20a0: 5f 50 4b 47 53 20 53 54 41 54 49 43 54 4b 20 53  _PKGS STATICTK S
20b0: 54 52 49 50 0a 0a 09 09 09 69 66 20 5b 20 2d 66  TRIP.....if [ -f
20c0: 20 22 24 7b 66 61 69 6c 6f 75 74 70 75 74 6e 61   "${failoutputna
20d0: 6d 65 7d 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09  me}" ]; then....
20e0: 09 65 63 68 6f 20 22 53 6b 69 70 70 69 6e 67 20  .echo "Skipping 
20f0: 72 65 62 75 69 6c 64 69 6e 67 20 66 61 69 6c 65  rebuilding faile
2100: 64 20 6b 69 74 20 24 7b 76 65 72 73 69 6f 6e 7d  d kit ${version}
2110: 2f 24 7b 6b 69 74 7d 20 2e 2e 2e 22 0a 0a 09 09  /${kit} ..."....
2120: 09 09 66 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c  ..failed="${fail
2130: 65 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24  ed} ${version}/$
2140: 7b 6b 69 74 7d 2d 62 75 69 6c 64 22 0a 0a 09 09  {kit}-build"....
2150: 09 09 63 6f 6e 74 69 6e 75 65 0a 09 09 09 66 69  ..continue....fi
2160: 0a 0a 09 09 09 72 6d 20 2d 66 20 74 63 6c 73 68  .....rm -f tclsh
2170: 0a 09 09 09 2e 2f 6b 69 74 63 72 65 61 74 6f 72  ...../kitcreator
2180: 20 63 6c 65 61 6e 20 3e 2f 64 65 76 2f 6e 75 6c   clean >/dev/nul
2190: 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a 0a 09  l 2>/dev/null...
21a0: 09 09 65 63 68 6f 20 22 43 72 65 61 74 69 6e 67  ..echo "Creating
21b0: 20 54 63 6c 6b 69 74 20 24 7b 76 65 72 73 69 6f   Tclkit ${versio
21c0: 6e 7d 2f 24 7b 6b 69 74 7d 2e 2e 2e 22 0a 09 09  n}/${kit}..."...
21d0: 09 65 63 68 6f 20 22 20 2a 2a 2a 20 42 75 69 6c  .echo " *** Buil
21e0: 64 20 73 74 61 72 74 65 64 20 24 28 77 68 6f 61  d started $(whoa
21f0: 6d 69 29 40 24 28 68 6f 73 74 6e 61 6d 65 29 20  mi)@$(hostname) 
2200: 6f 6e 20 24 28 64 61 74 65 29 22 20 3e 20 22 24  on $(date)" > "$
2210: 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 65  {buildlog}"....e
2220: 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75 69  cho '' >> "${bui
2230: 6c 64 6c 6f 67 7d 22 0a 09 09 09 65 63 68 6f 20  ldlog}"....echo 
2240: 22 20 2a 2a 2a 20 42 75 69 6c 64 20 53 63 72 69  " *** Build Scri
2250: 70 74 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c  pt" >> "${buildl
2260: 6f 67 7d 22 0a 0a 09 09 09 69 66 20 5b 20 22 24  og}".....if [ "$
2270: 7b 6e 6f 74 6b 7d 22 20 3d 20 22 31 22 20 5d 3b  {notk}" = "1" ];
2280: 20 74 68 65 6e 0a 09 09 09 09 4b 49 54 43 52 45   then.....KITCRE
2290: 41 54 4f 52 5f 50 4b 47 53 3d 27 69 74 63 6c 20  ATOR_PKGS='itcl 
22a0: 6d 6b 34 74 63 6c 27 0a 09 09 09 66 69 0a 0a 09  mk4tcl'....fi...
22b0: 09 09 69 66 20 5b 20 22 24 7b 6e 6f 6d 6b 34 7d  ..if [ "${nomk4}
22c0: 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a  " = "1" ]; then.
22d0: 09 09 09 09 69 66 20 5b 20 2d 7a 20 22 24 7b 4b  ....if [ -z "${K
22e0: 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d 22  ITCREATOR_PKGS}"
22f0: 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 09 4b 49   ]; then......KI
2300: 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 3d 27 69  TCREATOR_PKGS='i
2310: 74 63 6c 20 74 6b 27 0a 09 09 09 09 65 6c 73 65  tcl tk'.....else
2320: 0a 09 09 09 09 09 4b 49 54 43 52 45 41 54 4f 52  ......KITCREATOR
2330: 5f 50 4b 47 53 3d 22 24 28 65 63 68 6f 20 22 24  _PKGS="$(echo "$
2340: 7b 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53  {KITCREATOR_PKGS
2350: 7d 22 20 7c 20 73 65 64 20 27 73 40 6d 6b 34 74  }" | sed 's@mk4t
2360: 63 6c 40 40 27 29 22 0a 09 09 09 09 66 69 0a 09  cl@@')".....fi..
2370: 09 09 66 69 0a 0a 09 09 09 69 66 20 5b 20 22 24  ..fi.....if [ "$
2380: 7b 6b 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20  {kitdll}" = "1" 
2390: 5d 3b 20 74 68 65 6e 0a 09 09 09 09 69 66 20 5b  ]; then.....if [
23a0: 20 2d 7a 20 22 24 7b 4b 49 54 43 52 45 41 54 4f   -z "${KITCREATO
23b0: 52 5f 50 4b 47 53 7d 22 20 5d 3b 20 74 68 65 6e  R_PKGS}" ]; then
23c0: 0a 09 09 09 09 09 4b 49 54 43 52 45 41 54 4f 52  ......KITCREATOR
23d0: 5f 50 4b 47 53 3d 27 74 6b 20 69 74 63 6c 20 6d  _PKGS='tk itcl m
23e0: 6b 34 74 63 6c 20 6b 69 74 64 6c 6c 27 0a 09 09  k4tcl kitdll'...
23f0: 09 09 65 6c 73 65 0a 09 09 09 09 09 4b 49 54 43  ..else......KITC
2400: 52 45 41 54 4f 52 5f 50 4b 47 53 3d 22 24 7b 4b  REATOR_PKGS="${K
2410: 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d 20  ITCREATOR_PKGS} 
2420: 6b 69 74 64 6c 6c 22 0a 09 09 09 09 66 69 0a 09  kitdll".....fi..
2430: 09 09 66 69 0a 0a 09 09 09 65 78 70 6f 72 74 20  ..fi.....export 
2440: 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 0a  KITCREATOR_PKGS.
2450: 0a 09 09 09 69 66 20 5b 20 2d 6e 20 22 24 7b 4b  ....if [ -n "${K
2460: 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d 22  ITCREATOR_PKGS}"
2470: 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68   ]; then.....ech
2480: 6f 20 22 20 20 4b 49 54 43 52 45 41 54 4f 52 5f  o "  KITCREATOR_
2490: 50 4b 47 53 3d 5c 22 24 7b 4b 49 54 43 52 45 41  PKGS=\"${KITCREA
24a0: 54 4f 52 5f 50 4b 47 53 7d 5c 22 22 20 3e 3e 20  TOR_PKGS}\"" >> 
24b0: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09  "${buildlog}"...
24c0: 09 09 65 63 68 6f 20 22 20 20 65 78 70 6f 72 74  ..echo "  export
24d0: 20 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53   KITCREATOR_PKGS
24e0: 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67  " >> "${buildlog
24f0: 7d 22 0a 09 09 09 66 69 0a 0a 09 09 09 69 66 20  }"....fi.....if 
2500: 5b 20 22 24 7b 73 74 61 74 69 63 74 6b 7d 22 20  [ "${statictk}" 
2510: 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09 09  = "1" ]; then...
2520: 09 09 53 54 41 54 49 43 54 4b 3d 22 31 22 0a 09  ..STATICTK="1"..
2530: 09 09 09 65 78 70 6f 72 74 20 53 54 41 54 49 43  ...export STATIC
2540: 54 4b 0a 0a 09 09 09 09 65 63 68 6f 20 22 20 20  TK......echo "  
2550: 53 54 41 54 49 43 54 4b 3d 5c 22 24 7b 53 54 41  STATICTK=\"${STA
2560: 54 49 43 54 4b 7d 5c 22 22 20 3e 3e 20 22 24 7b  TICTK}\"" >> "${
2570: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 65  buildlog}".....e
2580: 63 68 6f 20 22 20 20 65 78 70 6f 72 74 20 53 54  cho "  export ST
2590: 41 54 49 43 54 4b 22 20 3e 3e 20 22 24 7b 62 75  ATICTK" >> "${bu
25a0: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 66 69 0a 0a  ildlog}"....fi..
25b0: 09 09 09 69 66 20 65 63 68 6f 20 22 24 7b 61 72  ...if echo "${ar
25c0: 67 73 7d 22 20 7c 20 67 72 65 70 20 2d 2d 20 27  gs}" | grep -- '
25d0: 2d 2d 65 6e 61 62 6c 65 2d 73 79 6d 62 6f 6c 73  --enable-symbols
25e0: 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74 68  ' >/dev/null; th
25f0: 65 6e 0a 09 09 09 09 53 54 52 49 50 3d 27 74 72  en.....STRIP='tr
2600: 75 65 27 0a 09 09 09 09 65 78 70 6f 72 74 20 53  ue'.....export S
2610: 54 52 49 50 0a 0a 09 09 09 09 65 63 68 6f 20 22  TRIP......echo "
2620: 20 20 53 54 52 49 50 3d 27 74 72 75 65 27 22 20    STRIP='true'" 
2630: 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22  >> "${buildlog}"
2640: 0a 09 09 09 09 65 63 68 6f 20 22 20 20 65 78 70  .....echo "  exp
2650: 6f 72 74 20 53 54 52 49 50 22 20 3e 3e 20 22 24  ort STRIP" >> "$
2660: 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 66  {buildlog}"....f
2670: 69 0a 0a 09 09 09 69 66 20 5b 20 22 24 7b 6b 69  i.....if [ "${ki
2680: 74 63 72 65 61 74 6f 72 7d 22 20 21 3d 20 22 2e  tcreator}" != ".
2690: 2f 6b 69 74 63 72 65 61 74 6f 72 22 20 5d 3b 20  /kitcreator" ]; 
26a0: 74 68 65 6e 0a 09 09 09 09 65 63 68 6f 20 22 20  then.....echo " 
26b0: 20 6d 6b 64 69 72 20 62 75 69 6c 64 22 20 3e 3e   mkdir build" >>
26c0: 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 0a   "${buildlog}"..
26d0: 09 09 09 09 23 20 53 65 76 65 72 61 6c 20 62 75  ....# Several bu
26e0: 69 6c 64 20 73 63 72 69 70 74 73 20 72 65 6c 79  ild scripts rely
26f0: 20 6f 6e 20 6d 69 6e 6b 69 74 20 74 6f 20 77 6f   on minkit to wo
2700: 72 6b 0a 09 09 09 09 69 66 20 67 72 65 70 20 27  rk.....if grep '
2710: 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69 6e  ./build/make-min
2720: 6b 69 74 27 20 22 24 7b 6b 69 74 63 72 65 61 74  kit' "${kitcreat
2730: 6f 72 7d 22 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20  or}" >/dev/null 
2740: 32 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74 68 65  2>/dev/null; the
2750: 6e 0a 09 09 09 09 09 65 63 68 6f 20 22 20 20 63  n......echo "  c
2760: 61 74 20 3c 3c 20 5c 5f 5f 45 4f 46 5f 5f 20 3e  at << \__EOF__ >
2770: 20 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69   ./build/make-mi
2780: 6e 6b 69 74 22 20 3e 3e 20 22 24 7b 62 75 69 6c  nkit" >> "${buil
2790: 64 6c 6f 67 7d 22 0a 09 09 09 09 09 73 65 64 20  dlog}"......sed 
27a0: 27 73 40 5e 40 20 20 40 27 20 20 27 2e 2f 62 75  's@^@  @'  './bu
27b0: 69 6c 64 2f 6d 61 6b 65 2d 6d 69 6e 6b 69 74 27  ild/make-minkit'
27c0: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
27d0: 22 0a 09 09 09 09 09 65 63 68 6f 20 22 20 20 5f  "......echo "  _
27e0: 5f 45 4f 46 5f 5f 22 20 3e 3e 20 22 24 7b 62 75  _EOF__" >> "${bu
27f0: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09 65 63  ildlog}"......ec
2800: 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c  ho '' >> "${buil
2810: 64 6c 6f 67 7d 22 0a 09 09 09 09 66 69 0a 0a 09  dlog}".....fi...
2820: 09 09 09 23 20 53 65 76 65 72 61 6c 20 62 75 69  ...# Several bui
2830: 6c 64 20 73 63 72 69 70 74 73 20 72 65 6c 79 20  ld scripts rely 
2840: 6f 6e 20 6d 61 6b 65 2d 6b 69 74 2d 63 72 6f 73  on make-kit-cros
2850: 73 63 6f 6d 70 69 6c 65 20 74 6f 20 77 6f 72 6b  scompile to work
2860: 0a 09 09 09 09 69 66 20 67 72 65 70 20 27 2e 2f  .....if grep './
2870: 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 63  build/make-kit-c
2880: 72 6f 73 73 63 6f 6d 70 69 6c 65 27 20 22 24 7b  rosscompile' "${
2890: 6b 69 74 63 72 65 61 74 6f 72 7d 22 20 3e 2f 64  kitcreator}" >/d
28a0: 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e  ev/null 2>/dev/n
28b0: 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 09 09 09 65  ull; then......e
28c0: 63 68 6f 20 22 20 20 63 61 74 20 3c 3c 20 5c 5f  cho "  cat << \_
28d0: 5f 45 4f 46 5f 5f 20 3e 20 2e 2f 62 75 69 6c 64  _EOF__ > ./build
28e0: 2f 6d 61 6b 65 2d 6b 69 74 2d 63 72 6f 73 73 63  /make-kit-crossc
28f0: 6f 6d 70 69 6c 65 22 20 3e 3e 20 22 24 7b 62 75  ompile" >> "${bu
2900: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09 73 65  ildlog}"......se
2910: 64 20 27 73 40 5e 40 20 20 40 27 20 20 27 2e 2f  d 's@^@  @'  './
2920: 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 63  build/make-kit-c
2930: 72 6f 73 73 63 6f 6d 70 69 6c 65 27 20 3e 3e 20  rosscompile' >> 
2940: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09  "${buildlog}"...
2950: 09 09 09 65 63 68 6f 20 22 20 20 5f 5f 45 4f 46  ...echo "  __EOF
2960: 5f 5f 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c  __" >> "${buildl
2970: 6f 67 7d 22 0a 09 09 09 09 09 65 63 68 6f 20 27  og}"......echo '
2980: 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67  ' >> "${buildlog
2990: 7d 22 0a 09 09 09 09 66 69 0a 0a 09 09 09 09 65  }".....fi......e
29a0: 63 68 6f 20 22 20 20 63 61 74 20 3c 3c 20 5c 5f  cho "  cat << \_
29b0: 5f 45 4f 46 5f 5f 20 3e 20 24 7b 6b 69 74 63 72  _EOF__ > ${kitcr
29c0: 65 61 74 6f 72 7d 22 20 3e 3e 20 22 24 7b 62 75  eator}" >> "${bu
29d0: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 73 65 64  ildlog}".....sed
29e0: 20 27 73 40 5e 40 20 20 40 27 20 20 22 24 7b 6b   's@^@  @'  "${k
29f0: 69 74 63 72 65 61 74 6f 72 7d 22 20 3e 3e 20 22  itcreator}" >> "
2a00: 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09  ${buildlog}"....
2a10: 09 65 63 68 6f 20 22 20 20 5f 5f 45 4f 46 5f 5f  .echo "  __EOF__
2a20: 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67  " >> "${buildlog
2a30: 7d 22 0a 09 09 09 09 65 63 68 6f 20 27 27 20 3e  }".....echo '' >
2a40: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
2a50: 09 09 09 66 69 0a 09 09 09 65 63 68 6f 20 22 20  ...fi....echo " 
2a60: 20 5c 22 24 7b 6b 69 74 63 72 65 61 74 6f 72 7d   \"${kitcreator}
2a70: 5c 22 20 5c 22 24 7b 76 65 72 73 69 6f 6e 7d 5c  \" \"${version}\
2a80: 22 20 24 7b 61 72 67 73 7d 22 20 3e 3e 20 22 24  " ${args}" >> "$
2a90: 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 65  {buildlog}"....e
2aa0: 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75 69  cho '' >> "${bui
2ab0: 6c 64 6c 6f 67 7d 22 0a 09 09 09 65 63 68 6f 20  ldlog}"....echo 
2ac0: 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f  '' >> "${buildlo
2ad0: 67 7d 22 0a 09 09 09 65 63 68 6f 20 27 27 20 3e  g}"....echo '' >
2ae0: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
2af0: 09 09 09 65 63 68 6f 20 22 20 2a 2a 2a 20 42 75  ...echo " *** Bu
2b00: 69 6c 64 20 52 65 73 75 6c 74 73 22 20 3e 3e 20  ild Results" >> 
2b10: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09  "${buildlog}"...
2b20: 09 65 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62  .echo '' >> "${b
2b30: 75 69 6c 64 6c 6f 67 7d 22 0a 0a 09 09 09 62 75  uildlog}".....bu
2b40: 69 6c 64 66 61 69 6c 65 64 3d 22 30 22 0a 09 09  ildfailed="0"...
2b50: 09 22 24 7b 6b 69 74 63 72 65 61 74 6f 72 7d 22  ."${kitcreator}"
2b60: 20 22 24 7b 76 65 72 73 69 6f 6e 7d 22 20 24 7b   "${version}" ${
2b70: 61 72 67 73 7d 20 3e 3e 20 22 24 7b 62 75 69 6c  args} >> "${buil
2b80: 64 6c 6f 67 7d 22 20 32 3e 26 31 20 7c 7c 20 62  dlog}" 2>&1 || b
2b90: 75 69 6c 64 66 61 69 6c 65 64 3d 22 31 22 0a 09  uildfailed="1"..
2ba0: 09 09 67 72 65 70 20 2d 6e 20 27 5e 27 20 2a 2f  ..grep -n '^' */
2bb0: 62 75 69 6c 64 2e 6c 6f 67 20 3e 3e 20 22 24 7b  build.log >> "${
2bc0: 62 75 69 6c 64 6c 6f 67 7d 22 20 32 3e 26 31 0a  buildlog}" 2>&1.
2bd0: 0a 09 09 09 69 66 20 5b 20 22 24 7b 6b 69 74 64  ....if [ "${kitd
2be0: 6c 6c 7d 22 20 3d 20 22 31 22 20 5d 3b 20 74 68  ll}" = "1" ]; th
2bf0: 65 6e 0a 09 09 09 09 23 20 43 72 65 61 74 65 20  en.....# Create 
2c00: 74 65 73 74 20 64 72 69 76 65 72 73 20 66 6f 72  test drivers for
2c10: 20 4b 69 74 44 4c 4c 0a 09 09 09 09 28 0a 09 09   KitDLL.....(...
2c20: 09 09 09 65 63 68 6f 20 22 22 0a 09 09 09 09 09  ...echo ""......
2c30: 65 63 68 6f 20 22 22 0a 09 09 09 09 09 65 63 68  echo ""......ech
2c40: 6f 20 22 22 0a 09 09 09 09 09 65 63 68 6f 20 22  o ""......echo "
2c50: 20 2a 2a 2a 20 42 75 69 6c 64 69 6e 67 20 4b 69   *** Building Ki
2c60: 74 44 4c 4c 20 74 65 73 74 20 64 72 69 76 65 72  tDLL test driver
2c70: 20 28 74 63 6c 73 68 29 22 0a 09 09 09 09 09 65   (tclsh)"......e
2c80: 63 68 6f 20 22 22 0a 0a 09 09 09 09 09 63 64 20  cho "".......cd 
2c90: 6b 69 74 73 68 2f 62 75 69 6c 64 2f 6b 69 74 73  kitsh/build/kits
2ca0: 68 2d 2a 2f 20 7c 7c 20 65 78 69 74 20 31 0a 09  h-*/ || exit 1..
2cb0: 09 09 09 09 6d 61 6b 65 20 74 63 6c 73 68 0a 09  ....make tclsh..
2cc0: 09 09 09 09 63 70 20 74 63 6c 73 68 20 2e 2e 2f  ....cp tclsh ../
2cd0: 2e 2e 2f 2e 2e 2f 0a 09 09 09 09 29 20 3e 3e 20  ../../.....) >> 
2ce0: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 20 32 3e  "${buildlog}" 2>
2cf0: 26 31 0a 09 09 09 66 69 0a 0a 09 09 09 23 20 50  &1....fi.....# P
2d00: 65 72 66 6f 72 6d 20 77 69 6c 64 63 61 72 64 20  erform wildcard 
2d10: 65 78 70 61 6e 73 69 6f 6e 0a 09 09 09 63 72 65  expansion....cre
2d20: 61 74 65 64 6b 69 74 3d 22 24 28 6c 73 20 2d 66  atedkit="$(ls -f
2d30: 31 20 24 7b 63 72 65 61 74 65 64 6b 69 74 7d 20  1 ${createdkit} 
2d40: 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 7c 20 67 72  2>/dev/null | gr
2d50: 65 70 20 2d 76 20 27 5c 2e 74 61 72 5c 2e 67 7a  ep -v '\.tar\.gz
2d60: 24 27 20 7c 20 68 65 61 64 20 2d 6e 20 31 29 22  $' | head -n 1)"
2d70: 0a 0a 09 09 09 69 66 20 5b 20 21 20 2d 66 20 22  .....if [ ! -f "
2d80: 24 7b 63 72 65 61 74 65 64 6b 69 74 7d 22 20 5d  ${createdkit}" ]
2d90: 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68 6f 20  ; then.....echo 
2da0: 22 46 61 69 6c 65 64 20 74 6f 20 63 72 65 61 74  "Failed to creat
2db0: 65 20 6b 69 74 20 24 7b 76 65 72 73 69 6f 6e 7d  e kit ${version}
2dc0: 2f 24 7b 6b 69 74 7d 22 20 3e 26 32 0a 0a 09 09  /${kit}" >&2....
2dd0: 09 09 66 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c  ..failed="${fail
2de0: 65 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24  ed} ${version}/$
2df0: 7b 6b 69 74 7d 2d 62 75 69 6c 64 22 0a 0a 09 09  {kit}-build"....
2e00: 09 09 74 6f 75 63 68 20 22 24 7b 66 61 69 6c 6f  ..touch "${failo
2e10: 75 74 70 75 74 6e 61 6d 65 7d 22 0a 09 09 09 09  utputname}".....
2e20: 6d 76 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22  mv "${buildlog}"
2e30: 20 22 24 7b 66 61 69 6c 62 75 69 6c 64 6c 6f 67   "${failbuildlog
2e40: 7d 22 0a 0a 09 09 09 09 72 6d 20 2d 66 20 74 63  }"......rm -f tc
2e50: 6c 73 68 0a 0a 09 09 09 09 63 6f 6e 74 69 6e 75  lsh......continu
2e60: 65 0a 09 09 09 66 69 0a 0a 09 09 09 23 20 56 65  e....fi.....# Ve
2e70: 72 69 66 79 20 73 61 6e 69 74 79 20 6f 66 20 63  rify sanity of c
2e80: 72 65 61 74 65 64 20 6b 69 74 0a 09 09 09 69 73  reated kit....is
2e90: 73 61 6e 65 3d 31 0a 0a 09 09 09 23 23 20 56 65  sane=1.....## Ve
2ea0: 72 69 66 79 20 74 68 61 74 20 57 69 6e 33 32 20  rify that Win32 
2eb0: 62 75 69 6c 64 73 20 61 72 65 20 6f 66 20 63 6f  builds are of co
2ec0: 72 72 65 63 74 20 74 79 70 65 0a 09 09 09 23 23  rrect type....##
2ed0: 20 56 65 72 69 66 79 20 74 68 61 74 20 44 4c 4c   Verify that DLL
2ee0: 20 62 75 69 6c 64 73 20 61 72 65 20 6f 66 20 63   builds are of c
2ef0: 6f 72 72 65 63 74 20 74 79 70 65 0a 09 09 09 63  orrect type....c
2f00: 61 73 65 20 22 2d 24 7b 76 65 72 73 69 6f 6e 7d  ase "-${version}
2f10: 2d 24 7b 6b 69 74 7d 2d 22 20 69 6e 0a 09 09 09  -${kit}-" in....
2f20: 09 2a 2d 77 69 6e 5b 33 36 5d 5b 32 34 5d 2d 6b  .*-win[36][24]-k
2f30: 69 74 64 6c 6c 2d 2a 7c 2a 2d 77 69 6e 5b 33 36  itdll-*|*-win[36
2f40: 5d 5b 32 34 5d 2d 2a 2d 6b 69 74 64 6c 6c 2d 2a  ][24]-*-kitdll-*
2f50: 29 0a 09 09 09 09 09 69 66 20 21 20 66 69 6c 65  )......if ! file
2f60: 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74 7d 22   "${createdkit}"
2f70: 20 7c 20 67 72 65 70 20 27 4d 53 20 57 69 6e 64   | grep 'MS Wind
2f80: 6f 77 73 27 20 7c 20 67 72 65 70 20 27 28 44 4c  ows' | grep '(DL
2f90: 4c 29 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20  L)' >/dev/null; 
2fa0: 74 68 65 6e 0a 09 09 09 09 09 09 69 73 73 61 6e  then.......issan
2fb0: 65 3d 30 0a 09 09 09 09 09 66 69 0a 09 09 09 09  e=0......fi.....
2fc0: 09 3b 3b 0a 09 09 09 09 2a 2d 6b 69 74 64 6c 6c  .;;.....*-kitdll
2fd0: 2d 2a 29 0a 09 09 09 09 09 69 66 20 21 20 66 69  -*)......if ! fi
2fe0: 6c 65 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74  le "${createdkit
2ff0: 7d 22 20 7c 20 67 72 65 70 20 27 73 68 61 72 65  }" | grep 'share
3000: 64 20 6f 62 6a 65 63 74 27 20 3e 2f 64 65 76 2f  d object' >/dev/
3010: 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 09 09 09  null; then......
3020: 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 09 09 66  .issane=0......f
3030: 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09 09 2a 2d  i......;;.....*-
3040: 77 69 6e 5b 33 36 5d 5b 32 34 5d 2d 6e 6f 74 6b  win[36][24]-notk
3050: 2d 2a 7c 2a 2d 77 69 6e 5b 33 36 5d 5b 32 34 5d  -*|*-win[36][24]
3060: 2d 2a 2d 6e 6f 74 6b 2d 2a 29 0a 09 09 09 09 09  -*-notk-*)......
3070: 69 66 20 21 20 66 69 6c 65 20 22 24 7b 63 72 65  if ! file "${cre
3080: 61 74 65 64 6b 69 74 7d 22 20 7c 20 67 72 65 70  atedkit}" | grep
3090: 20 27 4d 53 20 57 69 6e 64 6f 77 73 27 20 7c 20   'MS Windows' | 
30a0: 67 72 65 70 20 27 28 63 6f 6e 73 6f 6c 65 29 27  grep '(console)'
30b0: 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74 68 65   >/dev/null; the
30c0: 6e 0a 09 09 09 09 09 09 65 63 68 6f 20 22 4b 69  n.......echo "Ki
30d0: 74 20 66 61 69 6c 65 64 20 73 61 6e 69 74 79 20  t failed sanity 
30e0: 63 68 65 63 6b 20 66 6f 72 20 62 65 69 6e 67 20  check for being 
30f0: 61 20 63 6f 6e 73 6f 6c 65 20 61 70 70 6c 69 63  a console applic
3100: 61 74 69 6f 6e 22 20 3e 26 32 0a 09 09 09 09 09  ation" >&2......
3110: 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 09 09 66  .issane=0......f
3120: 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09 09 2a 2d  i......;;.....*-
3130: 77 69 6e 5b 33 36 5d 5b 32 34 5d 2d 2a 29 0a 09  win[36][24]-*)..
3140: 09 09 09 09 69 66 20 21 20 66 69 6c 65 20 22 24  ....if ! file "$
3150: 7b 63 72 65 61 74 65 64 6b 69 74 7d 22 20 7c 20  {createdkit}" | 
3160: 67 72 65 70 20 27 4d 53 20 57 69 6e 64 6f 77 73  grep 'MS Windows
3170: 27 20 7c 20 67 72 65 70 20 27 28 47 55 49 29 27  ' | grep '(GUI)'
3180: 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74 68 65   >/dev/null; the
3190: 6e 0a 09 09 09 09 09 09 65 63 68 6f 20 22 4b 69  n.......echo "Ki
31a0: 74 20 66 61 69 6c 65 64 20 73 61 6e 69 74 79 20  t failed sanity 
31b0: 63 68 65 63 6b 20 66 6f 72 20 62 65 69 6e 67 20  check for being 
31c0: 61 20 47 55 49 20 61 70 70 6c 69 63 61 74 69 6f  a GUI applicatio
31d0: 6e 22 20 3e 26 32 0a 09 09 09 09 09 09 69 73 73  n" >&2.......iss
31e0: 61 6e 65 3d 30 0a 09 09 09 09 09 66 69 0a 09 09  ane=0......fi...
31f0: 09 09 09 3b 3b 0a 09 09 09 65 73 61 63 0a 0a 09  ...;;....esac...
3200: 09 09 23 23 20 56 65 72 69 66 79 20 74 68 65 20  ..## Verify the 
3210: 62 75 69 6c 64 20 63 6f 6d 70 6c 65 74 65 64 20  build completed 
3220: 77 69 74 68 6f 75 74 20 77 61 72 6e 69 6e 67 73  without warnings
3230: 0a 09 09 09 69 66 20 5b 20 22 24 7b 62 75 69 6c  ....if [ "${buil
3240: 64 66 61 69 6c 65 64 7d 22 20 3d 20 22 31 22 20  dfailed}" = "1" 
3250: 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68 6f  ]; then.....echo
3260: 20 22 4b 69 74 20 66 61 69 6c 65 64 20 73 61 6e   "Kit failed san
3270: 69 74 79 20 63 68 65 63 6b 20 66 6f 72 20 42 75  ity check for Bu
3280: 69 6c 64 69 6e 67 22 20 3e 26 32 0a 0a 09 09 09  ilding" >&2.....
3290: 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 66 69 0a  .issane=0....fi.
32a0: 0a 09 09 09 23 20 4d 61 6b 65 20 6e 6f 74 65 20  ....# Make note 
32b0: 6f 66 20 73 61 6e 69 74 79 20 66 61 69 6c 75 72  of sanity failur
32c0: 65 0a 09 09 09 69 66 20 5b 20 22 24 7b 69 73 73  e....if [ "${iss
32d0: 61 6e 65 7d 22 20 21 3d 20 22 31 22 20 5d 3b 20  ane}" != "1" ]; 
32e0: 74 68 65 6e 0a 09 09 09 09 65 63 68 6f 20 22 4b  then.....echo "K
32f0: 69 74 20 66 61 69 6c 65 64 20 73 61 6e 69 74 79  it failed sanity
3300: 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69   ${version}/${ki
3310: 74 7d 22 20 3e 26 32 0a 0a 09 09 09 09 66 61 69  t}" >&2......fai
3320: 6c 65 64 3d 22 24 7b 66 61 69 6c 65 64 7d 20 24  led="${failed} $
3330: 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69 74 7d  {version}/${kit}
3340: 2d 73 61 6e 69 74 79 22 0a 0a 09 09 09 09 6d 76  -sanity"......mv
3350: 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74 7d 22   "${createdkit}"
3360: 20 22 24 7b 66 61 69 6c 6f 75 74 70 75 74 6e 61   "${failoutputna
3370: 6d 65 7d 22 0a 09 09 09 09 6d 76 20 22 24 7b 62  me}".....mv "${b
3380: 75 69 6c 64 6c 6f 67 7d 22 20 22 24 7b 66 61 69  uildlog}" "${fai
3390: 6c 62 75 69 6c 64 6c 6f 67 7d 22 0a 0a 09 09 09  lbuildlog}".....
33a0: 09 72 6d 20 2d 66 20 74 63 6c 73 68 0a 0a 09 09  .rm -f tclsh....
33b0: 09 09 63 6f 6e 74 69 6e 75 65 0a 09 09 09 66 69  ..continue....fi
33c0: 0a 0a 09 09 09 23 20 52 65 6e 61 6d 65 20 63 72  .....# Rename cr
33d0: 65 61 74 65 64 20 6b 69 74 20 74 6f 20 66 69 6e  eated kit to fin
33e0: 61 6c 20 64 65 73 74 69 6e 61 74 69 6f 6e 0a 09  al destination..
33f0: 09 09 6d 76 20 22 24 7b 63 72 65 61 74 65 64 6b  ..mv "${createdk
3400: 69 74 7d 22 20 22 24 7b 6f 75 74 70 75 74 6e 61  it}" "${outputna
3410: 6d 65 7d 22 0a 09 09 09 69 66 20 5b 20 2d 66 20  me}"....if [ -f 
3420: 22 74 63 6c 73 68 22 20 5d 3b 20 74 68 65 6e 0a  "tclsh" ]; then.
3430: 09 09 09 09 6d 76 20 22 74 63 6c 73 68 22 20 22  ....mv "tclsh" "
3440: 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 74 63  ${outputname}-tc
3450: 6c 73 68 22 0a 09 09 09 66 69 0a 0a 09 09 09 23  lsh"....fi.....#
3460: 20 46 6f 72 20 4b 69 74 44 4c 4c 2c 20 6d 61 6b   For KitDLL, mak
3470: 65 20 61 20 6e 6f 74 65 20 6f 66 20 74 68 65 20  e a note of the 
3480: 6f 72 69 67 69 6e 61 6c 20 6e 61 6d 65 0a 09 09  original name...
3490: 09 69 66 20 5b 20 22 24 7b 6b 69 74 64 6c 6c 7d  .if [ "${kitdll}
34a0: 22 20 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a  " = "1" ]; then.
34b0: 09 09 09 09 65 63 68 6f 20 22 24 7b 63 72 65 61  ....echo "${crea
34c0: 74 65 64 6b 69 74 7d 22 20 3e 20 22 24 7b 6f 75  tedkit}" > "${ou
34d0: 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69 67 6e 61  tputname}-origna
34e0: 6d 65 22 0a 0a 09 09 09 09 69 66 20 5b 20 2d 66  me"......if [ -f
34f0: 20 22 24 7b 73 64 6b 7d 22 20 5d 3b 20 74 68 65   "${sdk}" ]; the
3500: 6e 0a 09 09 09 09 09 6d 76 20 22 24 7b 73 64 6b  n......mv "${sdk
3510: 7d 22 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65  }" "${outputname
3520: 7d 2d 73 64 6b 2e 74 61 72 2e 67 7a 22 0a 09 09  }-sdk.tar.gz"...
3530: 09 09 66 69 0a 09 09 09 66 69 0a 09 09 66 69 0a  ..fi....fi...fi.
3540: 0a 09 09 23 20 54 65 73 74 20 7a 69 70 20 73 74  ...# Test zip st
3550: 61 74 75 73 0a 09 09 69 66 20 75 6e 7a 69 70 20  atus...if unzip 
3560: 2d 6c 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65  -l "${outputname
3570: 7d 22 20 32 3e 26 31 20 7c 20 67 72 65 70 20 27  }" 2>&1 | grep '
3580: 62 6f 6f 74 5c 2e 74 63 6c 27 20 3e 2f 64 65 76  boot\.tcl' >/dev
3590: 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 09 63  /null; then....c
35a0: 61 6e 75 6e 7a 69 70 3d 22 31 22 0a 09 09 65 6c  anunzip="1"...el
35b0: 73 65 0a 09 09 09 63 61 6e 75 6e 7a 69 70 3d 22  se....canunzip="
35c0: 30 22 0a 09 09 66 69 0a 0a 09 09 69 66 20 5b 20  0"...fi....if [ 
35d0: 22 24 7b 69 73 7a 69 70 7d 22 20 21 3d 20 22 24  "${iszip}" != "$
35e0: 7b 63 61 6e 75 6e 7a 69 70 7d 22 20 5d 3b 20 74  {canunzip}" ]; t
35f0: 68 65 6e 0a 09 09 09 65 63 68 6f 20 22 46 61 69  hen....echo "Fai
3600: 6c 65 64 20 74 6f 20 75 6e 7a 69 70 20 7a 69 70  led to unzip zip
3610: 6b 69 74 20 6f 72 20 77 61 73 20 61 62 6c 65 20  kit or was able 
3620: 74 6f 20 75 6e 7a 69 70 20 6e 6f 6e 2d 7a 69 70  to unzip non-zip
3630: 6b 69 74 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24  kit ${version}/$
3640: 7b 6b 69 74 7d 22 20 3e 26 32 0a 0a 09 09 09 66  {kit}" >&2.....f
3650: 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c 65 64 7d  ailed="${failed}
3660: 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69   ${version}/${ki
3670: 74 7d 2d 7a 69 70 22 0a 0a 09 09 09 63 6f 6e 74  t}-zip".....cont
3680: 69 6e 75 65 0a 09 09 66 69 0a 0a 09 09 23 20 44  inue...fi....# D
3690: 6f 20 6e 6f 74 20 63 6f 6e 74 69 6e 75 65 20 70  o not continue p
36a0: 61 73 74 20 68 65 72 65 20 66 6f 72 20 75 6e 2d  ast here for un-
36b0: 72 75 6e 6e 61 62 6c 65 20 6b 69 74 73 0a 09 09  runnable kits...
36c0: 69 66 20 5b 20 22 24 7b 72 75 6e 6e 61 62 6c 65  if [ "${runnable
36d0: 7d 22 20 21 3d 20 22 31 22 20 5d 3b 20 74 68 65  }" != "1" ]; the
36e0: 6e 0a 09 09 09 63 6f 6e 74 69 6e 75 65 0a 09 09  n....continue...
36f0: 66 69 0a 0a 09 09 23 20 49 66 20 74 68 65 20 6e  fi....# If the n
3700: 61 6d 65 20 6f 66 20 74 68 65 20 6f 72 69 67 69  ame of the origi
3710: 6e 61 6c 20 62 75 69 6c 64 20 6d 61 74 74 65 72  nal build matter
3720: 73 2c 20 73 79 6d 6c 69 6e 6b 20 69 74 20 75 70  s, symlink it up
3730: 0a 09 09 69 66 20 5b 20 2d 66 20 22 24 7b 6f 75  ...if [ -f "${ou
3740: 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69 67 6e 61  tputname}-origna
3750: 6d 65 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 63  me" ]; then....c
3760: 72 65 61 74 65 64 6b 69 74 3d 22 24 28 63 61 74  reatedkit="$(cat
3770: 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d   "${outputname}-
3780: 6f 72 69 67 6e 61 6d 65 22 29 22 0a 0a 09 09 09  origname")".....
3790: 6c 6e 20 2d 73 20 22 24 7b 6f 75 74 70 75 74 6e  ln -s "${outputn
37a0: 61 6d 65 7d 22 20 22 24 7b 63 72 65 61 74 65 64  ame}" "${created
37b0: 6b 69 74 7d 22 0a 09 09 66 69 0a 0a 09 09 23 20  kit}"...fi....# 
37c0: 50 65 72 66 6f 72 6d 20 62 61 74 74 65 72 79 20  Perform battery 
37d0: 6f 66 20 74 65 73 74 73 0a 09 09 23 23 20 43 6c  of tests...## Cl
37e0: 65 61 6e 20 74 65 73 74 73 20 6c 6f 67 0a 09 09  ean tests log...
37f0: 72 6d 20 2d 66 20 22 24 7b 74 65 73 74 72 65 73  rm -f "${testres
3800: 75 6c 74 73 6c 6f 67 7d 22 0a 09 09 66 6f 72 20  ultslog}"...for 
3810: 74 65 73 74 73 63 70 20 69 6e 20 22 24 7b 54 45  testscp in "${TE
3820: 53 54 44 49 52 7d 22 2f 74 65 73 74 73 2f 2a 2e  STDIR}"/tests/*.
3830: 74 63 6c 3b 20 64 6f 0a 09 09 09 74 65 73 74 73  tcl; do....tests
3840: 63 70 5f 74 61 67 3d 22 24 28 62 61 73 65 6e 61  cp_tag="$(basena
3850: 6d 65 20 22 24 7b 74 65 73 74 73 63 70 7d 22 20  me "${testscp}" 
3860: 2e 74 63 6c 29 22 0a 09 09 09 74 65 73 74 73 63  .tcl)"....testsc
3870: 70 70 72 65 3d 22 24 28 64 69 72 6e 61 6d 65 20  ppre="$(dirname 
3880: 22 24 7b 74 65 73 74 73 63 70 7d 22 29 2f 24 7b  "${testscp}")/${
3890: 74 65 73 74 73 63 70 5f 74 61 67 7d 2e 73 68 22  testscp_tag}.sh"
38a0: 0a 09 09 09 73 63 70 6c 6f 67 66 69 6c 65 3d 22  ....scplogfile="
38b0: 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 24 7b  ${outputname}-${
38c0: 74 65 73 74 73 63 70 5f 74 61 67 7d 2e 6c 6f 67  testscp_tag}.log
38d0: 22 0a 0a 09 09 09 23 20 49 66 20 61 20 63 6f 6d  ".....# If a com
38e0: 6d 61 6e 64 20 69 73 20 72 65 71 75 69 72 65 64  mand is required
38f0: 20 74 6f 20 73 74 61 72 74 20 74 68 65 20 6b 69   to start the ki
3900: 74 2c 20 70 72 65 70 61 72 65 20 74 6f 20 6b 69  t, prepare to ki
3910: 6c 6c 20 69 74 0a 09 09 09 23 20 69 6e 20 63 61  ll it....# in ca
3920: 73 65 20 6f 66 20 74 69 6d 65 6f 75 74 2e 0a 09  se of timeout...
3930: 09 09 23 23 20 54 65 6d 70 6f 72 61 72 69 6c 79  ..## Temporarily
3940: 20 64 69 73 61 62 6c 65 64 20 73 69 6e 63 65 20   disabled since 
3950: 63 75 72 72 65 6e 74 6c 79 20 69 74 20 69 73 20  currently it is 
3960: 63 61 75 73 69 6e 67 0a 09 09 09 23 23 20 6d 6f  causing....## mo
3970: 72 65 20 70 72 6f 62 6c 65 6d 73 20 69 6e 20 74  re problems in t
3980: 68 65 20 66 6f 72 6d 20 6f 66 20 74 65 73 74 73  he form of tests
3990: 20 62 65 69 6e 67 20 6b 69 6c 6c 65 64 0a 09 09   being killed...
39a0: 09 23 23 20 70 72 65 6d 61 74 75 72 65 6c 79 20  .## prematurely 
39b0: 74 68 61 6e 20 77 65 20 61 72 65 20 68 61 76 69  than we are havi
39c0: 6e 67 20 69 73 73 75 65 73 20 77 69 74 68 20 74  ng issues with t
39d0: 65 73 74 73 0a 09 09 09 23 23 20 68 61 6e 67 69  ests....## hangi
39e0: 6e 67 0a 09 09 09 6b 69 74 72 75 6e 6b 69 6c 6c  ng....kitrunkill
39f0: 70 69 64 3d 22 22 0a 09 09 09 69 66 20 5b 20 22  pid=""....if [ "
3a00: 31 22 20 3d 20 22 30 22 20 2d 61 20 2d 6e 20 22  1" = "0" -a -n "
3a10: 24 7b 6b 69 74 72 75 6e 63 6d 64 7d 22 20 5d 3b  ${kitruncmd}" ];
3a20: 20 74 68 65 6e 0a 09 09 09 09 28 0a 09 09 09 09   then.....(.....
3a30: 09 73 6c 65 65 70 20 31 32 30 0a 09 09 09 09 09  .sleep 120......
3a40: 6b 69 6c 6c 61 6c 6c 20 22 24 28 62 61 73 65 6e  killall "$(basen
3a50: 61 6d 65 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d  ame "${outputnam
3a60: 65 7d 22 29 22 20 3e 2f 64 65 76 2f 6e 75 6c 6c  e}")" >/dev/null
3a70: 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a 09 09 09   2>/dev/null....
3a80: 09 29 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e  .) >/dev/null 2>
3a90: 2f 64 65 76 2f 6e 75 6c 6c 20 26 0a 09 09 09 09  /dev/null &.....
3aa0: 6b 69 74 72 75 6e 6b 69 6c 6c 70 69 64 3d 22 24  kitrunkillpid="$
3ab0: 21 22 0a 09 09 09 66 69 0a 0a 09 09 09 28 0a 09  !"....fi.....(..
3ac0: 09 09 09 69 66 20 5b 20 2d 66 20 22 24 7b 74 65  ...if [ -f "${te
3ad0: 73 74 73 63 70 70 72 65 7d 22 20 5d 3b 20 74 68  stscppre}" ]; th
3ae0: 65 6e 0a 09 09 09 09 09 2e 20 22 24 7b 74 65 73  en....... "${tes
3af0: 74 73 63 70 70 72 65 7d 22 0a 09 09 09 09 66 69  tscppre}".....fi
3b00: 0a 0a 09 09 09 09 69 66 20 5b 20 22 24 7b 6b 69  ......if [ "${ki
3b10: 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d 3b 20  tdll}" = "1" ]; 
3b20: 74 68 65 6e 0a 09 09 09 09 09 24 7b 6b 69 74 72  then......${kitr
3b30: 75 6e 63 6d 64 7d 20 22 24 7b 6f 75 74 70 75 74  uncmd} "${output
3b40: 6e 61 6d 65 7d 2d 74 63 6c 73 68 22 20 22 24 7b  name}-tclsh" "${
3b50: 74 65 73 74 73 63 70 7d 22 20 22 24 7b 6f 75 74  testscp}" "${out
3b60: 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b 6b 69 74  putname}" "${kit
3b70: 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e 7d 22 0a  }" "${version}".
3b80: 09 09 09 09 65 6c 73 65 0a 09 09 09 09 09 24 7b  ....else......${
3b90: 6b 69 74 72 75 6e 63 6d 64 7d 20 22 24 7b 6f 75  kitruncmd} "${ou
3ba0: 74 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b 74 65  tputname}" "${te
3bb0: 73 74 73 63 70 7d 22 20 22 24 7b 6f 75 74 70 75  stscp}" "${outpu
3bc0: 74 6e 61 6d 65 7d 22 20 22 24 7b 6b 69 74 7d 22  tname}" "${kit}"
3bd0: 20 22 24 7b 76 65 72 73 69 6f 6e 7d 22 0a 09 09   "${version}"...
3be0: 09 09 66 69 0a 09 09 09 29 20 3e 20 22 24 7b 73  ..fi....) > "${s
3bf0: 63 70 6c 6f 67 66 69 6c 65 7d 22 20 32 3e 26 31  cplogfile}" 2>&1
3c00: 0a 0a 09 09 09 69 66 20 5b 20 22 24 3f 22 20 21  .....if [ "$?" !
3c10: 3d 20 22 30 22 20 5d 3b 20 74 68 65 6e 0a 09 09  = "0" ]; then...
3c20: 09 09 65 63 68 6f 20 22 53 63 72 69 70 74 20 66  ..echo "Script f
3c30: 61 69 6c 65 64 3a 20 24 7b 74 65 73 74 73 63 70  ailed: ${testscp
3c40: 5f 74 61 67 7d 20 6f 6e 20 24 7b 76 65 72 73 69  _tag} on ${versi
3c50: 6f 6e 7d 2f 24 7b 6b 69 74 7d 22 20 3e 26 32 0a  on}/${kit}" >&2.
3c60: 0a 09 09 09 09 66 61 69 6c 65 64 3d 22 24 7b 66  .....failed="${f
3c70: 61 69 6c 65 64 7d 20 24 7b 76 65 72 73 69 6f 6e  ailed} ${version
3c80: 7d 2f 24 7b 6b 69 74 7d 2d 74 65 73 74 2d 24 7b  }/${kit}-test-${
3c90: 74 65 73 74 73 63 70 5f 74 61 67 7d 22 0a 0a 09  testscp_tag}"...
3ca0: 09 09 09 65 63 68 6f 20 22 24 7b 74 65 73 74 73  ...echo "${tests
3cb0: 63 70 5f 74 61 67 7d 3a 20 46 41 49 4c 22 20 3e  cp_tag}: FAIL" >
3cc0: 3e 20 20 22 24 7b 74 65 73 74 72 65 73 75 6c 74  >  "${testresult
3cd0: 73 6c 6f 67 7d 22 0a 0a 09 09 09 09 63 6f 6e 74  slog}"......cont
3ce0: 69 6e 75 65 0a 09 09 09 66 69 0a 0a 09 09 09 23  inue....fi.....#
3cf0: 20 4b 69 6c 6c 20 74 68 65 20 77 61 74 63 68 64   Kill the watchd
3d00: 6f 67 20 66 6f 72 20 74 68 69 73 20 69 74 65 72  og for this iter
3d10: 61 74 69 6f 6e 0a 09 09 09 69 66 20 5b 20 2d 6e  ation....if [ -n
3d20: 20 22 24 7b 6b 69 74 72 75 6e 6b 69 6c 6c 70 69   "${kitrunkillpi
3d30: 64 7d 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09  d}" ]; then.....
3d40: 6b 69 6c 6c 20 2d 39 20 22 24 7b 6b 69 74 72 75  kill -9 "${kitru
3d50: 6e 6b 69 6c 6c 70 69 64 7d 22 20 3e 2f 64 65 76  nkillpid}" >/dev
3d60: 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c  /null 2>/dev/nul
3d70: 6c 0a 09 09 09 66 69 0a 0a 09 09 09 65 63 68 6f  l....fi.....echo
3d80: 20 22 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d   "${testscp_tag}
3d90: 3a 20 50 41 53 53 22 20 3e 3e 20 20 22 24 7b 74  : PASS" >>  "${t
3da0: 65 73 74 72 65 73 75 6c 74 73 6c 6f 67 7d 22 0a  estresultslog}".
3db0: 0a 09 09 09 72 6d 20 2d 66 20 22 24 7b 73 63 70  ....rm -f "${scp
3dc0: 6c 6f 67 66 69 6c 65 7d 22 0a 09 09 64 6f 6e 65  logfile}"...done
3dd0: 0a 0a 09 09 69 66 20 5b 20 2d 66 20 22 24 7b 6f  ....if [ -f "${o
3de0: 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69 67 6e  utputname}-orign
3df0: 61 6d 65 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09  ame" ]; then....
3e00: 72 6d 20 2d 66 20 22 24 7b 63 72 65 61 74 65 64  rm -f "${created
3e10: 6b 69 74 7d 22 0a 09 09 66 69 0a 09 64 6f 6e 65  kit}"...fi..done
3e20: 0a 64 6f 6e 65 0a 0a 69 66 20 5b 20 2d 6e 20 22  .done..if [ -n "
3e30: 24 7b 66 61 69 6c 65 64 7d 22 20 5d 3b 20 74 68  ${failed}" ]; th
3e40: 65 6e 0a 09 65 63 68 6f 20 22 46 61 69 6c 65 64  en..echo "Failed
3e50: 3a 20 24 7b 66 61 69 6c 65 64 7d 22 0a 66 69 0a  : ${failed}".fi.
3e60: 0a 23 20 43 6c 65 61 6e 75 70 0a 23 23 20 54 65  .# Cleanup.## Te
3e70: 72 6d 69 6e 61 74 65 20 58 76 66 62 0a 6b 69 6c  rminate Xvfb.kil
3e80: 6c 20 2d 39 20 22 24 7b 58 56 46 42 5f 50 49 44  l -9 "${XVFB_PID
3e90: 7d 22 0a 0a 23 23 20 52 65 6d 6f 76 65 20 77 69  }"..## Remove wi
3ea0: 6e 65 0a 72 6d 20 2d 72 66 20 22 24 7b 57 49 4e  ne.rm -rf "${WIN
3eb0: 45 50 52 45 46 49 58 33 32 7d 22 20 22 24 7b 57  EPREFIX32}" "${W
3ec0: 49 4e 45 50 52 45 46 49 58 36 34 7d 22 0a 0a 2e  INEPREFIX64}"...
3ed0: 2f 6b 69 74 63 72 65 61 74 6f 72 20 63 6c 65 61  /kitcreator clea
3ee0: 6e 0a 72 6d 20 2d 66 20 74 63 6c 73 68 0a        n.rm -f tclsh.