Hex Artifact Content

Artifact 8ef3b61bfc3c0335b797c4f2143a620a3ada7df0:


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 69 6e 2d 63   \..--with-pin-c
01c0: 6f 6d 6d 61 6e 64 2d 78 3d 27 2f 6f 70 74 2f 61  ommand-x='/opt/a
01d0: 70 70 66 73 2f 72 6b 65 65 6e 65 2e 6f 72 67 2f  ppfs/rkeene.org/
01e0: 63 61 63 6b 65 79 2f 70 6c 61 74 66 6f 72 6d 2f  cackey/platform/
01f0: 6c 61 74 65 73 74 2f 62 69 6e 2f 63 61 63 6b 65  latest/bin/cacke
0200: 79 2d 61 73 6b 2d 70 69 6e 27 20 5c 0a 09 2d 2d  y-ask-pin' \..--
0210: 77 69 74 68 2d 70 63 73 63 2d 68 65 61 64 65 72  with-pcsc-header
0220: 73 3d 2f 6f 70 74 2f 61 70 70 66 73 2f 72 6b 65  s=/opt/appfs/rke
0230: 65 6e 65 2e 6f 72 67 2f 70 63 73 63 2d 6c 69 74  ene.org/pcsc-lit
0240: 65 2f 70 6c 61 74 66 6f 72 6d 2f 6c 61 74 65 73  e/platform/lates
0250: 74 2f 69 6e 63 6c 75 64 65 2f 50 43 53 43 20 5c  t/include/PCSC \
0260: 0a 09 2d 2d 77 69 74 68 2d 70 63 73 63 2d 6c 69  ..--with-pcsc-li
0270: 62 73 3d 22 2d 4c 24 28 72 65 61 64 6c 69 6e 6b  bs="-L$(readlink
0280: 20 2d 66 20 2f 6f 70 74 2f 61 70 70 66 73 2f 72   -f /opt/appfs/r
0290: 6b 65 65 6e 65 2e 6f 72 67 2f 70 63 73 63 2d 6c  keene.org/pcsc-l
02a0: 69 74 65 2f 70 6c 61 74 66 6f 72 6d 2f 6c 61 74  ite/platform/lat
02b0: 65 73 74 2f 6c 69 62 29 20 2d 57 6c 2c 2d 72 70  est/lib) -Wl,-rp
02c0: 61 74 68 2c 24 28 72 65 61 64 6c 69 6e 6b 20 2d  ath,$(readlink -
02d0: 66 20 2f 6f 70 74 2f 61 70 70 66 73 2f 72 6b 65  f /opt/appfs/rke
02e0: 65 6e 65 2e 6f 72 67 2f 70 63 73 63 2d 6c 69 74  ene.org/pcsc-lit
02f0: 65 2f 70 6c 61 74 66 6f 72 6d 2f 6c 61 74 65 73  e/platform/lates
0300: 74 2f 6c 69 62 29 20 2d 6c 70 63 73 63 6c 69 74  t/lib) -lpcsclit
0310: 65 22 20 5c 0a 09 43 43 3d 22 24 7b 43 43 3a 2d  e" \..CC="${CC:-
0320: 67 63 63 7d 20 2d 6e 6f 73 74 64 69 6e 63 20 24  gcc} -nostdinc $
0330: 7b 67 63 63 5f 64 65 66 61 75 6c 74 5f 68 65 61  {gcc_default_hea
0340: 64 65 72 73 5f 63 7d 20 2d 69 73 79 73 74 65 6d  ders_c} -isystem
0350: 20 24 7b 67 6c 69 62 63 64 69 72 7d 2f 69 6e 63   ${glibcdir}/inc
0360: 6c 75 64 65 20 2d 69 73 79 73 74 65 6d 20 2f 6f  lude -isystem /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 6c  pfs.rkeene.org/l
0390: 69 6e 75 78 2d 68 65 61 64 65 72 73 2f 70 6c 61  inux-headers/pla
03a0: 74 66 6f 72 6d 2f 32 2e 36 2e 33 32 2e 36 33 2f  tform/2.6.32.63/
03b0: 69 6e 63 6c 75 64 65 22 20 5c 0a 09 43 50 50 46  include" \..CPPF
03c0: 4c 41 47 53 3d 22 2d 49 2f 6f 70 74 2f 61 70 70  LAGS="-I/opt/app
03d0: 66 73 2f 63 6f 72 65 2e 61 70 70 66 73 2e 72 6b  fs/core.appfs.rk
03e0: 65 65 6e 65 2e 6f 72 67 2f 7a 6c 69 62 2f 70 6c  eene.org/zlib/pl
03f0: 61 74 66 6f 72 6d 2f 6c 61 74 65 73 74 2f 69 6e  atform/latest/in
0400: 63 6c 75 64 65 22 20 5c 0a 09 4c 44 46 4c 41 47  clude" \..LDFLAG
0410: 53 3d 22 2d 4c 24 7b 67 6c 69 62 63 64 69 72 7d  S="-L${glibcdir}
0420: 2f 6c 69 62 20 2d 4c 24 28 72 65 61 64 6c 69 6e  /lib -L$(readlin
0430: 6b 20 2d 66 20 2f 6f 70 74 2f 61 70 70 66 73 2f  k -f /opt/appfs/
0440: 63 6f 72 65 2e 61 70 70 66 73 2e 72 6b 65 65 6e  core.appfs.rkeen
0450: 65 2e 6f 72 67 2f 7a 6c 69 62 2f 70 6c 61 74 66  e.org/zlib/platf
0460: 6f 72 6d 2f 6c 61 74 65 73 74 2f 6c 69 62 29 20  orm/latest/lib) 
0470: 2d 70 74 68 72 65 61 64 20 2d 57 6c 2c 2d 2d 64  -pthread -Wl,--d
0480: 79 6e 61 6d 69 63 2d 6c 69 6e 6b 65 72 2c 24 7b  ynamic-linker,${
0490: 67 6c 69 62 63 64 69 72 7d 2f 6c 69 62 2f 6c 64  glibcdir}/lib/ld
04a0: 2d 6c 69 6e 75 78 2d 24 7b 41 52 43 48 7d 2e 73  -linux-${ARCH}.s
04b0: 6f 2e 32 22 0a 0a 6d 61 6b 65 0a                 o.2"..make.