Hex Artifact Content

Artifact 039781ed6710e054be0af5f9c3e3c4911d0ab424:


0000: 23 21 20 2f 62 69 6e 2f 62 61 73 68 0a 0a 23 20  #! /bin/bash..# 
0010: 54 68 65 20 22 66 69 78 22 20 66 6f 72 20 73 74  The "fix" for st
0020: 72 74 6f 64 3a 0a 23 20 20 20 20 31 2e 20 4f 6e  rtod:.#    1. On
0030: 6c 79 20 61 70 70 6c 69 65 73 20 74 6f 20 53 6f  ly applies to So
0040: 6c 61 72 69 73 20 32 2e 34 20 28 77 68 69 63 68  laris 2.4 (which
0050: 20 6e 6f 6f 6e 65 20 73 68 6f 75 6c 64 20 75 73   noone should us
0060: 65 29 0a 23 20 20 20 20 32 2e 20 44 6f 65 73 20  e).#    2. Does 
0070: 6e 6f 74 20 61 63 74 75 61 6c 6c 79 20 6c 69 6e  not actually lin
0080: 6b 20 61 67 61 69 6e 73 74 20 74 68 65 20 66 69  k against the fi
0090: 6c 65 20 28 77 68 69 63 68 20 69 73 0a 23 20 20  le (which is.#  
00a0: 20 20 20 20 20 6e 6f 74 20 65 76 65 6e 20 69 6e       not even in
00b0: 20 54 6b 20 38 2e 36 2e 31 29 20 74 68 61 74 20   Tk 8.6.1) that 
00c0: 77 6f 75 6c 64 20 73 75 70 70 6c 79 20 73 75 63  would supply suc
00d0: 68 20 61 20 73 79 6d 62 6f 6c 0a 0a 67 72 65 70  h a symbol..grep
00e0: 20 2d 76 20 27 23 64 65 66 69 6e 65 20 73 74 72   -v '#define str
00f0: 74 6f 64 20 66 69 78 73 74 72 74 6f 64 27 20 75  tod fixstrtod' u
0100: 6e 69 78 2f 63 6f 6e 66 69 67 75 72 65 20 3e 20  nix/configure > 
0110: 75 6e 69 78 2f 63 6f 6e 66 69 67 75 72 65 2e 6e  unix/configure.n
0120: 65 77 0a 63 61 74 20 75 6e 69 78 2f 63 6f 6e 66  ew.cat unix/conf
0130: 69 67 75 72 65 2e 6e 65 77 20 3e 20 75 6e 69 78  igure.new > unix
0140: 2f 63 6f 6e 66 69 67 75 72 65 0a 72 6d 20 2d 66  /configure.rm -f
0150: 20 75 6e 69 78 2f 63 6f 6e 66 69 67 75 72 65 2e   unix/configure.
0160: 6e 65 77 0a 0a 67 72 65 70 20 2d 76 20 27 23 64  new..grep -v '#d
0170: 65 66 69 6e 65 20 73 74 72 74 6f 64 20 66 69 78  efine strtod fix
0180: 73 74 72 74 6f 64 27 20 6d 61 63 6f 73 78 2f 63  strtod' macosx/c
0190: 6f 6e 66 69 67 75 72 65 20 3e 20 6d 61 63 6f 73  onfigure > macos
01a0: 78 2f 63 6f 6e 66 69 67 75 72 65 2e 6e 65 77 0a  x/configure.new.
01b0: 63 61 74 20 6d 61 63 6f 73 78 2f 63 6f 6e 66 69  cat macosx/confi
01c0: 67 75 72 65 2e 6e 65 77 20 3e 20 6d 61 63 6f 73  gure.new > macos
01d0: 78 2f 63 6f 6e 66 69 67 75 72 65 0a 72 6d 20 2d  x/configure.rm -
01e0: 66 20 6d 61 63 6f 73 78 2f 63 6f 6e 66 69 67 75  f macosx/configu
01f0: 72 65 2e 6e 65 77 0a 0a                          re.new..