Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.58 KB | None | 0 0
  1. #!/bin/bash
  2. cd /opt/crosstool/src/build-gmp
  3. ../gmp-5.0.1/configure --disable-shared --enable-static
  4. if [ "$?" -ne "0" ]; then
  5.     echo "=== build script: failed to configure libgmp ==="
  6.     exit 1
  7. fi
  8. make
  9. if [ "$?" -ne "0" ]; then
  10.     echo "=== build script: failed to make libgmp ==="
  11.     exit 1
  12. fi
  13. make check
  14. if [ "$?" -ne "0" ]; then
  15.     echo "=== build script: failed to check libgmp ==="
  16.     exit 1
  17. fi
  18. make install
  19. if [ "$?" -ne "0" ]; then
  20.     echo "=== build script: failed to install libgmp ==="
  21.     exit 1
  22. fi
  23.  
  24. cd /opt/crosstool/src/build-mpfr
  25. ../mpfr-3.0.1/configure --with-gmp=/usr/local
  26. if [ "$?" -ne "0" ]; then
  27.     echo "=== build script: failed to configure libmpfr ==="
  28.     exit 1
  29. fi
  30. make
  31. if [ "$?" -ne "0" ]; then
  32.     echo "=== build script: failed to make libmpfr ==="
  33.     exit 1
  34. fi
  35. make check
  36. if [ "$?" -ne "0" ]; then
  37.     echo "=== build script: failed to check libmpfr ==="
  38.     exit 1
  39. fi
  40. make install
  41. if [ "$?" -ne "0" ]; then
  42.     echo "=== build script: failed to install libmpfr ==="
  43.     exit 1
  44. fi
  45.  
  46. cd /opt/crosstool/src/build-mpc
  47. ../mpc-0.9/configure --with-gmp=/usr/local
  48. if [ "$?" -ne "0" ]; then
  49.     echo "=== build script: failed to configure libmpc ==="
  50.     exit 1
  51. fi
  52. make
  53. if [ "$?" -ne "0" ]; then
  54.     echo "=== build script: failed to make libmpc ==="
  55.     exit 1
  56. fi
  57. make check
  58. if [ "$?" -ne "0" ]; then
  59.     echo "=== build script: failed to check libmpc ==="
  60.     exit 1
  61. fi
  62. make install
  63. if [ "$?" -ne "0" ]; then
  64.     echo "=== build script: failed to install libmpc ==="
  65.     exit 1
  66. fi
  67.  
  68. echo "=== build script: OK ==="
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement