Hex Artifact Content

Artifact 2e933cc68692dbdb864df1cf956f9a8064875754:


0000: 23 21 20 2f 62 69 6e 2f 62 61 73 68 0a 0a 54 43  #! /bin/bash..TC
0010: 4c 56 45 52 53 3d 22 38 2e 34 2e 31 39 22 0a 69  LVERS="8.4.19".i
0020: 66 20 65 63 68 6f 20 22 24 31 22 20 7c 20 67 72  f echo "$1" | gr
0030: 65 70 20 27 5e 5b 30 2d 39 5d 5b 30 2d 39 5d 2a  ep '^[0-9][0-9]*
0040: 5c 2e 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 7c  \.' >/dev/null |
0050: 7c 20 65 63 68 6f 20 22 24 31 22 20 7c 20 67 72  | echo "$1" | gr
0060: 65 70 20 27 5e 63 76 73 5f 27 20 3e 2f 64 65 76  ep '^cvs_' >/dev
0070: 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 54 43 4c  /null; then..TCL
0080: 56 45 52 53 3d 22 24 31 22 0a 0a 09 73 68 69 66  VERS="$1"...shif
0090: 74 0a 66 69 0a 65 78 70 6f 72 74 20 54 43 4c 56  t.fi.export TCLV
00a0: 45 52 53 0a 0a 23 20 44 65 74 65 72 6d 69 6e 65  ERS..# Determine
00b0: 20 61 70 70 72 6f 70 72 69 61 74 65 20 6d 6f 64   appropriate mod
00c0: 65 0a 6d 6f 64 65 3d 22 62 75 69 6c 64 22 0a 69  e.mode="build".i
00d0: 66 20 5b 20 22 24 31 22 20 3d 20 22 63 6c 65 61  f [ "$1" = "clea
00e0: 6e 22 20 5d 3b 20 74 68 65 6e 0a 09 73 68 69 66  n" ]; then..shif
00f0: 74 0a 0a 09 6d 6f 64 65 3d 22 63 6c 65 61 6e 22  t...mode="clean"
0100: 0a 66 69 0a 69 66 20 5b 20 22 24 31 22 20 3d 20  .fi.if [ "$1" = 
0110: 22 64 69 73 74 63 6c 65 61 6e 22 20 5d 3b 20 74  "distclean" ]; t
0120: 68 65 6e 0a 09 73 68 69 66 74 0a 0a 09 6d 6f 64  hen..shift...mod
0130: 65 3d 22 64 69 73 74 63 6c 65 61 6e 22 0a 66 69  e="distclean".fi
0140: 0a 0a 23 20 44 65 66 69 6e 65 20 74 68 65 20 6c  ..# Define the l
0150: 69 73 74 20 6f 66 20 61 6c 6c 20 70 61 63 6b 61  ist of all packa
0160: 67 65 73 2c 20 66 6f 72 20 63 6c 65 61 6e 69 6e  ges, for cleanin
0170: 67 20 70 75 72 70 6f 73 65 73 0a 4b 49 54 43 52  g purposes.KITCR
0180: 45 41 54 4f 52 5f 41 4c 4c 50 4b 47 53 3d 22 6b  EATOR_ALLPKGS="k
0190: 69 74 73 68 20 74 63 6c 20 74 63 6c 76 66 73 20  itsh tcl tclvfs 
01a0: 7a 6c 69 62 20 74 6b 20 69 74 63 6c 20 6d 6b 34  zlib tk itcl mk4
01b0: 74 63 6c 20 74 68 72 65 61 64 22 0a 66 6f 72 20  tcl thread".for 
01c0: 70 6b 67 20 69 6e 20 24 7b 4b 49 54 43 52 45 41  pkg in ${KITCREA
01d0: 54 4f 52 5f 41 4c 4c 50 4b 47 53 7d 3b 20 64 6f  TOR_ALLPKGS}; do
01e0: 0a 09 72 6d 20 2d 66 20 22 24 7b 70 6b 67 7d 2f  ..rm -f "${pkg}/
01f0: 62 75 69 6c 64 2e 6c 6f 67 22 0a 09 72 6d 20 2d  build.log"..rm -
0200: 72 66 20 22 24 7b 70 6b 67 7d 2f 6f 75 74 22 20  rf "${pkg}/out" 
0210: 22 24 7b 70 6b 67 7d 2f 69 6e 73 74 22 20 22 24  "${pkg}/inst" "$
0220: 7b 70 6b 67 7d 2f 62 75 69 6c 64 22 0a 0a 09 72  {pkg}/build"...r
0230: 6d 20 2d 72 66 20 22 24 7b 70 6b 67 7d 2f 73 72  m -rf "${pkg}/sr
0240: 63 22 2f 74 6d 70 2d 2a 0a 0a 09 69 66 20 5b 20  c"/tmp-*...if [ 
0250: 22 24 7b 6d 6f 64 65 7d 22 20 3d 20 22 64 69 73  "${mode}" = "dis
0260: 74 63 6c 65 61 6e 22 20 5d 3b 20 74 68 65 6e 0a  tclean" ]; then.
0270: 09 09 72 6d 20 2d 72 66 20 22 24 7b 70 6b 67 7d  ..rm -rf "${pkg}
0280: 2f 73 72 63 22 0a 09 66 69 0a 64 6f 6e 65 0a 0a  /src"..fi.done..
0290: 23 20 57 65 27 72 65 20 61 6c 6c 20 64 6f 6e 65  # We're all done
02a0: 20 69 66 20 77 65 27 72 65 20 69 6e 20 63 6c 65   if we're in cle
02b0: 61 6e 20 6f 72 20 64 69 73 74 63 6c 65 61 6e 20  an or distclean 
02c0: 6d 6f 64 65 0a 69 66 20 5b 20 22 24 7b 6d 6f 64  mode.if [ "${mod
02d0: 65 7d 22 20 3d 20 22 63 6c 65 61 6e 22 20 2d 6f  e}" = "clean" -o
02e0: 20 22 24 7b 6d 6f 64 65 7d 22 20 3d 20 22 64 69   "${mode}" = "di
02f0: 73 74 63 6c 65 61 6e 22 20 5d 3b 20 74 68 65 6e  stclean" ]; then
0300: 0a 09 72 6d 20 2d 66 20 74 63 6c 6b 69 74 2d 2a  ..rm -f tclkit-*
0310: 0a 09 72 6d 20 2d 66 20 6c 69 62 74 63 6c 6b 69  ..rm -f libtclki
0320: 74 2a 2e 2a 0a 0a 09 65 78 69 74 20 30 0a 66 69  t*.*...exit 0.fi
0330: 0a 0a 23 20 41 64 64 20 70 61 63 6b 61 67 65 73  ..# Add packages
0340: 20 69 6d 70 6c 69 65 64 20 62 79 20 74 68 65 20   implied by the 
0350: 61 64 64 69 74 69 6f 6e 61 6c 20 61 72 67 75 6d  additional argum
0360: 65 6e 74 73 0a 69 66 20 5b 20 2d 7a 20 22 24 7b  ents.if [ -z "${
0370: 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d  KITCREATOR_PKGS}
0380: 22 20 5d 3b 20 74 68 65 6e 0a 09 4b 49 54 43 52  " ]; then..KITCR
0390: 45 41 54 4f 52 5f 50 4b 47 53 3d 22 74 6b 20 69  EATOR_PKGS="tk i
03a0: 74 63 6c 20 6d 6b 34 74 63 6c 22 0a 66 69 0a 0a  tcl mk4tcl".fi..
03b0: 43 4f 4e 46 49 47 55 52 45 45 58 54 52 41 3d 22  CONFIGUREEXTRA="
03c0: 24 40 22 0a 65 78 70 6f 72 74 20 43 4f 4e 46 49  $@".export CONFI
03d0: 47 55 52 45 45 58 54 52 41 0a 0a 69 66 20 65 63  GUREEXTRA..if ec
03e0: 68 6f 20 22 20 24 7b 43 4f 4e 46 49 47 55 52 45  ho " ${CONFIGURE
03f0: 45 58 54 52 41 7d 20 22 20 7c 20 67 72 65 70 20  EXTRA} " | grep 
0400: 27 20 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 65 61  ' --enable-threa
0410: 64 73 27 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 32  ds' >/dev/null 2
0420: 3e 2f 64 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e  >/dev/null; then
0430: 0a 09 4b 49 54 43 52 45 41 54 4f 52 5f 50 4b 47  ..KITCREATOR_PKG
0440: 53 3d 22 24 7b 4b 49 54 43 52 45 41 54 4f 52 5f  S="${KITCREATOR_
0450: 50 4b 47 53 7d 20 74 68 72 65 61 64 22 0a 66 69  PKGS} thread".fi
0460: 0a 0a 23 20 53 65 74 20 64 65 66 61 75 6c 74 20  ..# Set default 
0470: 74 61 72 67 65 74 0a 4b 49 54 54 41 52 47 45 54  target.KITTARGET
0480: 3d 22 6b 69 74 73 68 22 0a 65 78 70 6f 72 74 20  ="kitsh".export 
0490: 4b 49 54 54 41 52 47 45 54 0a 0a 23 20 46 69 78  KITTARGET..# Fix
04a0: 20 75 70 20 70 61 63 6b 61 67 65 20 6c 69 73 74   up package list
04b0: 0a 23 23 20 49 66 20 62 75 69 6c 64 69 6e 67 20  .## If building 
04c0: 4b 69 74 44 4c 4c 2c 20 64 65 66 69 6e 65 20 69  KitDLL, define i
04d0: 74 20 61 73 20 6f 75 72 20 74 61 72 67 65 74 0a  t as our target.
04e0: 69 66 20 65 63 68 6f 20 22 20 24 7b 4b 49 54 43  if echo " ${KITC
04f0: 52 45 41 54 4f 52 5f 50 4b 47 53 7d 20 22 20 7c  REATOR_PKGS} " |
0500: 20 67 72 65 70 20 27 20 6b 69 74 64 6c 6c 20 27   grep ' kitdll '
0510: 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64   >/dev/null 2>/d
0520: 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 09 4b  ev/null; then..K
0530: 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 3d 22  ITCREATOR_PKGS="
0540: 24 28 65 63 68 6f 20 22 20 24 7b 4b 49 54 43 52  $(echo " ${KITCR
0550: 45 41 54 4f 52 5f 50 4b 47 53 7d 20 22 20 7c 20  EATOR_PKGS} " | 
0560: 73 65 64 20 27 73 40 20 6b 69 74 64 6c 6c 20 40  sed 's@ kitdll @
0570: 20 40 67 3b 73 40 5e 20 20 2a 40 40 3b 73 40 20   @g;s@^  *@@;s@ 
0580: 20 2a 24 40 40 3b 73 40 20 20 20 2a 40 20 40 67   *$@@;s@   *@ @g
0590: 27 29 22 0a 09 4b 49 54 54 41 52 47 45 54 3d 22  ')"..KITTARGET="
05a0: 6b 69 74 64 6c 6c 22 0a 66 69 0a 0a 23 23 20 49  kitdll".fi..## I
05b0: 66 20 62 75 69 6c 64 69 6e 67 20 4b 69 74 44 4c  f building KitDL
05c0: 4c 20 61 6e 64 20 54 6b 2c 20 6d 75 73 74 20 64  L and Tk, must d
05d0: 6f 20 54 6b 20 73 74 61 74 69 63 61 6c 6c 79 0a  o Tk statically.
05e0: 23 23 23 20 28 57 65 6c 6c 2c 20 77 65 20 64 6f  ### (Well, we do
05f0: 6e 27 74 20 48 41 56 45 20 74 6f 2c 20 62 75 74  n't HAVE to, but
0600: 20 69 74 20 77 6f 75 6c 64 20 64 65 66 65 61 74   it would defeat
0610: 20 6d 75 63 68 20 6f 66 20 74 68 65 20 70 75 72   much of the pur
0620: 70 6f 73 65 29 0a 69 66 20 5b 20 22 24 7b 4b 49  pose).if [ "${KI
0630: 54 54 41 52 47 45 54 7d 22 20 3d 20 22 6b 69 74  TTARGET}" = "kit
0640: 64 6c 6c 22 20 5d 3b 20 74 68 65 6e 0a 09 69 66  dll" ]; then..if
0650: 20 65 63 68 6f 20 22 20 24 7b 4b 49 54 43 52 45   echo " ${KITCRE
0660: 41 54 4f 52 5f 50 4b 47 53 7d 20 22 20 7c 20 67  ATOR_PKGS} " | g
0670: 72 65 70 20 27 20 74 6b 20 27 20 3e 2f 64 65 76  rep ' tk ' >/dev
0680: 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c  /null 2>/dev/nul
0690: 6c 3b 20 74 68 65 6e 0a 09 09 69 66 20 5b 20 22  l; then...if [ "
06a0: 24 7b 53 54 41 54 49 43 54 4b 7d 22 20 21 3d 20  ${STATICTK}" != 
06b0: 22 31 22 20 2d 61 20 22 24 7b 53 54 41 54 49 43  "1" -a "${STATIC
06c0: 54 4b 7d 22 20 21 3d 20 22 2d 31 22 20 5d 3b 20  TK}" != "-1" ]; 
06d0: 74 68 65 6e 0a 09 09 09 65 63 68 6f 20 27 57 61  then....echo 'Wa
06e0: 72 6e 69 6e 67 3a 20 4c 69 6e 6b 69 6e 67 20 54  rning: Linking T
06f0: 6b 20 73 74 61 74 69 63 61 6c 6c 79 20 62 65 63  k statically bec
0700: 61 75 73 65 20 79 6f 75 20 61 72 65 20 62 75 69  ause you are bui
0710: 6c 64 69 6e 67 20 4b 69 74 44 4c 4c 27 20 32 3e  lding KitDLL' 2>
0720: 26 31 0a 09 09 09 65 63 68 6f 20 27 20 20 20 20  &1....echo '    
0730: 20 20 20 20 20 53 65 74 20 53 54 41 54 49 43 54       Set STATICT
0740: 4b 20 74 6f 20 2d 31 20 69 66 20 79 6f 75 20 72  K to -1 if you r
0750: 65 61 6c 6c 79 20 77 61 6e 74 20 74 6f 20 6c 69  eally want to li
0760: 6e 6b 20 54 6b 20 64 79 6e 61 6d 69 63 61 6c 6c  nk Tk dynamicall
0770: 79 2e 27 20 3e 26 32 0a 0a 09 09 09 53 54 41 54  y.' >&2.....STAT
0780: 49 43 54 4b 3d 22 31 22 0a 09 09 09 65 78 70 6f  ICTK="1"....expo
0790: 72 74 20 53 54 41 54 49 43 54 4b 0a 09 09 66 69  rt STATICTK...fi
07a0: 0a 0a 09 09 69 66 20 5b 20 2d 7a 20 22 24 7b 53  ....if [ -z "${S
07b0: 54 41 54 49 43 4d 4b 34 7d 22 20 5d 3b 20 74 68  TATICMK4}" ]; th
07c0: 65 6e 0a 09 09 09 65 63 68 6f 20 27 57 61 72 6e  en....echo 'Warn
07d0: 69 6e 67 3a 20 4c 69 6e 6b 69 6e 67 20 4d 6b 34  ing: Linking Mk4
07e0: 74 63 6c 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20  tcl dynamically 
07f0: 62 65 63 61 75 73 65 20 79 6f 75 20 61 72 65 20  because you are 
0800: 62 75 69 6c 64 69 6e 67 20 4b 69 74 44 4c 4c 27  building KitDLL'
0810: 20 32 3e 26 31 0a 09 09 09 65 63 68 6f 20 27 20   2>&1....echo ' 
0820: 20 20 20 20 20 20 20 20 53 65 74 20 53 54 41 54          Set STAT
0830: 49 43 4d 4b 34 20 74 6f 20 31 20 69 66 20 79 6f  ICMK4 to 1 if yo
0840: 75 20 72 65 61 6c 6c 79 20 77 61 6e 74 20 74 6f  u really want to
0850: 20 6c 69 6e 6b 20 4d 6b 34 74 63 6c 20 73 74 61   link Mk4tcl sta
0860: 74 69 63 61 6c 6c 79 2e 27 20 3e 26 32 0a 0a 09  tically.' >&2...
0870: 09 09 53 54 41 54 49 43 4d 4b 34 3d 22 30 22 0a  ..STATICMK4="0".
0880: 09 09 09 65 78 70 6f 72 74 20 53 54 41 54 49 43  ...export STATIC
0890: 4d 4b 34 0a 09 09 66 69 0a 09 66 69 0a 66 69 0a  MK4...fi..fi.fi.
08a0: 0a 23 20 46 69 6e 64 20 57 69 6e 64 6f 77 73 20  .# Find Windows 
08b0: 72 65 73 6f 75 72 63 65 2d 72 65 6c 61 74 65 64  resource-related
08c0: 20 66 69 6c 65 73 0a 69 66 20 5b 20 2d 66 20 22   files.if [ -f "
08d0: 6b 69 74 2e 69 63 6f 22 20 5d 3b 20 74 68 65 6e  kit.ico" ]; then
08e0: 0a 09 4b 49 54 43 52 45 41 54 4f 52 5f 49 43 4f  ..KITCREATOR_ICO
08f0: 4e 3d 22 24 28 70 77 64 29 2f 6b 69 74 2e 69 63  N="$(pwd)/kit.ic
0900: 6f 22 0a 65 6c 73 65 0a 09 4b 49 54 43 52 45 41  o".else..KITCREA
0910: 54 4f 52 5f 49 43 4f 4e 3d 22 24 28 65 63 68 6f  TOR_ICON="$(echo
0920: 20 22 24 28 70 77 64 29 2f 6b 69 74 73 68 2f 62   "$(pwd)/kitsh/b
0930: 75 69 6c 64 73 72 63 22 2f 6b 69 74 73 68 2d 2a  uildsrc"/kitsh-*
0940: 2f 6b 69 74 2e 69 63 6f 29 22 0a 66 69 0a 69 66  /kit.ico)".fi.if
0950: 20 5b 20 2d 66 20 22 6b 69 74 2e 72 63 22 20 5d   [ -f "kit.rc" ]
0960: 3b 20 74 68 65 6e 0a 09 4b 49 54 43 52 45 41 54  ; then..KITCREAT
0970: 4f 52 5f 52 43 3d 22 24 28 70 77 64 29 2f 6b 69  OR_RC="$(pwd)/ki
0980: 74 2e 72 63 22 0a 65 6c 73 65 0a 09 4b 49 54 43  t.rc".else..KITC
0990: 52 45 41 54 4f 52 5f 52 43 3d 22 24 28 65 63 68  REATOR_RC="$(ech
09a0: 6f 20 22 24 28 70 77 64 29 2f 6b 69 74 73 68 2f  o "$(pwd)/kitsh/
09b0: 62 75 69 6c 64 73 72 63 22 2f 6b 69 74 73 68 2d  buildsrc"/kitsh-
09c0: 2a 2f 6b 69 74 2e 72 63 29 22 0a 66 69 0a 65 78  */kit.rc)".fi.ex
09d0: 70 6f 72 74 20 4b 49 54 43 52 45 41 54 4f 52 5f  port KITCREATOR_
09e0: 49 43 4f 4e 20 4b 49 54 43 52 45 41 54 4f 52 5f  ICON KITCREATOR_
09f0: 52 43 0a 0a 66 61 69 6c 65 64 70 6b 67 73 3d 22  RC..failedpkgs="
0a00: 22 0a 62 75 69 6c 64 66 61 69 6c 65 64 3d 22 30  ".buildfailed="0
0a10: 22 0a 66 6f 72 20 70 6b 67 20 69 6e 20 74 63 6c  ".for pkg in tcl
0a20: 20 74 63 6c 76 66 73 20 7a 6c 69 62 20 24 7b 4b   tclvfs zlib ${K
0a30: 49 54 43 52 45 41 54 4f 52 5f 50 4b 47 53 7d 20  ITCREATOR_PKGS} 
0a40: 6b 69 74 73 68 3b 20 64 6f 0a 09 65 63 68 6f 20  kitsh; do..echo 
0a50: 2d 6e 20 22 42 75 69 6c 64 69 6e 67 20 24 7b 70  -n "Building ${p
0a60: 6b 67 7d 20 2e 2e 2e 22 0a 0a 09 66 61 69 6c 65  kg} ..."...faile
0a70: 64 3d 22 30 22 0a 09 28 0a 09 09 63 64 20 22 24  d="0"..(...cd "$
0a80: 7b 70 6b 67 7d 22 20 3e 2f 64 65 76 2f 6e 75 6c  {pkg}" >/dev/nul
0a90: 6c 20 32 3e 2f 64 65 76 2f 6e 75 6c 6c 20 7c 7c  l 2>/dev/null ||
0aa0: 20 65 78 69 74 20 31 0a 0a 09 09 2e 2f 62 75 69   exit 1...../bui
0ab0: 6c 64 2e 73 68 20 3e 20 62 75 69 6c 64 2e 6c 6f  ld.sh > build.lo
0ac0: 67 20 32 3e 26 31 20 7c 7c 20 65 78 69 74 20 31  g 2>&1 || exit 1
0ad0: 0a 09 29 20 7c 7c 20 66 61 69 6c 65 64 3d 22 31  ..) || failed="1
0ae0: 22 0a 0a 09 69 66 20 5b 20 22 24 7b 66 61 69 6c  "...if [ "${fail
0af0: 65 64 7d 22 20 3d 20 22 31 22 20 5d 3b 20 74 68  ed}" = "1" ]; th
0b00: 65 6e 0a 09 09 65 63 68 6f 20 22 20 66 61 69 6c  en...echo " fail
0b10: 65 64 2e 22 0a 09 09 66 61 69 6c 65 64 70 6b 67  ed."...failedpkg
0b20: 73 3d 22 24 7b 66 61 69 6c 65 64 70 6b 67 73 7d  s="${failedpkgs}
0b30: 20 24 7b 70 6b 67 7d 22 0a 09 65 6c 73 65 0a 09   ${pkg}"..else..
0b40: 09 65 63 68 6f 20 22 20 64 6f 6e 65 2e 22 0a 09  .echo " done."..
0b50: 66 69 0a 0a 09 63 61 73 65 20 22 24 7b 70 6b 67  fi...case "${pkg
0b60: 7d 22 20 69 6e 0a 09 09 74 63 6c 29 0a 09 09 09  }" in...tcl)....
0b70: 54 43 4c 43 4f 4e 46 49 47 44 49 52 3d 24 28 66  TCLCONFIGDIR=$(f
0b80: 69 6e 64 20 22 24 28 70 77 64 29 2f 74 63 6c 2f  ind "$(pwd)/tcl/
0b90: 62 75 69 6c 64 22 20 2d 6e 61 6d 65 20 74 63 6c  build" -name tcl
0ba0: 43 6f 6e 66 69 67 2e 73 68 20 7c 20 68 65 61 64  Config.sh | head
0bb0: 20 2d 31 20 7c 20 73 65 64 20 27 73 40 2f 5b 5e   -1 | sed 's@/[^
0bc0: 2f 5d 2a 24 40 40 27 29 0a 09 09 09 65 78 70 6f  /]*$@@')....expo
0bd0: 72 74 20 54 43 4c 43 4f 4e 46 49 47 44 49 52 0a  rt TCLCONFIGDIR.
0be0: 09 09 09 3b 3b 0a 09 65 73 61 63 0a 0a 09 69 66  ...;;..esac...if
0bf0: 20 5b 20 22 24 7b 66 61 69 6c 65 64 7d 22 20 3d   [ "${failed}" =
0c00: 20 22 31 22 20 5d 3b 20 74 68 65 6e 0a 09 09 62   "1" ]; then...b
0c10: 75 69 6c 64 66 61 69 6c 65 64 3d 22 31 22 0a 09  uildfailed="1"..
0c20: 66 69 0a 64 6f 6e 65 0a 0a 69 66 20 5b 20 2d 6e  fi.done..if [ -n
0c30: 20 22 24 7b 66 61 69 6c 65 64 70 6b 67 73 7d 22   "${failedpkgs}"
0c40: 20 5d 3b 20 74 68 65 6e 0a 09 65 63 68 6f 20 22   ]; then..echo "
0c50: 46 61 69 6c 65 64 20 74 6f 20 62 75 69 6c 64 3a  Failed to build:
0c60: 24 7b 66 61 69 6c 65 64 70 6b 67 73 7d 22 0a 66  ${failedpkgs}".f
0c70: 69 0a 0a 69 66 20 5b 20 22 24 7b 62 75 69 6c 64  i..if [ "${build
0c80: 66 61 69 6c 65 64 7d 22 20 21 3d 20 22 30 22 20  failed}" != "0" 
0c90: 5d 3b 20 74 68 65 6e 0a 09 65 63 68 6f 20 27 57  ]; then..echo 'W
0ca0: 41 52 4e 49 4e 47 3a 20 42 75 69 6c 64 20 69 73  ARNING: Build is
0cb0: 20 6c 69 6b 65 6c 79 20 69 6e 63 6f 6d 70 6c 65   likely incomple
0cc0: 74 65 20 6f 72 20 66 61 69 6c 65 64 2e 27 20 3e  te or failed.' >
0cd0: 26 32 0a 66 69 0a 0a 63 70 20 27 6b 69 74 73 68  &2.fi..cp 'kitsh
0ce0: 2f 62 75 69 6c 64 27 2f 6b 69 74 73 68 2d 2a 2f  /build'/kitsh-*/
0cf0: 6c 69 62 74 63 6c 6b 69 74 2a 20 2e 20 3e 2f 64  libtclkit* . >/d
0d00: 65 76 2f 6e 75 6c 6c 20 32 3e 2f 64 65 76 2f 6e  ev/null 2>/dev/n
0d10: 75 6c 6c 0a 63 70 20 27 6b 69 74 73 68 2f 62 75  ull.cp 'kitsh/bu
0d20: 69 6c 64 27 2f 6b 69 74 73 68 2d 2a 2f 6b 69 74  ild'/kitsh-*/kit
0d30: 20 22 74 63 6c 6b 69 74 2d 24 7b 54 43 4c 56 45   "tclkit-${TCLVE
0d40: 52 53 7d 22 20 3e 2f 64 65 76 2f 6e 75 6c 6c 20  RS}" >/dev/null 
0d50: 32 3e 2f 64 65 76 2f 6e 75 6c 6c 0a 0a 65 78 69  2>/dev/null..exi
0d60: 74 20 22 24 7b 62 75 69 6c 64 66 61 69 6c 65 64  t "${buildfailed
0d70: 7d 22 0a                                         }".