Hex Artifact Content

Artifact 5ddd33e2a4f7e77f8b2256f481712a872c3fee8c:


0000: 23 21 20 2f 62 69 6e 2f 73 68 0a 0a 23 20 53 65  #! /bin/sh..# Se
0010: 74 20 43 20 63 6f 6d 70 69 6c 65 72 20 74 6f 20  t C compiler to 
0020: 64 69 65 74 20 6c 69 62 63 0a 43 43 3d 27 64 69  diet libc.CC='di
0030: 65 74 20 67 63 63 27 0a 65 78 70 6f 72 74 20 43  et gcc'.export C
0040: 43 0a 0a 63 61 74 20 3c 3c 20 5c 5f 5f 45 4f 46  C..cat << \__EOF
0050: 5f 5f 20 3e 20 74 63 6c 2f 70 61 74 63 68 73 63  __ > tcl/patchsc
0060: 72 69 70 74 73 2f 64 69 65 74 6c 69 62 63 2e 73  ripts/dietlibc.s
0070: 68 0a 73 65 64 20 27 73 40 5e 23 20 2a 69 6e 63  h.sed 's@^# *inc
0080: 6c 75 64 65 20 2a 3c 73 74 72 69 6e 67 2e 68 3e  lude *<string.h>
0090: 24 40 26 40 3b 54 20 73 3b 70 3b 73 40 73 74 72  $@&@;T s;p;s@str
00a0: 69 6e 67 2e 68 40 73 74 72 69 6e 67 73 2e 68 40  ing.h@strings.h@
00b0: 3b 3a 73 27 20 67 65 6e 65 72 69 63 2f 74 63 6c  ;:s' generic/tcl
00c0: 49 6e 74 2e 68 20 3e 20 67 65 6e 65 72 69 63 2f  Int.h > generic/
00d0: 74 63 6c 49 6e 74 2e 68 2e 6e 65 77 20 26 26 20  tclInt.h.new && 
00e0: 63 61 74 20 67 65 6e 65 72 69 63 2f 74 63 6c 49  cat generic/tclI
00f0: 6e 74 2e 68 2e 6e 65 77 20 3e 20 67 65 6e 65 72  nt.h.new > gener
0100: 69 63 2f 74 63 6c 49 6e 74 2e 68 0a 72 6d 20 2d  ic/tclInt.h.rm -
0110: 66 20 67 65 6e 65 72 69 63 2f 74 63 6c 49 6e 74  f generic/tclInt
0120: 2e 68 2e 6e 65 77 0a 5f 5f 45 4f 46 5f 5f 0a 0a  .h.new.__EOF__..
0130: 2e 2f 62 75 69 6c 64 2f 6d 61 6b 65 2d 6d 69 6e  ./build/make-min
0140: 6b 69 74 20 22 24 40 22 20 2d 2d 64 69 73 61 62  kit "$@" --disab
0150: 6c 65 2d 6c 6f 61 64 20 2d 2d 64 69 73 61 62 6c  le-load --disabl
0160: 65 2d 74 68 72 65 61 64 73 0a 0a 72 6d 20 2d 66  e-threads..rm -f
0170: 20 74 63 6c 2f 70 61 74 63 68 73 63 72 69 70 74   tcl/patchscript
0180: 73 2f 64 69 65 74 6c 69 62 63 2e 73 68 0a 0a 65  s/dietlibc.sh..e
0190: 78 69 74 20 30 0a                                xit 0.