check-cygwin.sh 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #! /usr/bin/env bash
  2. # If I am doing this I should be running under Cygwin and so /bin/bash
  3. # will exist! However using /usr/bin/env will also be OK.
  4. missing=""
  5. case `uname -a` in
  6. *x86_64*)
  7. other="cygwin32"
  8. ;;
  9. *)
  10. other="cygwin64"
  11. ;;
  12. esac
  13. for p in \
  14. automake \
  15. bash \
  16. bc \
  17. binutils \
  18. bison \
  19. bzip2 \
  20. coreutils \
  21. ${other} \
  22. ${other}-binutils \
  23. ${other}-bzip2 \
  24. ${other}-fontconfig \
  25. ${other}-freetype2 \
  26. ${other}-gcc-core \
  27. ${other}-gcc-g++ \
  28. ${other}-gmp \
  29. ${other}-gnutls \
  30. ${other}-isl \
  31. ${other}-libtool \
  32. ${other}-libX11 \
  33. ${other}-libXext \
  34. ${other}-libXft \
  35. ${other}-libXrandr \
  36. ${other}-libXrender \
  37. ${other}-ncurses \
  38. ${other}-w32api-headers \
  39. ${other}-w32api-runtime \
  40. ${other}-zlib \
  41. ed \
  42. findutils \
  43. flex \
  44. fontconfig \
  45. gcc-core \
  46. gcc-g++ \
  47. gdb \
  48. grep \
  49. gzip \
  50. initscripts \
  51. less \
  52. libfontconfig-devel \
  53. libfontenc-devel \
  54. libfreetype-devel \
  55. libgtk2.0-devel \
  56. libncurses-devel \
  57. libstdc++6 \
  58. libstdc++6-devel \
  59. libX11-devel \
  60. libX11-xcb-devel \
  61. libXaw-devel \
  62. libXcomposite-devel \
  63. libXcursor-devel \
  64. libXdamage-devel \
  65. libXext-devel \
  66. libXfixes-devel \
  67. libXfont-devel \
  68. libXft-devel \
  69. libXm-devel \
  70. libXrandr-devel \
  71. libXrender-devel \
  72. libXRes-devel \
  73. libXt-devel \
  74. make \
  75. mingw64-i686-binutils \
  76. mingw64-i686-gcc-core \
  77. mingw64-i686-gcc-fortran \
  78. mingw64-i686-gcc-g++ \
  79. mingw64-i686-headers \
  80. mingw64-i686-pthreads \
  81. mingw64-i686-runtime \
  82. mingw64-x86_64-binutils \
  83. mingw64-x86_64-gcc-core \
  84. mingw64-x86_64-gcc-fortran \
  85. mingw64-x86_64-gcc-g++ \
  86. mingw64-x86_64-headers \
  87. mingw64-x86_64-pthreads \
  88. mingw64-x86_64-runtime \
  89. patch \
  90. sed \
  91. subversion \
  92. time \
  93. unzip \
  94. w32api-headers \
  95. w32api-runtime \
  96. wget \
  97. which \
  98. zlib-devel \
  99. bash
  100. do
  101. r=`cygcheck -c $p`
  102. if ( echo $r | grep OK > /dev/null)
  103. then
  104. echo $p is OK
  105. else
  106. echo $p is missing or not properly installed
  107. missing="$missing $p"
  108. fi
  109. done
  110. if test "x$missing" != "x"
  111. then
  112. echo "Please (re)install $missing"
  113. fi
  114. exit 0