Hex Artifact Content

Artifact 0e1d570b890273433f708248cadb9c10116ff825:


0000: 23 21 20 2f 62 69 6e 2f 62 61 73 68 0a 0a 73 65  #! /bin/bash..se
0010: 74 20 2d 65 0a 0a 6d 61 6b 65 20 64 69 73 74 63  t -e..make distc
0020: 6c 65 61 6e 20 7c 7c 20 74 72 75 65 0a 0a 63 61  lean || true..ca
0030: 73 65 20 22 24 28 75 6e 61 6d 65 20 2d 6d 29 22  se "$(uname -m)"
0040: 20 69 6e 0a 09 69 3f 38 36 29 0a 09 09 41 52 43   in..i?86)...ARC
0050: 48 3d 69 78 38 36 0a 09 09 3b 3b 0a 09 78 38 36  H=ix86...;;..x86
0060: 5f 36 34 29 0a 09 09 41 52 43 48 3d 78 38 36 2d  _64)...ARCH=x86-
0070: 36 34 0a 09 09 3b 3b 0a 09 2a 29 0a 09 09 65 63  64...;;..*)...ec
0080: 68 6f 20 22 55 6e 6b 6e 6f 77 6e 20 61 72 63 68  ho "Unknown arch
0090: 22 0a 09 09 65 78 69 74 20 31 0a 09 09 3b 3b 0a  "...exit 1...;;.
00a0: 65 73 61 63 0a 0a 67 63 63 5f 64 65 66 61 75 6c  esac..gcc_defaul
00b0: 74 5f 68 65 61 64 65 72 73 5f 63 3d 22 24 28 65  t_headers_c="$(e
00c0: 63 68 6f 20 27 27 20 7c 20 24 7b 43 50 50 3a 2d  cho '' | ${CPP:-
00d0: 63 70 70 7d 20 2d 76 20 32 3e 26 31 20 7c 20 73  cpp} -v 2>&1 | s
00e0: 65 64 20 27 2f 5e 45 6e 64 20 6f 66 20 73 65 61  ed '/^End of sea
00f0: 72 63 68 20 6c 69 73 74 2f 2c 24 20 64 3b 30 2c  rch list/,$ d;0,
0100: 2f 73 65 61 72 63 68 20 73 74 61 72 74 73 20 68  /search starts h
0110: 65 72 65 3a 24 2f 20 64 27 20 7c 20 67 72 65 70  ere:$/ d' | grep
0120: 20 27 2f 67 63 63 2f 27 20 7c 20 73 65 64 20 27   '/gcc/' | sed '
0130: 73 40 5e 20 2a 40 2d 69 73 79 73 74 65 6d 20 40  s@^ *@-isystem @
0140: 27 20 7c 20 74 72 20 24 27 5c 6e 27 20 27 20 27  ' | tr $'\n' ' '
0150: 29 22 0a 67 6c 69 62 63 64 69 72 3d 22 24 28 72  )".glibcdir="$(r
0160: 65 61 64 6c 69 6e 6b 20 2d 66 20 2f 6f 70 74 2f  eadlink -f /opt/
0170: 61 70 70 66 73 2f 63 6f 72 65 2e 61 70 70 66 73  appfs/core.appfs
0180: 2e 72 6b 65 65 6e 65 2e 6f 72 67 2f 67 6c 69 62  .rkeene.org/glib
0190: 63 2f 70 6c 61 74 66 6f 72 6d 2f 6c 61 74 65 73  c/platform/lates
01a0: 74 29 22 0a 0a 2e 2f 63 6f 6e 66 69 67 75 72 65  t)".../configure
01b0: 20 5c 0a 09 2d 2d 77 69 74 68 2d 70 63 73 63 2d   \..--with-pcsc-
01c0: 68 65 61 64 65 72 73 3d 2f 6f 70 74 2f 61 70 70  headers=/opt/app
01d0: 66 73 2f 72 6b 65 65 6e 65 2e 6f 72 67 2f 70 63  fs/rkeene.org/pc
01e0: 73 63 2d 6c 69 74 65 2f 70 6c 61 74 66 6f 72 6d  sc-lite/platform
01f0: 2f 6c 61 74 65 73 74 2f 69 6e 63 6c 75 64 65 2f  /latest/include/
0200: 50 43 53 43 20 5c 0a 09 2d 2d 77 69 74 68 2d 70  PCSC \..--with-p
0210: 63 73 63 2d 6c 69 62 73 3d 22 2d 4c 24 28 72 65  csc-libs="-L$(re
0220: 61 64 6c 69 6e 6b 20 2d 66 20 2f 6f 70 74 2f 61  adlink -f /opt/a
0230: 70 70 66 73 2f 72 6b 65 65 6e 65 2e 6f 72 67 2f  ppfs/rkeene.org/
0240: 70 63 73 63 2d 6c 69 74 65 2f 70 6c 61 74 66 6f  pcsc-lite/platfo
0250: 72 6d 2f 6c 61 74 65 73 74 2f 6c 69 62 29 20 2d  rm/latest/lib) -
0260: 57 6c 2c 2d 72 70 61 74 68 2c 24 28 72 65 61 64  Wl,-rpath,$(read
0270: 6c 69 6e 6b 20 2d 66 20 2f 6f 70 74 2f 61 70 70  link -f /opt/app
0280: 66 73 2f 72 6b 65 65 6e 65 2e 6f 72 67 2f 70 63  fs/rkeene.org/pc
0290: 73 63 2d 6c 69 74 65 2f 70 6c 61 74 66 6f 72 6d  sc-lite/platform
02a0: 2f 6c 61 74 65 73 74 2f 6c 69 62 29 20 2d 6c 70  /latest/lib) -lp
02b0: 63 73 63 6c 69 74 65 22 20 5c 0a 09 43 43 3d 22  csclite" \..CC="
02c0: 24 7b 43 43 3a 2d 67 63 63 7d 20 2d 6e 6f 73 74  ${CC:-gcc} -nost
02d0: 64 69 6e 63 20 24 7b 67 63 63 5f 64 65 66 61 75  dinc ${gcc_defau
02e0: 6c 74 5f 68 65 61 64 65 72 73 5f 63 7d 20 2d 69  lt_headers_c} -i
02f0: 73 79 73 74 65 6d 20 24 7b 67 6c 69 62 63 64 69  system ${glibcdi
0300: 72 7d 2f 69 6e 63 6c 75 64 65 20 2d 69 73 79 73  r}/include -isys
0310: 74 65 6d 20 2f 6f 70 74 2f 61 70 70 66 73 2f 63  tem /opt/appfs/c
0320: 6f 72 65 2e 61 70 70 66 73 2e 72 6b 65 65 6e 65  ore.appfs.rkeene
0330: 2e 6f 72 67 2f 6c 69 6e 75 78 2d 68 65 61 64 65  .org/linux-heade
0340: 72 73 2f 70 6c 61 74 66 6f 72 6d 2f 32 2e 36 2e  rs/platform/2.6.
0350: 33 32 2e 36 33 2f 69 6e 63 6c 75 64 65 22 20 5c  32.63/include" \
0360: 0a 09 43 50 50 46 4c 41 47 53 3d 22 2d 49 2f 6f  ..CPPFLAGS="-I/o
0370: 70 74 2f 61 70 70 66 73 2f 63 6f 72 65 2e 61 70  pt/appfs/core.ap
0380: 70 66 73 2e 72 6b 65 65 6e 65 2e 6f 72 67 2f 7a  pfs.rkeene.org/z
0390: 6c 69 62 2f 70 6c 61 74 66 6f 72 6d 2f 6c 61 74  lib/platform/lat
03a0: 65 73 74 2f 69 6e 63 6c 75 64 65 22 20 5c 0a 09  est/include" \..
03b0: 4c 44 46 4c 41 47 53 3d 22 2d 4c 24 7b 67 6c 69  LDFLAGS="-L${gli
03c0: 62 63 64 69 72 7d 2f 6c 69 62 20 2d 4c 24 28 72  bcdir}/lib -L$(r
03d0: 65 61 64 6c 69 6e 6b 20 2d 66 20 2f 6f 70 74 2f  eadlink -f /opt/
03e0: 61 70 70 66 73 2f 63 6f 72 65 2e 61 70 70 66 73  appfs/core.appfs
03f0: 2e 72 6b 65 65 6e 65 2e 6f 72 67 2f 7a 6c 69 62  .rkeene.org/zlib
0400: 2f 70 6c 61 74 66 6f 72 6d 2f 6c 61 74 65 73 74  /platform/latest
0410: 2f 6c 69 62 29 20 2d 70 74 68 72 65 61 64 20 2d  /lib) -pthread -
0420: 57 6c 2c 2d 2d 64 79 6e 61 6d 69 63 2d 6c 69 6e  Wl,--dynamic-lin
0430: 6b 65 72 2c 24 7b 67 6c 69 62 63 64 69 72 7d 2f  ker,${glibcdir}/
0440: 6c 69 62 2f 6c 64 2d 6c 69 6e 75 78 2d 24 7b 41  lib/ld-linux-${A
0450: 52 43 48 7d 2e 73 6f 2e 32 22 0a 0a 6d 61 6b 65  RCH}.so.2"..make
0460: 0a                                               .