Hex Artifact Content

Artifact 3f337bf8a02aca037087f65518c0a6c9dbf6108d:


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 34 2e 31 39 20 38  RSIONS="8.4.19 8
0020: 2e 35 2e 31 30 20 63 76 73 5f 48 45 41 44 22 0a  .5.10 cvs_HEAD".
0030: 0a 23 20 46 69 6e 64 20 74 68 65 20 62 61 73 65  .# Find the base
0040: 20 64 69 72 65 63 74 6f 72 79 0a 66 6f 72 20 78   directory.for x
0050: 20 69 6e 20 31 20 32 20 33 20 5f 5f 66 61 69 6c   in 1 2 3 __fail
0060: 5f 5f 3b 20 64 6f 0a 09 69 66 20 5b 20 22 24 7b  __; do..if [ "${
0070: 78 7d 22 20 3d 20 22 24 7b 66 61 69 6c 7d 22 20  x}" = "${fail}" 
0080: 5d 3b 20 74 68 65 6e 0a 09 09 65 63 68 6f 20 27  ]; then...echo '
0090: 55 6e 61 62 6c 65 20 74 6f 20 66 69 6e 64 20 4b  Unable to find K
00a0: 69 74 43 72 65 61 74 6f 72 2c 20 61 62 6f 72 74  itCreator, abort
00b0: 69 6e 67 2e 27 20 3e 26 32 0a 0a 09 09 65 78 69  ing.' >&2....exi
00c0: 74 20 31 0a 09 66 69 0a 0a 09 69 66 20 5b 20 2d  t 1..fi...if [ -
00d0: 78 20 6b 69 74 63 72 65 61 74 6f 72 20 5d 3b 20  x kitcreator ]; 
00e0: 74 68 65 6e 0a 09 09 62 72 65 61 6b 0a 09 66 69  then...break..fi
00f0: 0a 0a 09 63 64 20 2e 2e 0a 64 6f 6e 65 0a 0a 52  ...cd ...done..R
0100: 4f 4f 54 44 49 52 3d 22 24 28 70 77 64 29 22 0a  OOTDIR="$(pwd)".
0110: 54 45 53 54 44 49 52 3d 22 24 7b 52 4f 4f 54 44  TESTDIR="${ROOTD
0120: 49 52 7d 2f 62 75 69 6c 64 2f 74 65 73 74 22 0a  IR}/build/test".
0130: 65 78 70 6f 72 74 20 52 4f 4f 54 44 49 52 20 54  export ROOTDIR T
0140: 45 53 54 44 49 52 0a 0a 23 20 48 61 6e 64 6c 65  ESTDIR..# Handle
0150: 20 63 6f 6d 6d 61 6e 64 2d 6c 69 6e 65 20 61 72   command-line ar
0160: 67 75 6d 65 6e 74 73 0a 69 66 20 5b 20 22 24 31  guments.if [ "$1
0170: 22 20 3d 20 22 63 6c 65 61 6e 22 20 5d 3b 20 74  " = "clean" ]; t
0180: 68 65 6e 0a 09 72 6d 20 2d 72 66 20 22 24 7b 54  hen..rm -rf "${T
0190: 45 53 54 44 49 52 7d 2f 6b 69 74 73 22 0a 66 69  ESTDIR}/kits".fi
01a0: 0a 0a 23 20 43 72 65 61 74 65 20 70 6c 61 63 65  ..# Create place
01b0: 20 74 6f 20 70 75 74 20 6b 69 74 73 0a 6d 6b 64   to put kits.mkd
01c0: 69 72 20 22 24 7b 54 45 53 54 44 49 52 7d 2f 6b  ir "${TESTDIR}/k
01d0: 69 74 73 22 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20  its" >/dev/null 
01e0: 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a 6d 6b 64 69  2>/dev/null.mkdi
01f0: 72 20 22 24 7b 54 45 53 54 44 49 52 7d 2f 6b 69  r "${TESTDIR}/ki
0200: 74 73 2f 66 61 69 6c 65 64 22 20 3e 2f 64 65 76  ts/failed" >/dev
0210: 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c  /null 2>/dev/nul
0220: 6c 0a 69 66 20 5b 20 21 20 2d 64 20 22 24 7b 54  l.if [ ! -d "${T
0230: 45 53 54 44 49 52 7d 2f 6b 69 74 73 22 20 5d 3b  ESTDIR}/kits" ];
0240: 20 74 68 65 6e 0a 09 65 63 68 6f 20 27 55 6e 61   then..echo 'Una
0250: 62 6c 65 20 74 6f 20 63 72 65 61 74 65 20 6b 69  ble to create ki
0260: 74 73 2f 20 64 69 72 65 63 74 6f 72 79 2c 20 61  ts/ directory, a
0270: 62 6f 72 74 69 6e 67 2e 27 20 3e 26 32 0a 0a 09  borting.' >&2...
0280: 65 78 69 74 20 31 0a 66 69 0a 0a 23 20 43 6c 65  exit 1.fi..# Cle
0290: 61 6e 75 70 0a 66 6f 72 20 66 69 6c 65 20 69 6e  anup.for file in
02a0: 20 22 24 7b 54 45 53 54 44 49 52 7d 22 2f 6b 69   "${TESTDIR}"/ki
02b0: 74 73 2f 2a 2e 6c 6f 67 3b 20 64 6f 0a 09 69 66  ts/*.log; do..if
02c0: 20 65 63 68 6f 20 22 24 7b 66 69 6c 65 7d 22 20   echo "${file}" 
02d0: 7c 20 67 72 65 70 20 2d 2d 20 27 2d 62 75 69 6c  | grep -- '-buil
02e0: 64 2e 6c 6f 67 24 27 20 3e 2f 64 65 76 2f 6e 75  d.log$' >/dev/nu
02f0: 6c 6c 3b 20 74 68 65 6e 0a 09 09 63 6f 6e 74 69  ll; then...conti
0300: 6e 75 65 0a 09 66 69 0a 0a 09 72 6d 20 2d 66 20  nue..fi...rm -f 
0310: 22 24 7b 66 69 6c 65 7d 22 0a 64 6f 6e 65 0a 0a  "${file}".done..
0320: 23 20 44 69 73 61 62 6c 65 20 57 49 4e 45 20 64  # Disable WINE d
0330: 65 62 75 67 67 69 6e 67 0a 57 49 4e 45 50 52 45  ebugging.WINEPRE
0340: 46 49 58 3d 22 24 7b 54 45 53 54 44 49 52 7d 2f  FIX="${TESTDIR}/
0350: 2e 77 69 6e 65 22 0a 65 78 70 6f 72 74 20 57 49  .wine".export WI
0360: 4e 45 50 52 45 46 49 58 0a 72 6d 20 2d 72 66 20  NEPREFIX.rm -rf 
0370: 22 24 7b 57 49 4e 45 50 52 45 46 49 58 7d 22 0a  "${WINEPREFIX}".
0380: 6d 6b 64 69 72 20 22 24 7b 57 49 4e 45 50 52 45  mkdir "${WINEPRE
0390: 46 49 58 7d 22 0a 0a 63 61 74 20 3c 3c 20 5c 5f  FIX}"..cat << \_
03a0: 45 4f 46 5f 20 3e 20 22 24 7b 57 49 4e 45 50 52  EOF_ > "${WINEPR
03b0: 45 46 49 58 7d 2f 75 70 64 61 74 65 2d 72 65 67  EFIX}/update-reg
03c0: 22 0a 5b 48 4b 45 59 5f 4c 4f 43 41 4c 5f 4d 41  ".[HKEY_LOCAL_MA
03d0: 43 48 49 4e 45 5c 53 6f 66 74 77 61 72 65 5c 4d  CHINE\Software\M
03e0: 69 63 72 6f 73 6f 66 74 5c 57 69 6e 64 6f 77 73  icrosoft\Windows
03f0: 20 4e 54 5c 43 75 72 72 65 6e 74 56 65 72 73 69   NT\CurrentVersi
0400: 6f 6e 5c 41 65 44 65 62 75 67 5d 0a 22 41 75 74  on\AeDebug]."Aut
0410: 6f 22 3d 64 77 6f 72 64 3a 30 30 30 30 30 30 30  o"=dword:0000000
0420: 31 0a 22 44 65 62 75 67 67 65 72 22 3d 22 66 61  1."Debugger"="fa
0430: 6c 73 65 22 0a 5f 45 4f 46 5f 0a 0a 72 65 67 65  lse"._EOF_..rege
0440: 64 69 74 20 22 24 7b 57 49 4e 45 50 52 45 46 49  dit "${WINEPREFI
0450: 58 7d 2f 75 70 64 61 74 65 2d 72 65 67 22 20 3e  X}/update-reg" >
0460: 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76  /dev/null 2>/dev
0470: 2f 6e 75 6c 6c 0a 0a 23 20 53 74 61 72 74 20 58  /null..# Start X
0480: 76 66 62 20 66 6f 72 20 58 31 31 2d 62 61 73 65  vfb for X11-base
0490: 64 20 74 65 73 74 73 0a 58 56 46 42 5f 50 49 44  d tests.XVFB_PID
04a0: 3d 22 24 28 0a 09 58 76 66 62 20 3a 33 31 20 2d  ="$(..Xvfb :31 -
04b0: 73 63 72 65 65 6e 20 30 20 38 30 30 78 36 30 30  screen 0 800x600
04c0: 78 32 34 20 2d 6e 6f 6c 69 73 74 65 6e 20 74 63  x24 -nolisten tc
04d0: 70 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f  p >/dev/null 2>/
04e0: 64 65 76 2f 6e 75 6c 6c 20 26 0a 09 65 63 68 6f  dev/null &..echo
04f0: 20 22 24 21 22 0a 29 22 0a 44 49 53 50 4c 41 59   "$!".)".DISPLAY
0500: 3d 3a 33 31 0a 65 78 70 6f 72 74 20 44 49 53 50  =:31.export DISP
0510: 4c 41 59 0a 0a 66 61 69 6c 65 64 3d 22 22 0a 66  LAY..failed="".f
0520: 6f 72 20 6b 69 74 20 69 6e 20 6e 6f 72 6d 61 6c  or kit in normal
0530: 20 6e 6f 72 6d 61 6c 2d 7a 69 70 20 6e 6f 72 6d   normal-zip norm
0540: 61 6c 2d 74 68 72 65 61 64 65 64 20 6e 6f 72 6d  al-threaded norm
0550: 61 6c 2d 74 68 72 65 61 64 65 64 2d 7a 69 70 20  al-threaded-zip 
0560: 6e 6f 72 6d 61 6c 2d 73 74 61 74 69 63 74 6b 20  normal-statictk 
0570: 6e 6f 72 6d 61 6c 2d 6e 6f 74 6b 20 6e 6f 72 6d  normal-notk norm
0580: 61 6c 2d 74 68 72 65 61 64 65 64 2d 6e 6f 74 6b  al-threaded-notk
0590: 20 6e 6f 72 6d 61 6c 2d 74 68 72 65 61 64 65 64   normal-threaded
05a0: 2d 7a 69 70 2d 6e 6f 74 6b 20 6e 6f 72 6d 61 6c  -zip-notk normal
05b0: 2d 6e 6f 6d 6b 34 20 6d 69 6e 20 6d 69 6e 2d 73  -nomk4 min min-s
05c0: 74 61 74 69 63 20 6e 6f 72 6d 61 6c 2d 6b 69 74  tatic normal-kit
05d0: 64 6c 6c 20 6e 6f 72 6d 61 6c 2d 74 68 72 65 61  dll normal-threa
05e0: 64 65 64 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61  ded-kitdll norma
05f0: 6c 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 6e 6f  l-notk-kitdll no
0600: 72 6d 61 6c 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c  rmal-nomk4-kitdl
0610: 6c 20 6e 6f 72 6d 61 6c 2d 6e 6f 6d 6b 34 2d 6e  l normal-nomk4-n
0620: 6f 74 6b 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61  otk-kitdll norma
0630: 6c 2d 74 68 72 65 61 64 65 64 2d 6e 6f 6d 6b 34  l-threaded-nomk4
0640: 2d 6b 69 74 64 6c 6c 20 6e 6f 72 6d 61 6c 2d 74  -kitdll normal-t
0650: 68 72 65 61 64 65 64 2d 6e 6f 74 6b 2d 6e 6f 6d  hreaded-notk-nom
0660: 6b 34 2d 6b 69 74 64 6c 6c 20 6d 69 6e 2d 6b 69  k4-kitdll min-ki
0670: 74 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38 36 20  tdll win32-i586 
0680: 77 69 6e 33 32 2d 69 35 38 36 2d 7a 69 70 20 77  win32-i586-zip w
0690: 69 6e 33 32 2d 69 35 38 36 2d 74 68 72 65 61 64  in32-i586-thread
06a0: 65 64 20 77 69 6e 33 32 2d 69 35 38 36 2d 74 68  ed win32-i586-th
06b0: 72 65 61 64 65 64 2d 7a 69 70 20 77 69 6e 33 32  readed-zip win32
06c0: 2d 69 35 38 36 2d 6e 6f 74 6b 20 77 69 6e 33 32  -i586-notk win32
06d0: 2d 69 35 38 36 2d 74 68 72 65 61 64 65 64 2d 6e  -i586-threaded-n
06e0: 6f 74 6b 20 77 69 6e 33 32 2d 69 35 38 36 2d 6e  otk win32-i586-n
06f0: 6f 6d 6b 34 20 77 69 6e 33 32 2d 69 35 38 36 2d  omk4 win32-i586-
0700: 6b 69 74 64 6c 6c 20 77 69 6e 33 32 2d 69 35 38  kitdll win32-i58
0710: 36 2d 74 68 72 65 61 64 65 64 2d 6b 69 74 64 6c  6-threaded-kitdl
0720: 6c 20 77 69 6e 33 32 2d 69 35 38 36 2d 6e 6f 74  l win32-i586-not
0730: 6b 2d 6b 69 74 64 6c 6c 20 77 69 6e 33 32 2d 69  k-kitdll win32-i
0740: 35 38 36 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c  586-nomk4-kitdll
0750: 20 77 69 6e 33 32 2d 69 35 38 36 2d 6e 6f 6d 6b   win32-i586-nomk
0760: 34 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 77 69  4-notk-kitdll wi
0770: 6e 33 32 2d 69 35 38 36 2d 74 68 72 65 61 64 65  n32-i586-threade
0780: 64 2d 6e 6f 6d 6b 34 2d 6b 69 74 64 6c 6c 20 77  d-nomk4-kitdll w
0790: 69 6e 33 32 2d 69 35 38 36 2d 74 68 72 65 61 64  in32-i586-thread
07a0: 65 64 2d 6e 6f 74 6b 2d 6e 6f 6d 6b 34 2d 6b 69  ed-notk-nomk4-ki
07b0: 74 64 6c 6c 20 6c 69 6e 75 78 2d 6d 69 70 73 65  tdll linux-mipse
07c0: 6c 2d 6d 69 6e 20 6c 69 6e 75 78 2d 6d 69 70 73  l-min linux-mips
07d0: 65 6c 2d 6d 69 6e 2d 6b 69 74 64 6c 6c 20 6c 69  el-min-kitdll li
07e0: 6e 75 78 2d 61 6d 64 36 34 2d 6e 6f 74 6b 20 6c  nux-amd64-notk l
07f0: 69 6e 75 78 2d 61 6d 64 36 34 2d 6e 6f 74 6b 2d  inux-amd64-notk-
0800: 6b 69 74 64 6c 6c 20 73 6f 6c 61 72 69 73 2d 69  kitdll solaris-i
0810: 33 38 36 20 73 6f 6c 61 72 69 73 2d 69 33 38 36  386 solaris-i386
0820: 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72 69 73 2d  -kitdll solaris-
0830: 61 6d 64 36 34 20 73 6f 6c 61 72 69 73 2d 61 6d  amd64 solaris-am
0840: 64 36 34 2d 6b 69 74 64 6c 6c 20 73 6f 6c 61 72  d64-kitdll solar
0850: 69 73 2d 73 70 61 72 63 20 73 6f 6c 61 72 69 73  is-sparc solaris
0860: 2d 73 70 61 72 63 2d 6b 69 74 64 6c 6c 20 73 6f  -sparc-kitdll so
0870: 6c 61 72 69 73 2d 73 70 61 72 63 36 34 20 73 6f  laris-sparc64 so
0880: 6c 61 72 69 73 2d 73 70 61 72 63 36 34 2d 6b 69  laris-sparc64-ki
0890: 74 64 6c 6c 20 68 70 75 78 2d 68 70 70 61 36 34  tdll hpux-hppa64
08a0: 2d 6e 6f 74 6b 20 68 70 75 78 2d 68 70 70 61 36  -notk hpux-hppa6
08b0: 34 2d 6e 6f 74 6b 2d 6b 69 74 64 6c 6c 20 66 72  4-notk-kitdll fr
08c0: 65 65 62 73 64 2d 61 6d 64 36 34 20 66 72 65 65  eebsd-amd64 free
08d0: 62 73 64 2d 61 6d 64 36 34 2d 6b 69 74 64 6c 6c  bsd-amd64-kitdll
08e0: 20 6e 65 74 62 73 64 2d 69 33 38 36 20 6e 65 74   netbsd-i386 net
08f0: 62 73 64 2d 69 33 38 36 2d 6b 69 74 64 6c 6c 20  bsd-i386-kitdll 
0900: 6e 65 74 62 73 64 2d 61 6d 64 36 34 20 6e 65 74  netbsd-amd64 net
0910: 62 73 64 2d 61 6d 64 36 34 2d 6b 69 74 64 6c 6c  bsd-amd64-kitdll
0920: 3b 20 64 6f 0a 09 6b 69 74 63 72 65 61 74 6f 72  ; do..kitcreator
0930: 3d 22 2e 2f 6b 69 74 63 72 65 61 74 6f 72 22 0a  ="./kitcreator".
0940: 09 61 72 67 73 3d 22 22 0a 09 72 75 6e 6e 61 62  .args=""..runnab
0950: 6c 65 3d 22 31 22 0a 09 69 73 7a 69 70 3d 22 30  le="1"..iszip="0
0960: 22 0a 09 73 74 61 74 69 63 74 6b 3d 22 30 22 0a  "..statictk="0".
0970: 09 6e 6f 74 6b 3d 22 30 22 0a 09 6e 6f 6d 6b 34  .notk="0"..nomk4
0980: 3d 22 30 22 0a 09 78 63 6f 6d 70 69 6c 65 3d 22  ="0"..xcompile="
0990: 30 22 0a 09 6b 69 74 64 6c 6c 3d 22 30 22 0a 09  0"..kitdll="0"..
09a0: 6b 69 74 72 75 6e 63 6d 64 3d 22 22 0a 0a 09 23  kitruncmd=""...#
09b0: 20 48 61 6e 64 6c 65 20 62 61 73 65 20 63 6f 6e   Handle base con
09c0: 66 69 67 75 72 61 74 69 6f 6e 0a 09 6f 73 3d 22  figuration..os="
09d0: 24 28 75 6e 61 6d 65 20 2d 73 20 7c 20 64 64 20  $(uname -s | dd 
09e0: 63 6f 6e 76 3d 6c 63 61 73 65 20 32 3e 2f 64 65  conv=lcase 2>/de
09f0: 76 2f 6e 75 6c 6c 29 22 0a 09 63 70 75 3d 22 24  v/null)"..cpu="$
0a00: 28 75 6e 61 6d 65 20 2d 6d 20 7c 20 64 64 20 63  (uname -m | dd c
0a10: 6f 6e 76 3d 6c 63 61 73 65 20 32 3e 2f 64 65 76  onv=lcase 2>/dev
0a20: 2f 6e 75 6c 6c 29 22 0a 09 63 61 73 65 20 22 24  /null)"..case "$
0a30: 7b 6b 69 74 7d 22 20 69 6e 0a 09 09 6e 6f 72 6d  {kit}" in...norm
0a40: 61 6c 7c 6e 6f 72 6d 61 6c 2d 2a 29 0a 09 09 09  al|normal-*)....
0a50: 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 6b  kit="$(echo "${k
0a60: 69 74 7d 22 20 7c 20 73 65 64 20 22 73 40 5e 6e  it}" | sed "s@^n
0a70: 6f 72 6d 61 6c 40 24 6f 73 2d 24 63 70 75 40 22  ormal@$os-$cpu@"
0a80: 29 22 0a 09 09 09 3b 3b 0a 09 09 6d 69 6e 7c 6d  )"....;;...min|m
0a90: 69 6e 2d 6b 69 74 64 6c 6c 29 0a 09 09 09 6b 69  in-kitdll)....ki
0aa0: 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75 69 6c  tcreator="./buil
0ab0: 64 2f 6d 61 6b 65 2d 6d 69 6e 6b 69 74 22 0a 09  d/make-minkit"..
0ac0: 09 09 69 73 7a 69 70 3d 22 31 22 0a 09 09 09 6e  ..iszip="1"....n
0ad0: 6f 74 6b 3d 22 31 22 0a 09 09 09 6b 69 74 3d 22  otk="1"....kit="
0ae0: 24 28 65 63 68 6f 20 22 24 7b 6b 69 74 7d 22 20  $(echo "${kit}" 
0af0: 7c 20 73 65 64 20 22 73 40 5e 6d 69 6e 40 24 6f  | sed "s@^min@$o
0b00: 73 2d 24 63 70 75 2d 6d 69 6e 40 22 29 22 0a 09  s-$cpu-min@")"..
0b10: 09 09 3b 3b 0a 09 09 6d 69 6e 2d 73 74 61 74 69  ..;;...min-stati
0b20: 63 29 0a 09 09 09 6b 69 74 63 72 65 61 74 6f 72  c)....kitcreator
0b30: 3d 22 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d  ="./build/make-m
0b40: 69 6e 6b 69 74 2d 73 74 61 74 69 63 22 0a 09 09  inkit-static"...
0b50: 09 69 73 7a 69 70 3d 22 31 22 0a 09 09 09 6e 6f  .iszip="1"....no
0b60: 74 6b 3d 22 31 22 0a 09 09 09 6b 69 74 3d 22 24  tk="1"....kit="$
0b70: 7b 6f 73 7d 2d 24 7b 63 70 75 7d 2d 6d 69 6e 2d  {os}-${cpu}-min-
0b80: 73 74 61 74 69 63 22 0a 09 09 09 3b 3b 0a 09 09  static"....;;...
0b90: 77 69 6e 33 32 7c 77 69 6e 33 32 2d 2a 29 0a 09  win32|win32-*)..
0ba0: 09 09 6b 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f  ..kitcreator="./
0bb0: 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 77  build/make-kit-w
0bc0: 69 6e 33 32 22 0a 09 09 09 78 63 6f 6d 70 69 6c  in32"....xcompil
0bd0: 65 3d 22 31 22 0a 09 09 09 6b 69 74 72 75 6e 63  e="1"....kitrunc
0be0: 6d 64 3d 22 77 69 6e 65 22 0a 09 09 09 3b 3b 0a  md="wine"....;;.
0bf0: 09 09 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 2d 6d  ..linux-mipsel-m
0c00: 69 6e 7c 6c 69 6e 75 78 2d 6d 69 70 73 65 6c 2d  in|linux-mipsel-
0c10: 6d 69 6e 2d 6b 69 74 64 6c 6c 29 0a 09 09 09 6b  min-kitdll)....k
0c20: 69 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75 69  itcreator="./bui
0c30: 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 6d 69 70 73  ld/make-kit-mips
0c40: 65 6c 22 0a 09 09 09 72 75 6e 6e 61 62 6c 65 3d  el"....runnable=
0c50: 22 30 22 0a 09 09 09 78 63 6f 6d 70 69 6c 65 3d  "0"....xcompile=
0c60: 22 31 22 0a 09 09 09 6e 6f 74 6b 3d 22 31 22 0a  "1"....notk="1".
0c70: 09 09 09 69 73 7a 69 70 3d 22 31 22 0a 09 09 09  ...iszip="1"....
0c80: 3b 3b 0a 09 09 6c 69 6e 75 78 2d 61 6d 64 36 34  ;;...linux-amd64
0c90: 7c 6c 69 6e 75 78 2d 61 6d 64 36 34 2d 2a 7c 5c  |linux-amd64-*|\
0ca0: 0a 09 09 73 6f 6c 61 72 69 73 2d 69 33 38 36 7c  ...solaris-i386|
0cb0: 73 6f 6c 61 72 69 73 2d 69 33 38 36 2d 2a 7c 5c  solaris-i386-*|\
0cc0: 0a 09 09 73 6f 6c 61 72 69 73 2d 61 6d 64 36 34  ...solaris-amd64
0cd0: 7c 73 6f 6c 61 72 69 73 2d 61 6d 64 36 34 2d 2a  |solaris-amd64-*
0ce0: 7c 5c 0a 09 09 73 6f 6c 61 72 69 73 2d 73 70 61  |\...solaris-spa
0cf0: 72 63 7c 73 6f 6c 61 72 69 73 2d 73 70 61 72 63  rc|solaris-sparc
0d00: 2d 2a 7c 5c 0a 09 09 73 6f 6c 61 72 69 73 2d 73  -*|\...solaris-s
0d10: 70 61 72 63 36 34 7c 73 6f 6c 61 72 69 73 2d 73  parc64|solaris-s
0d20: 70 61 72 63 36 34 2d 2a 7c 5c 0a 09 09 66 72 65  parc64-*|\...fre
0d30: 65 62 73 64 2d 61 6d 64 36 34 7c 66 72 65 65 62  ebsd-amd64|freeb
0d40: 73 64 2d 61 6d 64 36 34 2d 2a 7c 5c 0a 09 09 6e  sd-amd64-*|\...n
0d50: 65 74 62 73 64 2d 69 33 38 36 7c 6e 65 74 62 73  etbsd-i386|netbs
0d60: 64 2d 69 33 38 36 2d 2a 7c 5c 0a 09 09 6e 65 74  d-i386-*|\...net
0d70: 62 73 64 2d 61 6d 64 36 34 7c 6e 65 74 62 73 64  bsd-amd64|netbsd
0d80: 2d 61 6d 64 36 34 2d 2a 7c 5c 0a 09 09 68 70 75  -amd64-*|\...hpu
0d90: 78 2d 68 70 70 61 36 34 7c 68 70 75 78 2d 68 70  x-hppa64|hpux-hp
0da0: 70 61 36 34 2d 2a 29 0a 09 09 09 70 6c 61 74 66  pa64-*)....platf
0db0: 6f 72 6d 3d 22 24 28 65 63 68 6f 20 22 24 7b 6b  orm="$(echo "${k
0dc0: 69 74 7d 22 20 7c 20 63 75 74 20 2d 66 20 31 2d  it}" | cut -f 1-
0dd0: 32 20 2d 64 20 27 2d 27 29 22 0a 09 09 09 6b 69  2 -d '-')"....ki
0de0: 74 63 72 65 61 74 6f 72 3d 22 2e 2f 62 75 69 6c  tcreator="./buil
0df0: 64 2f 6d 61 6b 65 2d 6b 69 74 2d 24 7b 70 6c 61  d/make-kit-${pla
0e00: 74 66 6f 72 6d 7d 22 0a 09 09 09 72 75 6e 6e 61  tform}"....runna
0e10: 62 6c 65 3d 22 30 22 0a 09 09 09 78 63 6f 6d 70  ble="0"....xcomp
0e20: 69 6c 65 3d 22 31 22 0a 09 09 09 69 73 7a 69 70  ile="1"....iszip
0e30: 3d 22 30 22 0a 09 09 09 3b 3b 0a 09 65 73 61 63  ="0"....;;..esac
0e40: 0a 0a 09 69 66 20 5b 20 22 24 7b 78 63 6f 6d 70  ...if [ "${xcomp
0e50: 69 6c 65 7d 22 20 21 3d 20 22 30 22 20 5d 3b 20  ile}" != "0" ]; 
0e60: 74 68 65 6e 0a 09 09 6b 69 74 3d 22 24 7b 6b 69  then...kit="${ki
0e70: 74 7d 2d 78 63 6f 6d 70 69 6c 65 22 0a 09 66 69  t}-xcompile"..fi
0e80: 0a 0a 09 23 20 48 61 6e 64 6c 65 20 61 64 64 69  ...# Handle addi
0e90: 74 69 6f 6e 61 6c 20 63 6f 6e 66 69 67 75 72 61  tional configura
0ea0: 74 69 6f 6e 0a 09 74 65 6d 70 6b 69 74 3d 22 2d  tion..tempkit="-
0eb0: 24 7b 6b 69 74 7d 2d 22 0a 09 66 6f 72 20 74 72  ${kit}-"..for tr
0ec0: 79 20 69 6e 20 31 20 32 20 33 20 34 20 35 20 36  y in 1 2 3 4 5 6
0ed0: 20 37 20 38 20 39 3b 20 64 6f 0a 09 09 63 61 73   7 8 9; do...cas
0ee0: 65 20 22 2d 24 7b 74 65 6d 70 6b 69 74 7d 2d 22  e "-${tempkit}-"
0ef0: 20 69 6e 0a 09 09 09 2a 2d 74 68 72 65 61 64 65   in....*-threade
0f00: 64 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b 69 74  d-*).....tempkit
0f10: 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65 6d 70  ="$(echo "${temp
0f20: 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73 40 2d  kit}" | sed 's@-
0f30: 74 68 72 65 61 64 65 64 2d 40 2d 40 27 29 22 0a  threaded-@-@')".
0f40: 09 09 09 09 61 72 67 73 3d 22 24 7b 61 72 67 73  ....args="${args
0f50: 7d 20 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 65 61  } --enable-threa
0f60: 64 73 22 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d  ds".....;;....*-
0f70: 7a 69 70 2d 2a 29 0a 09 09 09 09 74 65 6d 70 6b  zip-*).....tempk
0f80: 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 74 65  it="$(echo "${te
0f90: 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73  mpkit}" | sed 's
0fa0: 40 2d 7a 69 70 2d 40 2d 40 27 29 22 0a 09 09 09  @-zip-@-@')"....
0fb0: 09 61 72 67 73 3d 22 24 7b 61 72 67 73 7d 20 2d  .args="${args} -
0fc0: 2d 65 6e 61 62 6c 65 2d 6b 69 74 2d 73 74 6f 72  -enable-kit-stor
0fd0: 61 67 65 3d 7a 69 70 22 0a 09 09 09 09 69 73 7a  age=zip".....isz
0fe0: 69 70 3d 22 31 22 0a 09 09 09 09 3b 3b 0a 09 09  ip="1".....;;...
0ff0: 09 2a 2d 73 74 61 74 69 63 74 6b 2d 2a 29 0a 09  .*-statictk-*)..
1000: 09 09 09 74 65 6d 70 6b 69 74 3d 22 24 28 65 63  ...tempkit="$(ec
1010: 68 6f 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22 20  ho "${tempkit}" 
1020: 7c 20 73 65 64 20 27 73 40 2d 73 74 61 74 69 63  | sed 's@-static
1030: 74 6b 2d 40 2d 40 27 29 22 0a 09 09 09 09 69 66  tk-@-@')".....if
1040: 20 5b 20 22 24 7b 6e 6f 74 6b 7d 22 20 3d 20 22   [ "${notk}" = "
1050: 30 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 09  0" ]; then......
1060: 73 74 61 74 69 63 74 6b 3d 22 31 22 0a 09 09 09  statictk="1"....
1070: 09 65 6c 73 65 0a 09 09 09 09 09 65 63 68 6f 20  .else......echo 
1080: 22 24 7b 6b 69 74 7d 3a 20 55 6e 61 62 6c 65 20  "${kit}: Unable 
1090: 74 6f 20 63 72 65 61 74 65 20 53 74 61 74 69 63  to create Static
10a0: 54 6b 20 61 6e 64 20 4e 6f 54 6b 2c 20 69 67 6e  Tk and NoTk, ign
10b0: 6f 72 69 6e 67 20 53 74 61 74 69 63 54 6b 22 20  oring StaticTk" 
10c0: 3e 26 32 0a 09 09 09 09 66 69 0a 09 09 09 09 3b  >&2.....fi.....;
10d0: 3b 0a 09 09 09 2a 2d 6e 6f 74 6b 2d 2a 29 0a 09  ;....*-notk-*)..
10e0: 09 09 09 74 65 6d 70 6b 69 74 3d 22 24 28 65 63  ...tempkit="$(ec
10f0: 68 6f 20 22 24 7b 74 65 6d 70 6b 69 74 7d 22 20  ho "${tempkit}" 
1100: 7c 20 73 65 64 20 27 73 40 2d 6e 6f 74 6b 2d 40  | sed 's@-notk-@
1110: 2d 40 27 29 22 0a 09 09 09 09 69 66 20 5b 20 22  -@')".....if [ "
1120: 24 7b 73 74 61 74 69 63 74 6b 7d 22 20 3d 20 22  ${statictk}" = "
1130: 30 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 09  0" ]; then......
1140: 6e 6f 74 6b 3d 22 31 22 0a 09 09 09 09 65 6c 73  notk="1".....els
1150: 65 0a 09 09 09 09 09 65 63 68 6f 20 22 24 7b 6b  e......echo "${k
1160: 69 74 7d 3a 20 55 6e 61 62 6c 65 20 74 6f 20 63  it}: Unable to c
1170: 72 65 61 74 65 20 53 74 61 74 69 63 54 6b 20 61  reate StaticTk a
1180: 6e 64 20 4e 6f 54 6b 2c 20 69 67 6e 6f 72 69 6e  nd NoTk, ignorin
1190: 67 20 4e 6f 54 6b 22 20 3e 26 32 0a 09 09 09 09  g NoTk" >&2.....
11a0: 66 69 0a 09 09 09 09 3b 3b 0a 09 09 09 2a 2d 6e  fi.....;;....*-n
11b0: 6f 6d 6b 34 2d 2a 29 0a 09 09 09 09 74 65 6d 70  omk4-*).....temp
11c0: 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b 74  kit="$(echo "${t
11d0: 65 6d 70 6b 69 74 7d 22 20 7c 20 73 65 64 20 27  empkit}" | sed '
11e0: 73 40 2d 6e 6f 6d 6b 34 2d 40 2d 40 27 29 22 0a  s@-nomk4-@-@')".
11f0: 09 09 09 09 6e 6f 6d 6b 34 3d 22 31 22 0a 09 09  ....nomk4="1"...
1200: 09 09 69 73 7a 69 70 3d 22 31 22 0a 09 09 09 09  ..iszip="1".....
1210: 3b 3b 0a 09 09 09 2a 2d 6b 69 74 64 6c 6c 2d 2a  ;;....*-kitdll-*
1220: 29 0a 09 09 09 09 6b 69 74 64 6c 6c 3d 22 31 22  ).....kitdll="1"
1230: 0a 09 09 09 09 3b 3b 0a 09 09 65 73 61 63 0a 09  .....;;...esac..
1240: 64 6f 6e 65 0a 0a 09 69 66 20 5b 20 22 24 7b 6b  done...if [ "${k
1250: 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d 3b  itdll}" = "1" ];
1260: 20 74 68 65 6e 0a 09 09 23 20 43 75 72 72 65 6e   then...# Curren
1270: 74 6c 79 20 6e 6f 20 4b 69 74 44 4c 4c 20 75 73  tly no KitDLL us
1280: 65 73 20 5a 69 70 0a 09 09 69 73 7a 69 70 3d 22  es Zip...iszip="
1290: 30 22 0a 09 66 69 0a 0a 09 66 6f 72 20 76 65 72  0"..fi...for ver
12a0: 73 69 6f 6e 20 69 6e 20 24 7b 56 45 52 53 49 4f  sion in ${VERSIO
12b0: 4e 53 7d 3b 20 64 6f 0a 09 09 23 20 57 6f 72 6b  NS}; do...# Work
12c0: 20 61 72 6f 75 6e 64 20 63 68 61 6e 67 65 73 20   around changes 
12d0: 69 6e 20 64 65 66 61 75 6c 74 20 62 65 68 61 76  in default behav
12e0: 69 6f 75 72 0a 09 09 69 66 20 5b 20 22 24 7b 76  iour...if [ "${v
12f0: 65 72 73 69 6f 6e 7d 22 20 3d 20 22 63 76 73 5f  ersion}" = "cvs_
1300: 48 45 41 44 22 20 5d 3b 20 74 68 65 6e 0a 09 09  HEAD" ]; then...
1310: 09 6b 69 74 3d 22 24 28 65 63 68 6f 20 22 24 7b  .kit="$(echo "${
1320: 6b 69 74 7d 22 20 7c 20 73 65 64 20 27 73 40 2d  kit}" | sed 's@-
1330: 74 68 72 65 61 64 65 64 40 2d 75 6e 74 68 72 65  threaded@-unthre
1340: 61 64 65 64 40 27 29 22 0a 09 09 09 61 72 67 73  aded@')"....args
1350: 3d 22 24 28 65 63 68 6f 20 22 24 7b 61 72 67 73  ="$(echo "${args
1360: 7d 22 20 7c 20 73 65 64 20 27 73 40 20 2d 2d 65  }" | sed 's@ --e
1370: 6e 61 62 6c 65 2d 74 68 72 65 61 64 73 40 20 2d  nable-threads@ -
1380: 2d 64 69 73 61 62 6c 65 2d 74 68 72 65 61 64 73  -disable-threads
1390: 40 27 29 22 0a 09 09 66 69 0a 0a 09 09 23 20 43  @')"...fi....# C
13a0: 72 65 61 74 65 20 54 63 6c 6b 69 74 0a 09 09 69  reate Tclkit...i
13b0: 66 20 5b 20 22 24 7b 6b 69 74 64 6c 6c 7d 22 20  f [ "${kitdll}" 
13c0: 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09 09  = "1" ]; then...
13d0: 09 63 72 65 61 74 65 64 6b 69 74 3d 22 6c 69 62  .createdkit="lib
13e0: 74 63 6c 6b 69 74 2a 2e 64 6c 6c 20 6c 69 62 74  tclkit*.dll libt
13f0: 63 6c 6b 69 74 2a 2e 2a 22 0a 09 09 09 6f 75 74  clkit*.*"....out
1400: 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53 54 44  putname="${TESTD
1410: 49 52 7d 2f 6b 69 74 73 2f 6c 69 62 74 63 6c 6b  IR}/kits/libtclk
1420: 69 74 2d 24 7b 76 65 72 73 69 6f 6e 7d 2d 24 7b  it-${version}-${
1430: 6b 69 74 7d 22 0a 09 09 09 66 61 69 6c 6f 75 74  kit}"....failout
1440: 70 75 74 6e 61 6d 65 3d 22 24 7b 54 45 53 54 44  putname="${TESTD
1450: 49 52 7d 2f 6b 69 74 73 2f 66 61 69 6c 65 64 2f  IR}/kits/failed/
1460: 6c 69 62 74 63 6c 6b 69 74 2d 24 7b 76 65 72 73  libtclkit-${vers
1470: 69 6f 6e 7d 2d 24 7b 6b 69 74 7d 22 0a 09 09 65  ion}-${kit}"...e
1480: 6c 73 65 0a 09 09 09 63 72 65 61 74 65 64 6b 69  lse....createdki
1490: 74 3d 22 74 63 6c 6b 69 74 2d 24 7b 76 65 72 73  t="tclkit-${vers
14a0: 69 6f 6e 7d 22 0a 09 09 09 6f 75 74 70 75 74 6e  ion}"....outputn
14b0: 61 6d 65 3d 22 24 7b 54 45 53 54 44 49 52 7d 2f  ame="${TESTDIR}/
14c0: 6b 69 74 73 2f 74 63 6c 6b 69 74 2d 24 7b 76 65  kits/tclkit-${ve
14d0: 72 73 69 6f 6e 7d 2d 24 7b 6b 69 74 7d 22 0a 09  rsion}-${kit}"..
14e0: 09 09 66 61 69 6c 6f 75 74 70 75 74 6e 61 6d 65  ..failoutputname
14f0: 3d 22 24 7b 54 45 53 54 44 49 52 7d 2f 6b 69 74  ="${TESTDIR}/kit
1500: 73 2f 66 61 69 6c 65 64 2f 74 63 6c 6b 69 74 2d  s/failed/tclkit-
1510: 24 7b 76 65 72 73 69 6f 6e 7d 2d 24 7b 6b 69 74  ${version}-${kit
1520: 7d 22 0a 09 09 66 69 0a 09 09 62 75 69 6c 64 6c  }"...fi...buildl
1530: 6f 67 3d 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65  og="${outputname
1540: 7d 2d 62 75 69 6c 64 2e 6c 6f 67 22 0a 09 09 66  }-build.log"...f
1550: 61 69 6c 62 75 69 6c 64 6c 6f 67 3d 22 24 7b 66  ailbuildlog="${f
1560: 61 69 6c 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 62  ailoutputname}-b
1570: 75 69 6c 64 2e 6c 6f 67 22 0a 09 09 74 65 73 74  uild.log"...test
1580: 72 65 73 75 6c 74 73 6c 6f 67 3d 22 24 7b 6f 75  resultslog="${ou
1590: 74 70 75 74 6e 61 6d 65 7d 2d 74 65 73 74 73 2e  tputname}-tests.
15a0: 6c 6f 67 22 0a 0a 09 09 69 66 20 5b 20 21 20 2d  log"....if [ ! -
15b0: 66 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d  f "${outputname}
15c0: 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 75 6e 73  " ]; then....uns
15d0: 65 74 20 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b  et KITCREATOR_PK
15e0: 47 53 20 53 54 41 54 49 43 54 4b 0a 0a 09 09 09  GS STATICTK.....
15f0: 69 66 20 5b 20 2d 66 20 22 24 7b 66 61 69 6c 6f  if [ -f "${failo
1600: 75 74 70 75 74 6e 61 6d 65 7d 22 20 5d 3b 20 74  utputname}" ]; t
1610: 68 65 6e 0a 09 09 09 09 65 63 68 6f 20 22 53 6b  hen.....echo "Sk
1620: 69 70 70 69 6e 67 20 72 65 62 75 69 6c 64 69 6e  ipping rebuildin
1630: 67 20 66 61 69 6c 65 64 20 6b 69 74 20 24 7b 76  g failed kit ${v
1640: 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69 74 7d 20 2e  ersion}/${kit} .
1650: 2e 2e 22 0a 0a 09 09 09 09 66 61 69 6c 65 64 3d  .."......failed=
1660: 22 24 7b 66 61 69 6c 65 64 7d 20 24 7b 76 65 72  "${failed} ${ver
1670: 73 69 6f 6e 7d 2f 24 7b 6b 69 74 7d 2d 62 75 69  sion}/${kit}-bui
1680: 6c 64 22 0a 0a 09 09 09 09 63 6f 6e 74 69 6e 75  ld"......continu
1690: 65 0a 09 09 09 66 69 0a 0a 09 09 09 72 6d 20 2d  e....fi.....rm -
16a0: 66 20 74 63 6c 73 68 0a 09 09 09 2e 2f 6b 69 74  f tclsh...../kit
16b0: 63 72 65 61 74 6f 72 20 63 6c 65 61 6e 20 3e 2f  creator clean >/
16c0: 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f  dev/null 2>/dev/
16d0: 6e 75 6c 6c 0a 0a 09 09 09 65 63 68 6f 20 22 43  null.....echo "C
16e0: 72 65 61 74 69 6e 67 20 54 63 6c 6b 69 74 20 24  reating Tclkit $
16f0: 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69 74 7d  {version}/${kit}
1700: 2e 2e 2e 22 0a 09 09 09 65 63 68 6f 20 22 20 2a  ..."....echo " *
1710: 2a 2a 20 42 75 69 6c 64 20 73 74 61 72 74 65 64  ** Build started
1720: 20 24 28 77 68 6f 61 6d 69 29 40 24 28 68 6f 73   $(whoami)@$(hos
1730: 74 6e 61 6d 65 29 20 6f 6e 20 24 28 64 61 74 65  tname) on $(date
1740: 29 22 20 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67  )" > "${buildlog
1750: 7d 22 0a 09 09 09 65 63 68 6f 20 27 27 20 3e 3e  }"....echo '' >>
1760: 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09   "${buildlog}"..
1770: 09 09 65 63 68 6f 20 22 20 2a 2a 2a 20 42 75 69  ..echo " *** Bui
1780: 6c 64 20 53 63 72 69 70 74 22 20 3e 3e 20 22 24  ld Script" >> "$
1790: 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 0a 09 09 09  {buildlog}".....
17a0: 69 66 20 5b 20 22 24 7b 6e 6f 74 6b 7d 22 20 3d  if [ "${notk}" =
17b0: 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09   "1" ]; then....
17c0: 09 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53  .KITCREATOR_PKGS
17d0: 3d 27 69 74 63 6c 20 6d 6b 34 74 63 6c 27 0a 09  ='itcl mk4tcl'..
17e0: 09 09 66 69 0a 0a 09 09 09 69 66 20 5b 20 22 24  ..fi.....if [ "$
17f0: 7b 6e 6f 6d 6b 34 7d 22 20 3d 20 22 31 22 20 5d  {nomk4}" = "1" ]
1800: 3b 20 74 68 65 6e 0a 09 09 09 09 69 66 20 5b 20  ; then.....if [ 
1810: 2d 7a 20 22 24 7b 4b 49 54 43 52 45 41 54 4f 52  -z "${KITCREATOR
1820: 5f 50 4b 47 53 7d 22 20 5d 3b 20 74 68 65 6e 0a  _PKGS}" ]; then.
1830: 09 09 09 09 09 4b 49 54 43 52 45 41 54 4f 52 5f  .....KITCREATOR_
1840: 50 4b 47 53 3d 27 69 74 63 6c 20 74 6b 27 0a 09  PKGS='itcl tk'..
1850: 09 09 09 65 6c 73 65 0a 09 09 09 09 09 4b 49 54  ...else......KIT
1860: 43 52 45 41 54 4f 52 5f 50 4b 47 53 3d 22 24 28  CREATOR_PKGS="$(
1870: 65 63 68 6f 20 22 24 7b 4b 49 54 43 52 45 41 54  echo "${KITCREAT
1880: 4f 52 5f 50 4b 47 53 7d 22 20 7c 20 73 65 64 20  OR_PKGS}" | sed 
1890: 27 73 40 6d 6b 34 74 63 6c 40 40 27 29 22 0a 09  's@mk4tcl@@')"..
18a0: 09 09 09 66 69 0a 09 09 09 66 69 0a 0a 09 09 09  ...fi....fi.....
18b0: 69 66 20 5b 20 22 24 7b 6b 69 74 64 6c 6c 7d 22  if [ "${kitdll}"
18c0: 20 3d 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09   = "1" ]; then..
18d0: 09 09 09 69 66 20 5b 20 2d 7a 20 22 24 7b 4b 49  ...if [ -z "${KI
18e0: 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d 22 20  TCREATOR_PKGS}" 
18f0: 5d 3b 20 74 68 65 6e 0a 09 09 09 09 09 4b 49 54  ]; then......KIT
1900: 43 52 45 41 54 4f 52 5f 50 4b 47 53 3d 27 74 6b  CREATOR_PKGS='tk
1910: 20 69 74 63 6c 20 6d 6b 34 74 63 6c 20 6b 69 74   itcl mk4tcl kit
1920: 64 6c 6c 27 0a 09 09 09 09 65 6c 73 65 0a 09 09  dll'.....else...
1930: 09 09 09 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b  ...KITCREATOR_PK
1940: 47 53 3d 22 24 7b 4b 49 54 43 52 45 41 54 4f 52  GS="${KITCREATOR
1950: 5f 50 4b 47 53 7d 20 6b 69 74 64 6c 6c 22 0a 09  _PKGS} kitdll"..
1960: 09 09 09 66 69 0a 09 09 09 66 69 0a 0a 09 09 09  ...fi....fi.....
1970: 65 78 70 6f 72 74 20 4b 49 54 43 52 45 41 54 4f  export KITCREATO
1980: 52 5f 50 4b 47 53 0a 0a 09 09 09 69 66 20 5b 20  R_PKGS.....if [ 
1990: 2d 6e 20 22 24 7b 4b 49 54 43 52 45 41 54 4f 52  -n "${KITCREATOR
19a0: 5f 50 4b 47 53 7d 22 20 5d 3b 20 74 68 65 6e 0a  _PKGS}" ]; then.
19b0: 09 09 09 09 65 63 68 6f 20 22 20 20 4b 49 54 43  ....echo "  KITC
19c0: 52 45 41 54 4f 52 5f 50 4b 47 53 3d 5c 22 24 7b  REATOR_PKGS=\"${
19d0: 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d  KITCREATOR_PKGS}
19e0: 5c 22 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c  \"" >> "${buildl
19f0: 6f 67 7d 22 0a 09 09 09 09 65 63 68 6f 20 22 20  og}".....echo " 
1a00: 20 65 78 70 6f 72 74 20 4b 49 54 43 52 45 41 54   export KITCREAT
1a10: 4f 52 5f 50 4b 47 53 22 20 3e 3e 20 22 24 7b 62  OR_PKGS" >> "${b
1a20: 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 66 69 0a  uildlog}"....fi.
1a30: 0a 09 09 09 69 66 20 5b 20 22 24 7b 73 74 61 74  ....if [ "${stat
1a40: 69 63 74 6b 7d 22 20 3d 20 22 31 22 20 5d 3b 20  ictk}" = "1" ]; 
1a50: 74 68 65 6e 0a 09 09 09 09 53 54 41 54 49 43 54  then.....STATICT
1a60: 4b 3d 22 31 22 0a 09 09 09 09 65 78 70 6f 72 74  K="1".....export
1a70: 20 53 54 41 54 49 43 54 4b 0a 0a 09 09 09 09 65   STATICTK......e
1a80: 63 68 6f 20 22 20 20 53 54 41 54 49 43 54 4b 3d  cho "  STATICTK=
1a90: 5c 22 24 7b 53 54 41 54 49 43 54 4b 7d 5c 22 22  \"${STATICTK}\""
1aa0: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
1ab0: 22 0a 09 09 09 09 65 63 68 6f 20 22 20 20 65 78  ".....echo "  ex
1ac0: 70 6f 72 74 20 53 54 41 54 49 43 54 4b 22 20 3e  port STATICTK" >
1ad0: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
1ae0: 09 09 09 66 69 0a 0a 09 09 09 69 66 20 5b 20 22  ...fi.....if [ "
1af0: 24 7b 6b 69 74 63 72 65 61 74 6f 72 7d 22 20 21  ${kitcreator}" !
1b00: 3d 20 22 2e 2f 6b 69 74 63 72 65 61 74 6f 72 22  = "./kitcreator"
1b10: 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68   ]; then.....ech
1b20: 6f 20 22 20 20 6d 6b 64 69 72 20 62 75 69 6c 64  o "  mkdir build
1b30: 22 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67  " >> "${buildlog
1b40: 7d 22 0a 0a 09 09 09 09 23 20 53 65 76 65 72 61  }"......# Severa
1b50: 6c 20 62 75 69 6c 64 20 73 63 72 69 70 74 73 20  l build scripts 
1b60: 72 65 6c 79 20 6f 6e 20 6d 69 6e 6b 69 74 20 74  rely on minkit t
1b70: 6f 20 77 6f 72 6b 0a 09 09 09 09 69 66 20 67 72  o work.....if gr
1b80: 65 70 20 27 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65  ep './build/make
1b90: 2d 6d 69 6e 6b 69 74 27 20 22 24 7b 6b 69 74 63  -minkit' "${kitc
1ba0: 72 65 61 74 6f 72 7d 22 20 3e 2f 64 65 76 2f 6e  reator}" >/dev/n
1bb0: 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 3b  ull 2>/dev/null;
1bc0: 20 74 68 65 6e 0a 09 09 09 09 09 65 63 68 6f 20   then......echo 
1bd0: 22 20 20 63 61 74 20 3c 3c 20 5c 5f 5f 45 4f 46  "  cat << \__EOF
1be0: 5f 5f 20 3e 20 2e 2f 62 75 69 6c 64 2f 6d 61 6b  __ > ./build/mak
1bf0: 65 2d 6d 69 6e 6b 69 74 22 20 3e 3e 20 22 24 7b  e-minkit" >> "${
1c00: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09  buildlog}"......
1c10: 73 65 64 20 27 73 40 5e 40 20 20 40 27 20 20 27  sed 's@^@  @'  '
1c20: 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69 6e  ./build/make-min
1c30: 6b 69 74 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64  kit' >> "${build
1c40: 6c 6f 67 7d 22 0a 09 09 09 09 09 65 63 68 6f 20  log}"......echo 
1c50: 22 20 20 5f 5f 45 4f 46 5f 5f 22 20 3e 3e 20 22  "  __EOF__" >> "
1c60: 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09  ${buildlog}"....
1c70: 09 09 65 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b  ..echo '' >> "${
1c80: 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 66  buildlog}".....f
1c90: 69 0a 0a 09 09 09 09 23 20 53 65 76 65 72 61 6c  i......# Several
1ca0: 20 62 75 69 6c 64 20 73 63 72 69 70 74 73 20 72   build scripts r
1cb0: 65 6c 79 20 6f 6e 20 6d 61 6b 65 2d 6b 69 74 2d  ely on make-kit-
1cc0: 63 72 6f 73 73 63 6f 6d 70 69 6c 65 20 74 6f 20  crosscompile to 
1cd0: 77 6f 72 6b 0a 09 09 09 09 69 66 20 67 72 65 70  work.....if grep
1ce0: 20 27 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b   './build/make-k
1cf0: 69 74 2d 63 72 6f 73 73 63 6f 6d 70 69 6c 65 27  it-crosscompile'
1d00: 20 22 24 7b 6b 69 74 63 72 65 61 74 6f 72 7d 22   "${kitcreator}"
1d10: 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64   >/dev/null 2>/d
1d20: 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09  ev/null; then...
1d30: 09 09 09 65 63 68 6f 20 22 20 20 63 61 74 20 3c  ...echo "  cat <
1d40: 3c 20 5c 5f 5f 45 4f 46 5f 5f 20 3e 20 2e 2f 62  < \__EOF__ > ./b
1d50: 75 69 6c 64 2f 6d 61 6b 65 2d 6b 69 74 2d 63 72  uild/make-kit-cr
1d60: 6f 73 73 63 6f 6d 70 69 6c 65 22 20 3e 3e 20 22  osscompile" >> "
1d70: 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09  ${buildlog}"....
1d80: 09 09 73 65 64 20 27 73 40 5e 40 20 20 40 27 20  ..sed 's@^@  @' 
1d90: 20 27 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6b   './build/make-k
1da0: 69 74 2d 63 72 6f 73 73 63 6f 6d 70 69 6c 65 27  it-crosscompile'
1db0: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
1dc0: 22 0a 09 09 09 09 09 65 63 68 6f 20 22 20 20 5f  "......echo "  _
1dd0: 5f 45 4f 46 5f 5f 22 20 3e 3e 20 22 24 7b 62 75  _EOF__" >> "${bu
1de0: 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 09 09 65 63  ildlog}"......ec
1df0: 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c  ho '' >> "${buil
1e00: 64 6c 6f 67 7d 22 0a 09 09 09 09 66 69 0a 0a 09  dlog}".....fi...
1e10: 09 09 09 65 63 68 6f 20 22 20 20 63 61 74 20 3c  ...echo "  cat <
1e20: 3c 20 5c 5f 5f 45 4f 46 5f 5f 20 3e 20 24 7b 6b  < \__EOF__ > ${k
1e30: 69 74 63 72 65 61 74 6f 72 7d 22 20 3e 3e 20 22  itcreator}" >> "
1e40: 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09  ${buildlog}"....
1e50: 09 73 65 64 20 27 73 40 5e 40 20 20 40 27 20 20  .sed 's@^@  @'  
1e60: 22 24 7b 6b 69 74 63 72 65 61 74 6f 72 7d 22 20  "${kitcreator}" 
1e70: 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22  >> "${buildlog}"
1e80: 0a 09 09 09 09 65 63 68 6f 20 22 20 20 5f 5f 45  .....echo "  __E
1e90: 4f 46 5f 5f 22 20 3e 3e 20 22 24 7b 62 75 69 6c  OF__" >> "${buil
1ea0: 64 6c 6f 67 7d 22 0a 09 09 09 09 65 63 68 6f 20  dlog}".....echo 
1eb0: 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f  '' >> "${buildlo
1ec0: 67 7d 22 0a 09 09 09 66 69 0a 09 09 09 65 63 68  g}"....fi....ech
1ed0: 6f 20 22 20 20 5c 22 24 7b 6b 69 74 63 72 65 61  o "  \"${kitcrea
1ee0: 74 6f 72 7d 5c 22 20 5c 22 24 7b 76 65 72 73 69  tor}\" \"${versi
1ef0: 6f 6e 7d 5c 22 20 24 7b 61 72 67 73 7d 22 20 3e  on}\" ${args}" >
1f00: 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a  > "${buildlog}".
1f10: 09 09 09 65 63 68 6f 20 27 27 20 3e 3e 20 22 24  ...echo '' >> "$
1f20: 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 09 09 09 65  {buildlog}"....e
1f30: 63 68 6f 20 27 27 20 3e 3e 20 22 24 7b 62 75 69  cho '' >> "${bui
1f40: 6c 64 6c 6f 67 7d 22 0a 09 09 09 65 63 68 6f 20  ldlog}"....echo 
1f50: 27 27 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f  '' >> "${buildlo
1f60: 67 7d 22 0a 09 09 09 65 63 68 6f 20 22 20 2a 2a  g}"....echo " **
1f70: 2a 20 42 75 69 6c 64 20 52 65 73 75 6c 74 73 22  * Build Results"
1f80: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
1f90: 22 0a 09 09 09 65 63 68 6f 20 27 27 20 3e 3e 20  "....echo '' >> 
1fa0: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 0a 0a 09  "${buildlog}"...
1fb0: 09 09 62 75 69 6c 64 66 61 69 6c 65 64 3d 22 30  ..buildfailed="0
1fc0: 22 0a 09 09 09 22 24 7b 6b 69 74 63 72 65 61 74  "...."${kitcreat
1fd0: 6f 72 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e 7d  or}" "${version}
1fe0: 22 20 24 7b 61 72 67 73 7d 20 3e 3e 20 22 24 7b  " ${args} >> "${
1ff0: 62 75 69 6c 64 6c 6f 67 7d 22 20 32 3e 26 31 20  buildlog}" 2>&1 
2000: 7c 7c 20 62 75 69 6c 64 66 61 69 6c 65 64 3d 22  || buildfailed="
2010: 31 22 0a 09 09 09 67 72 65 70 20 2d 6e 20 27 5e  1"....grep -n '^
2020: 27 20 2a 2f 62 75 69 6c 64 2e 6c 6f 67 20 3e 3e  ' */build.log >>
2030: 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 20 32   "${buildlog}" 2
2040: 3e 26 31 0a 0a 09 09 09 69 66 20 5b 20 22 24 7b  >&1.....if [ "${
2050: 6b 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d  kitdll}" = "1" ]
2060: 3b 20 74 68 65 6e 0a 09 09 09 09 23 20 43 72 65  ; then.....# Cre
2070: 61 74 65 20 74 65 73 74 20 64 72 69 76 65 72 73  ate test drivers
2080: 20 66 6f 72 20 4b 69 74 44 4c 4c 0a 09 09 09 09   for KitDLL.....
2090: 28 0a 09 09 09 09 09 65 63 68 6f 20 22 22 0a 09  (......echo ""..
20a0: 09 09 09 09 65 63 68 6f 20 22 22 0a 09 09 09 09  ....echo "".....
20b0: 09 65 63 68 6f 20 22 22 0a 09 09 09 09 09 65 63  .echo ""......ec
20c0: 68 6f 20 22 20 2a 2a 2a 20 42 75 69 6c 64 69 6e  ho " *** Buildin
20d0: 67 20 4b 69 74 44 4c 4c 20 74 65 73 74 20 64 72  g KitDLL test dr
20e0: 69 76 65 72 20 28 74 63 6c 73 68 29 22 0a 09 09  iver (tclsh)"...
20f0: 09 09 09 65 63 68 6f 20 22 22 0a 0a 09 09 09 09  ...echo ""......
2100: 09 63 64 20 6b 69 74 73 68 2f 62 75 69 6c 64 2f  .cd kitsh/build/
2110: 6b 69 74 73 68 2d 2a 2f 20 7c 7c 20 65 78 69 74  kitsh-*/ || exit
2120: 20 31 0a 09 09 09 09 09 6d 61 6b 65 20 74 63 6c   1......make tcl
2130: 73 68 0a 09 09 09 09 09 63 70 20 74 63 6c 73 68  sh......cp tclsh
2140: 20 2e 2e 2f 2e 2e 2f 2e 2e 2f 0a 09 09 09 09 29   ../../../.....)
2150: 20 3e 3e 20 22 24 7b 62 75 69 6c 64 6c 6f 67 7d   >> "${buildlog}
2160: 22 20 32 3e 26 31 0a 09 09 09 66 69 0a 0a 09 09  " 2>&1....fi....
2170: 09 23 20 50 65 72 66 6f 72 6d 20 77 69 6c 64 63  .# Perform wildc
2180: 61 72 64 20 65 78 70 61 6e 73 69 6f 6e 0a 09 09  ard expansion...
2190: 09 63 72 65 61 74 65 64 6b 69 74 3d 22 24 28 6c  .createdkit="$(l
21a0: 73 20 2d 66 31 20 24 7b 63 72 65 61 74 65 64 6b  s -f1 ${createdk
21b0: 69 74 7d 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20  it} 2>/dev/null 
21c0: 7c 20 68 65 61 64 20 2d 6e 20 31 29 22 0a 0a 09  | head -n 1)"...
21d0: 09 09 69 66 20 5b 20 21 20 2d 66 20 22 24 7b 63  ..if [ ! -f "${c
21e0: 72 65 61 74 65 64 6b 69 74 7d 22 20 5d 3b 20 74  reatedkit}" ]; t
21f0: 68 65 6e 0a 09 09 09 09 65 63 68 6f 20 22 46 61  hen.....echo "Fa
2200: 69 6c 65 64 20 74 6f 20 63 72 65 61 74 65 20 6b  iled to create k
2210: 69 74 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b  it ${version}/${
2220: 6b 69 74 7d 22 20 3e 26 32 0a 0a 09 09 09 09 66  kit}" >&2......f
2230: 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c 65 64 7d  ailed="${failed}
2240: 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b 6b 69   ${version}/${ki
2250: 74 7d 2d 62 75 69 6c 64 22 0a 0a 09 09 09 09 74  t}-build"......t
2260: 6f 75 63 68 20 22 24 7b 66 61 69 6c 6f 75 74 70  ouch "${failoutp
2270: 75 74 6e 61 6d 65 7d 22 0a 09 09 09 09 6d 76 20  utname}".....mv 
2280: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 20 22 24  "${buildlog}" "$
2290: 7b 66 61 69 6c 62 75 69 6c 64 6c 6f 67 7d 22 0a  {failbuildlog}".
22a0: 0a 09 09 09 09 72 6d 20 2d 66 20 74 63 6c 73 68  .....rm -f tclsh
22b0: 0a 0a 09 09 09 09 63 6f 6e 74 69 6e 75 65 0a 09  ......continue..
22c0: 09 09 66 69 0a 0a 09 09 09 23 20 56 65 72 69 66  ..fi.....# Verif
22d0: 79 20 73 61 6e 69 74 79 20 6f 66 20 63 72 65 61  y sanity of crea
22e0: 74 65 64 20 6b 69 74 0a 09 09 09 69 73 73 61 6e  ted kit....issan
22f0: 65 3d 31 0a 0a 09 09 09 23 23 20 56 65 72 69 66  e=1.....## Verif
2300: 79 20 74 68 61 74 20 57 69 6e 33 32 20 62 75 69  y that Win32 bui
2310: 6c 64 73 20 61 72 65 20 6f 66 20 63 6f 72 72 65  lds are of corre
2320: 63 74 20 74 79 70 65 0a 09 09 09 23 23 20 56 65  ct type....## Ve
2330: 72 69 66 79 20 74 68 61 74 20 44 4c 4c 20 62 75  rify that DLL bu
2340: 69 6c 64 73 20 61 72 65 20 6f 66 20 63 6f 72 72  ilds are of corr
2350: 65 63 74 20 74 79 70 65 0a 09 09 09 63 61 73 65  ect type....case
2360: 20 22 2d 24 7b 76 65 72 73 69 6f 6e 7d 2d 24 7b   "-${version}-${
2370: 6b 69 74 7d 2d 22 20 69 6e 0a 09 09 09 09 2a 2d  kit}-" in.....*-
2380: 77 69 6e 33 32 2d 6b 69 74 64 6c 6c 2d 2a 7c 2a  win32-kitdll-*|*
2390: 2d 77 69 6e 33 32 2d 2a 2d 6b 69 74 64 6c 6c 2d  -win32-*-kitdll-
23a0: 2a 29 0a 09 09 09 09 09 69 66 20 21 20 66 69 6c  *)......if ! fil
23b0: 65 20 22 24 7b 63 72 65 61 74 65 64 6b 69 74 7d  e "${createdkit}
23c0: 22 20 7c 20 67 72 65 70 20 27 4d 53 20 57 69 6e  " | grep 'MS Win
23d0: 64 6f 77 73 20 28 44 4c 4c 29 27 20 3e 2f 64 65  dows (DLL)' >/de
23e0: 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 09 09  v/null; then....
23f0: 09 09 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 09  ...issane=0.....
2400: 09 66 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09 09  .fi......;;.....
2410: 2a 2d 6b 69 74 64 6c 6c 2d 2a 29 0a 09 09 09 09  *-kitdll-*).....
2420: 09 69 66 20 21 20 66 69 6c 65 20 22 24 7b 63 72  .if ! file "${cr
2430: 65 61 74 65 64 6b 69 74 7d 22 20 7c 20 67 72 65  eatedkit}" | gre
2440: 70 20 27 73 68 61 72 65 64 20 6f 62 6a 65 63 74  p 'shared object
2450: 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74 68  ' >/dev/null; th
2460: 65 6e 0a 09 09 09 09 09 09 69 73 73 61 6e 65 3d  en.......issane=
2470: 30 0a 09 09 09 09 09 66 69 0a 09 09 09 09 09 3b  0......fi......;
2480: 3b 0a 09 09 09 09 2a 2d 77 69 6e 33 32 2d 6e 6f  ;.....*-win32-no
2490: 74 6b 2d 2a 7c 2a 2d 77 69 6e 33 32 2d 2a 2d 6e  tk-*|*-win32-*-n
24a0: 6f 74 6b 2d 2a 29 0a 09 09 09 09 09 69 66 20 21  otk-*)......if !
24b0: 20 66 69 6c 65 20 22 24 7b 63 72 65 61 74 65 64   file "${created
24c0: 6b 69 74 7d 22 20 7c 20 67 72 65 70 20 27 4d 53  kit}" | grep 'MS
24d0: 20 57 69 6e 64 6f 77 73 20 28 63 6f 6e 73 6f 6c   Windows (consol
24e0: 65 29 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20  e)' >/dev/null; 
24f0: 74 68 65 6e 0a 09 09 09 09 09 09 65 63 68 6f 20  then.......echo 
2500: 22 4b 69 74 20 66 61 69 6c 65 64 20 73 61 6e 69  "Kit failed sani
2510: 74 79 20 63 68 65 63 6b 20 66 6f 72 20 62 65 69  ty check for bei
2520: 6e 67 20 61 20 63 6f 6e 73 6f 6c 65 20 61 70 70  ng a console app
2530: 6c 69 63 61 74 69 6f 6e 22 20 3e 26 32 0a 09 09  lication" >&2...
2540: 09 09 09 09 69 73 73 61 6e 65 3d 30 0a 09 09 09  ....issane=0....
2550: 09 09 66 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09  ..fi......;;....
2560: 09 2a 2d 77 69 6e 33 32 2d 2a 29 0a 09 09 09 09  .*-win32-*).....
2570: 09 69 66 20 21 20 66 69 6c 65 20 22 24 7b 63 72  .if ! file "${cr
2580: 65 61 74 65 64 6b 69 74 7d 22 20 7c 20 67 72 65  eatedkit}" | gre
2590: 70 20 27 4d 53 20 57 69 6e 64 6f 77 73 20 28 47  p 'MS Windows (G
25a0: 55 49 29 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 3b  UI)' >/dev/null;
25b0: 20 74 68 65 6e 0a 09 09 09 09 09 09 65 63 68 6f   then.......echo
25c0: 20 22 4b 69 74 20 66 61 69 6c 65 64 20 73 61 6e   "Kit failed san
25d0: 69 74 79 20 63 68 65 63 6b 20 66 6f 72 20 62 65  ity check for be
25e0: 69 6e 67 20 61 20 47 55 49 20 61 70 70 6c 69 63  ing a GUI applic
25f0: 61 74 69 6f 6e 22 20 3e 26 32 0a 09 09 09 09 09  ation" >&2......
2600: 09 69 73 73 61 6e 65 3d 30 0a 09 09 09 09 09 66  .issane=0......f
2610: 69 0a 09 09 09 09 09 3b 3b 0a 09 09 09 65 73 61  i......;;....esa
2620: 63 0a 0a 09 09 09 23 23 20 56 65 72 69 66 79 20  c.....## Verify 
2630: 74 68 65 20 62 75 69 6c 64 20 63 6f 6d 70 6c 65  the build comple
2640: 74 65 64 20 77 69 74 68 6f 75 74 20 77 61 72 6e  ted without warn
2650: 69 6e 67 73 0a 09 09 09 69 66 20 5b 20 22 24 7b  ings....if [ "${
2660: 62 75 69 6c 64 66 61 69 6c 65 64 7d 22 20 3d 20  buildfailed}" = 
2670: 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09  "1" ]; then.....
2680: 65 63 68 6f 20 22 4b 69 74 20 66 61 69 6c 65 64  echo "Kit failed
2690: 20 73 61 6e 69 74 79 20 63 68 65 63 6b 20 66 6f   sanity check fo
26a0: 72 20 42 75 69 6c 64 69 6e 67 22 20 3e 26 32 0a  r Building" >&2.
26b0: 0a 09 09 09 09 69 73 73 61 6e 65 3d 30 0a 09 09  .....issane=0...
26c0: 09 66 69 0a 0a 09 09 09 23 20 4d 61 6b 65 20 6e  .fi.....# Make n
26d0: 6f 74 65 20 6f 66 20 73 61 6e 69 74 79 20 66 61  ote of sanity fa
26e0: 69 6c 75 72 65 0a 09 09 09 69 66 20 5b 20 22 24  ilure....if [ "$
26f0: 7b 69 73 73 61 6e 65 7d 22 20 21 3d 20 22 31 22  {issane}" != "1"
2700: 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 65 63 68   ]; then.....ech
2710: 6f 20 22 4b 69 74 20 66 61 69 6c 65 64 20 73 61  o "Kit failed sa
2720: 6e 69 74 79 20 24 7b 76 65 72 73 69 6f 6e 7d 2f  nity ${version}/
2730: 24 7b 6b 69 74 7d 22 20 3e 26 32 0a 0a 09 09 09  ${kit}" >&2.....
2740: 09 66 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c 65  .failed="${faile
2750: 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24 7b  d} ${version}/${
2760: 6b 69 74 7d 2d 73 61 6e 69 74 79 22 0a 0a 09 09  kit}-sanity"....
2770: 09 09 6d 76 20 22 24 7b 63 72 65 61 74 65 64 6b  ..mv "${createdk
2780: 69 74 7d 22 20 22 24 7b 66 61 69 6c 6f 75 74 70  it}" "${failoutp
2790: 75 74 6e 61 6d 65 7d 22 0a 09 09 09 09 6d 76 20  utname}".....mv 
27a0: 22 24 7b 62 75 69 6c 64 6c 6f 67 7d 22 20 22 24  "${buildlog}" "$
27b0: 7b 66 61 69 6c 62 75 69 6c 64 6c 6f 67 7d 22 0a  {failbuildlog}".
27c0: 0a 09 09 09 09 72 6d 20 2d 66 20 74 63 6c 73 68  .....rm -f tclsh
27d0: 0a 0a 09 09 09 09 63 6f 6e 74 69 6e 75 65 0a 09  ......continue..
27e0: 09 09 66 69 0a 0a 09 09 09 23 20 52 65 6e 61 6d  ..fi.....# Renam
27f0: 65 20 63 72 65 61 74 65 64 20 6b 69 74 20 74 6f  e created kit to
2800: 20 66 69 6e 61 6c 20 64 65 73 74 69 6e 61 74 69   final destinati
2810: 6f 6e 0a 09 09 09 6d 76 20 22 24 7b 63 72 65 61  on....mv "${crea
2820: 74 65 64 6b 69 74 7d 22 20 22 24 7b 6f 75 74 70  tedkit}" "${outp
2830: 75 74 6e 61 6d 65 7d 22 0a 09 09 09 69 66 20 5b  utname}"....if [
2840: 20 2d 66 20 22 74 63 6c 73 68 22 20 5d 3b 20 74   -f "tclsh" ]; t
2850: 68 65 6e 0a 09 09 09 09 6d 76 20 22 74 63 6c 73  hen.....mv "tcls
2860: 68 22 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65  h" "${outputname
2870: 7d 2d 74 63 6c 73 68 22 0a 09 09 09 66 69 0a 0a  }-tclsh"....fi..
2880: 09 09 09 23 20 46 6f 72 20 4b 69 74 44 4c 4c 2c  ...# For KitDLL,
2890: 20 6d 61 6b 65 20 61 20 6e 6f 74 65 20 6f 66 20   make a note of 
28a0: 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 6e 61 6d  the original nam
28b0: 65 0a 09 09 09 69 66 20 5b 20 22 24 7b 6b 69 74  e....if [ "${kit
28c0: 64 6c 6c 7d 22 20 3d 20 22 31 22 20 5d 3b 20 74  dll}" = "1" ]; t
28d0: 68 65 6e 0a 09 09 09 09 65 63 68 6f 20 22 24 7b  hen.....echo "${
28e0: 63 72 65 61 74 65 64 6b 69 74 7d 22 20 3e 20 22  createdkit}" > "
28f0: 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72  ${outputname}-or
2900: 69 67 6e 61 6d 65 22 0a 09 09 09 66 69 0a 09 09  igname"....fi...
2910: 66 69 0a 0a 09 09 23 20 54 65 73 74 20 7a 69 70  fi....# Test zip
2920: 20 73 74 61 74 75 73 0a 09 09 69 66 20 75 6e 7a   status...if unz
2930: 69 70 20 2d 6c 20 22 24 7b 6f 75 74 70 75 74 6e  ip -l "${outputn
2940: 61 6d 65 7d 22 20 32 3e 26 31 20 7c 20 67 72 65  ame}" 2>&1 | gre
2950: 70 20 27 62 6f 6f 74 5c 2e 74 63 6c 27 20 3e 2f  p 'boot\.tcl' >/
2960: 64 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09  dev/null; then..
2970: 09 09 63 61 6e 75 6e 7a 69 70 3d 22 31 22 0a 09  ..canunzip="1"..
2980: 09 65 6c 73 65 0a 09 09 09 63 61 6e 75 6e 7a 69  .else....canunzi
2990: 70 3d 22 30 22 0a 09 09 66 69 0a 0a 09 09 69 66  p="0"...fi....if
29a0: 20 5b 20 22 24 7b 69 73 7a 69 70 7d 22 20 21 3d   [ "${iszip}" !=
29b0: 20 22 24 7b 63 61 6e 75 6e 7a 69 70 7d 22 20 5d   "${canunzip}" ]
29c0: 3b 20 74 68 65 6e 0a 09 09 09 65 63 68 6f 20 22  ; then....echo "
29d0: 46 61 69 6c 65 64 20 74 6f 20 75 6e 7a 69 70 20  Failed to unzip 
29e0: 7a 69 70 6b 69 74 20 6f 72 20 77 61 73 20 61 62  zipkit or was ab
29f0: 6c 65 20 74 6f 20 75 6e 7a 69 70 20 6e 6f 6e 2d  le to unzip non-
2a00: 7a 69 70 6b 69 74 20 24 7b 76 65 72 73 69 6f 6e  zipkit ${version
2a10: 7d 2f 24 7b 6b 69 74 7d 22 20 3e 26 32 0a 0a 09  }/${kit}" >&2...
2a20: 09 09 66 61 69 6c 65 64 3d 22 24 7b 66 61 69 6c  ..failed="${fail
2a30: 65 64 7d 20 24 7b 76 65 72 73 69 6f 6e 7d 2f 24  ed} ${version}/$
2a40: 7b 6b 69 74 7d 2d 7a 69 70 22 0a 0a 09 09 09 63  {kit}-zip".....c
2a50: 6f 6e 74 69 6e 75 65 0a 09 09 66 69 0a 0a 09 09  ontinue...fi....
2a60: 23 20 44 6f 20 6e 6f 74 20 63 6f 6e 74 69 6e 75  # Do not continu
2a70: 65 20 70 61 73 74 20 68 65 72 65 20 66 6f 72 20  e past here for 
2a80: 75 6e 2d 72 75 6e 6e 61 62 6c 65 20 6b 69 74 73  un-runnable kits
2a90: 0a 09 09 69 66 20 5b 20 22 24 7b 72 75 6e 6e 61  ...if [ "${runna
2aa0: 62 6c 65 7d 22 20 21 3d 20 22 31 22 20 5d 3b 20  ble}" != "1" ]; 
2ab0: 74 68 65 6e 0a 09 09 09 63 6f 6e 74 69 6e 75 65  then....continue
2ac0: 0a 09 09 66 69 0a 0a 09 09 23 20 49 66 20 74 68  ...fi....# If th
2ad0: 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 6f 72  e name of the or
2ae0: 69 67 69 6e 61 6c 20 62 75 69 6c 64 20 6d 61 74  iginal build mat
2af0: 74 65 72 73 2c 20 73 79 6d 6c 69 6e 6b 20 69 74  ters, symlink it
2b00: 20 75 70 0a 09 09 69 66 20 5b 20 2d 66 20 22 24   up...if [ -f "$
2b10: 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72 69  {outputname}-ori
2b20: 67 6e 61 6d 65 22 20 5d 3b 20 74 68 65 6e 0a 09  gname" ]; then..
2b30: 09 09 63 72 65 61 74 65 64 6b 69 74 3d 22 24 28  ..createdkit="$(
2b40: 63 61 74 20 22 24 7b 6f 75 74 70 75 74 6e 61 6d  cat "${outputnam
2b50: 65 7d 2d 6f 72 69 67 6e 61 6d 65 22 29 22 0a 0a  e}-origname")"..
2b60: 09 09 09 6c 6e 20 2d 73 20 22 24 7b 6f 75 74 70  ...ln -s "${outp
2b70: 75 74 6e 61 6d 65 7d 22 20 22 24 7b 63 72 65 61  utname}" "${crea
2b80: 74 65 64 6b 69 74 7d 22 0a 09 09 66 69 0a 0a 09  tedkit}"...fi...
2b90: 09 23 20 50 65 72 66 6f 72 6d 20 62 61 74 74 65  .# Perform batte
2ba0: 72 79 20 6f 66 20 74 65 73 74 73 0a 09 09 23 23  ry of tests...##
2bb0: 20 43 6c 65 61 6e 20 74 65 73 74 73 20 6c 6f 67   Clean tests log
2bc0: 0a 09 09 72 6d 20 2d 66 20 22 24 7b 74 65 73 74  ...rm -f "${test
2bd0: 72 65 73 75 6c 74 73 6c 6f 67 7d 22 0a 09 09 66  resultslog}"...f
2be0: 6f 72 20 74 65 73 74 73 63 70 20 69 6e 20 22 24  or testscp in "$
2bf0: 7b 54 45 53 54 44 49 52 7d 22 2f 74 65 73 74 73  {TESTDIR}"/tests
2c00: 2f 2a 2e 74 63 6c 3b 20 64 6f 0a 09 09 09 74 65  /*.tcl; do....te
2c10: 73 74 73 63 70 5f 74 61 67 3d 22 24 28 62 61 73  stscp_tag="$(bas
2c20: 65 6e 61 6d 65 20 22 24 7b 74 65 73 74 73 63 70  ename "${testscp
2c30: 7d 22 20 2e 74 63 6c 29 22 0a 09 09 09 74 65 73  }" .tcl)"....tes
2c40: 74 73 63 70 70 72 65 3d 22 24 28 64 69 72 6e 61  tscppre="$(dirna
2c50: 6d 65 20 22 24 7b 74 65 73 74 73 63 70 7d 22 29  me "${testscp}")
2c60: 2f 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d 2e  /${testscp_tag}.
2c70: 73 68 22 0a 09 09 09 73 63 70 6c 6f 67 66 69 6c  sh"....scplogfil
2c80: 65 3d 22 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d  e="${outputname}
2c90: 2d 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d 2e  -${testscp_tag}.
2ca0: 6c 6f 67 22 0a 0a 09 09 09 23 20 49 66 20 61 20  log".....# If a 
2cb0: 63 6f 6d 6d 61 6e 64 20 69 73 20 72 65 71 75 69  command is requi
2cc0: 72 65 64 20 74 6f 20 73 74 61 72 74 20 74 68 65  red to start the
2cd0: 20 6b 69 74 2c 20 70 72 65 70 61 72 65 20 74 6f   kit, prepare to
2ce0: 20 6b 69 6c 6c 20 69 74 0a 09 09 09 23 20 69 6e   kill it....# in
2cf0: 20 63 61 73 65 20 6f 66 20 74 69 6d 65 6f 75 74   case of timeout
2d00: 2e 0a 09 09 09 23 23 20 54 65 6d 70 6f 72 61 72  .....## Temporar
2d10: 69 6c 79 20 64 69 73 61 62 6c 65 64 20 73 69 6e  ily disabled sin
2d20: 63 65 20 63 75 72 72 65 6e 74 6c 79 20 69 74 20  ce currently it 
2d30: 69 73 20 63 61 75 73 69 6e 67 0a 09 09 09 23 23  is causing....##
2d40: 20 6d 6f 72 65 20 70 72 6f 62 6c 65 6d 73 20 69   more problems i
2d50: 6e 20 74 68 65 20 66 6f 72 6d 20 6f 66 20 74 65  n the form of te
2d60: 73 74 73 20 62 65 69 6e 67 20 6b 69 6c 6c 65 64  sts being killed
2d70: 0a 09 09 09 23 23 20 70 72 65 6d 61 74 75 72 65  ....## premature
2d80: 6c 79 20 74 68 61 6e 20 77 65 20 61 72 65 20 68  ly than we are h
2d90: 61 76 69 6e 67 20 69 73 73 75 65 73 20 77 69 74  aving issues wit
2da0: 68 20 74 65 73 74 73 0a 09 09 09 23 23 20 68 61  h tests....## ha
2db0: 6e 67 69 6e 67 0a 09 09 09 6b 69 74 72 75 6e 6b  nging....kitrunk
2dc0: 69 6c 6c 70 69 64 3d 22 22 0a 09 09 09 69 66 20  illpid=""....if 
2dd0: 5b 20 22 31 22 20 3d 20 22 30 22 20 2d 61 20 2d  [ "1" = "0" -a -
2de0: 6e 20 22 24 7b 6b 69 74 72 75 6e 63 6d 64 7d 22  n "${kitruncmd}"
2df0: 20 5d 3b 20 74 68 65 6e 0a 09 09 09 09 28 0a 09   ]; then.....(..
2e00: 09 09 09 09 73 6c 65 65 70 20 31 32 30 0a 09 09  ....sleep 120...
2e10: 09 09 09 6b 69 6c 6c 61 6c 6c 20 22 24 28 62 61  ...killall "$(ba
2e20: 73 65 6e 61 6d 65 20 22 24 7b 6f 75 74 70 75 74  sename "${output
2e30: 6e 61 6d 65 7d 22 29 22 20 3e 2f 64 65 76 2f 6e  name}")" >/dev/n
2e40: 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a  ull 2>/dev/null.
2e50: 09 09 09 09 29 20 3e 2f 64 65 76 2f 6e 75 6c 6c  ....) >/dev/null
2e60: 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 26 0a 09   2>/dev/null &..
2e70: 09 09 09 6b 69 74 72 75 6e 6b 69 6c 6c 70 69 64  ...kitrunkillpid
2e80: 3d 22 24 21 22 0a 09 09 09 66 69 0a 0a 09 09 09  ="$!"....fi.....
2e90: 28 0a 09 09 09 09 69 66 20 5b 20 2d 66 20 22 24  (.....if [ -f "$
2ea0: 7b 74 65 73 74 73 63 70 70 72 65 7d 22 20 5d 3b  {testscppre}" ];
2eb0: 20 74 68 65 6e 0a 09 09 09 09 09 2e 20 22 24 7b   then....... "${
2ec0: 74 65 73 74 73 63 70 70 72 65 7d 22 0a 09 09 09  testscppre}"....
2ed0: 09 66 69 0a 0a 09 09 09 09 69 66 20 5b 20 22 24  .fi......if [ "$
2ee0: 7b 6b 69 74 64 6c 6c 7d 22 20 3d 20 22 31 22 20  {kitdll}" = "1" 
2ef0: 5d 3b 20 74 68 65 6e 0a 09 09 09 09 09 24 7b 6b  ]; then......${k
2f00: 69 74 72 75 6e 63 6d 64 7d 20 22 24 7b 6f 75 74  itruncmd} "${out
2f10: 70 75 74 6e 61 6d 65 7d 2d 74 63 6c 73 68 22 20  putname}-tclsh" 
2f20: 22 24 7b 74 65 73 74 73 63 70 7d 22 20 22 24 7b  "${testscp}" "${
2f30: 6f 75 74 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b  outputname}" "${
2f40: 6b 69 74 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e  kit}" "${version
2f50: 7d 22 0a 09 09 09 09 65 6c 73 65 0a 09 09 09 09  }".....else.....
2f60: 09 24 7b 6b 69 74 72 75 6e 63 6d 64 7d 20 22 24  .${kitruncmd} "$
2f70: 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 22 20 22 24  {outputname}" "$
2f80: 7b 74 65 73 74 73 63 70 7d 22 20 22 24 7b 6f 75  {testscp}" "${ou
2f90: 74 70 75 74 6e 61 6d 65 7d 22 20 22 24 7b 6b 69  tputname}" "${ki
2fa0: 74 7d 22 20 22 24 7b 76 65 72 73 69 6f 6e 7d 22  t}" "${version}"
2fb0: 0a 09 09 09 09 66 69 0a 09 09 09 29 20 3e 20 22  .....fi....) > "
2fc0: 24 7b 73 63 70 6c 6f 67 66 69 6c 65 7d 22 20 32  ${scplogfile}" 2
2fd0: 3e 26 31 0a 0a 09 09 09 69 66 20 5b 20 22 24 3f  >&1.....if [ "$?
2fe0: 22 20 21 3d 20 22 30 22 20 5d 3b 20 74 68 65 6e  " != "0" ]; then
2ff0: 0a 09 09 09 09 65 63 68 6f 20 22 53 63 72 69 70  .....echo "Scrip
3000: 74 20 66 61 69 6c 65 64 3a 20 24 7b 74 65 73 74  t failed: ${test
3010: 73 63 70 5f 74 61 67 7d 20 6f 6e 20 24 7b 76 65  scp_tag} on ${ve
3020: 72 73 69 6f 6e 7d 2f 24 7b 6b 69 74 7d 22 20 3e  rsion}/${kit}" >
3030: 26 32 0a 0a 09 09 09 09 66 61 69 6c 65 64 3d 22  &2......failed="
3040: 24 7b 66 61 69 6c 65 64 7d 20 24 7b 76 65 72 73  ${failed} ${vers
3050: 69 6f 6e 7d 2f 24 7b 6b 69 74 7d 2d 74 65 73 74  ion}/${kit}-test
3060: 2d 24 7b 74 65 73 74 73 63 70 5f 74 61 67 7d 22  -${testscp_tag}"
3070: 0a 0a 09 09 09 09 65 63 68 6f 20 22 24 7b 74 65  ......echo "${te
3080: 73 74 73 63 70 5f 74 61 67 7d 3a 20 46 41 49 4c  stscp_tag}: FAIL
3090: 22 20 3e 3e 20 20 22 24 7b 74 65 73 74 72 65 73  " >>  "${testres
30a0: 75 6c 74 73 6c 6f 67 7d 22 0a 0a 09 09 09 09 63  ultslog}"......c
30b0: 6f 6e 74 69 6e 75 65 0a 09 09 09 66 69 0a 0a 09  ontinue....fi...
30c0: 09 09 23 20 4b 69 6c 6c 20 74 68 65 20 77 61 74  ..# Kill the wat
30d0: 63 68 64 6f 67 20 66 6f 72 20 74 68 69 73 20 69  chdog for this i
30e0: 74 65 72 61 74 69 6f 6e 0a 09 09 09 69 66 20 5b  teration....if [
30f0: 20 2d 6e 20 22 24 7b 6b 69 74 72 75 6e 6b 69 6c   -n "${kitrunkil
3100: 6c 70 69 64 7d 22 20 5d 3b 20 74 68 65 6e 0a 09  lpid}" ]; then..
3110: 09 09 09 6b 69 6c 6c 20 2d 39 20 22 24 7b 6b 69  ...kill -9 "${ki
3120: 74 72 75 6e 6b 69 6c 6c 70 69 64 7d 22 20 3e 2f  trunkillpid}" >/
3130: 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f  dev/null 2>/dev/
3140: 6e 75 6c 6c 0a 09 09 09 66 69 0a 0a 09 09 09 65  null....fi.....e
3150: 63 68 6f 20 22 24 7b 74 65 73 74 73 63 70 5f 74  cho "${testscp_t
3160: 61 67 7d 3a 20 50 41 53 53 22 20 3e 3e 20 20 22  ag}: PASS" >>  "
3170: 24 7b 74 65 73 74 72 65 73 75 6c 74 73 6c 6f 67  ${testresultslog
3180: 7d 22 0a 0a 09 09 09 72 6d 20 2d 66 20 22 24 7b  }".....rm -f "${
3190: 73 63 70 6c 6f 67 66 69 6c 65 7d 22 0a 09 09 64  scplogfile}"...d
31a0: 6f 6e 65 0a 0a 09 09 69 66 20 5b 20 2d 66 20 22  one....if [ -f "
31b0: 24 7b 6f 75 74 70 75 74 6e 61 6d 65 7d 2d 6f 72  ${outputname}-or
31c0: 69 67 6e 61 6d 65 22 20 5d 3b 20 74 68 65 6e 0a  igname" ]; then.
31d0: 09 09 09 72 6d 20 2d 66 20 22 24 7b 63 72 65 61  ...rm -f "${crea
31e0: 74 65 64 6b 69 74 7d 22 0a 09 09 66 69 0a 09 64  tedkit}"...fi..d
31f0: 6f 6e 65 0a 64 6f 6e 65 0a 0a 69 66 20 5b 20 2d  one.done..if [ -
3200: 6e 20 22 24 7b 66 61 69 6c 65 64 7d 22 20 5d 3b  n "${failed}" ];
3210: 20 74 68 65 6e 0a 09 65 63 68 6f 20 22 46 61 69   then..echo "Fai
3220: 6c 65 64 3a 20 24 7b 66 61 69 6c 65 64 7d 22 0a  led: ${failed}".
3230: 66 69 0a 0a 23 20 54 65 72 6d 69 6e 61 74 65 20  fi..# Terminate 
3240: 58 76 66 62 0a 6b 69 6c 6c 20 2d 39 20 22 24 7b  Xvfb.kill -9 "${
3250: 58 56 46 42 5f 50 49 44 7d 22 0a 0a 23 20 43 6c  XVFB_PID}"..# Cl
3260: 65 61 6e 75 70 0a 2e 2f 6b 69 74 63 72 65 61 74  eanup../kitcreat
3270: 6f 72 20 63 6c 65 61 6e 0a 72 6d 20 2d 66 20 74  or clean.rm -f t
3280: 63 6c 73 68 0a                                   clsh.