Commit abc9303d7388e3bda7c2db7940dc51f9aa7968b6
1 parent
2982602b
Exists in
develop
Debugging macos build.
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
mac/ci-build.sh
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | -echo "------------------ CURL" | ||
| 4 | -brew --prefix curl | ||
| 5 | - | ||
| 6 | -echo "------------------ OpenSSL " | ||
| 7 | -brew --prefix openssl | 3 | +#export LIBCURL_LIBS="-L$(brew --prefix curl)/lib" |
| 4 | +#export LIBCURL_CFLAGS="-I$(brew --prefix curl)/include" | ||
| 8 | 5 | ||
| 6 | +export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" | ||
| 9 | PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) | 7 | PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) |
| 10 | VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) | 8 | VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) |
| 11 | 9 | ||
| 10 | +echo "${PKG_CONFIG_PATH}" | ||
| 11 | +pkg-config --list-all | ||
| 12 | + | ||
| 12 | ./autogen.sh --prefix="/${PROJECT_NAME}/${VERSION}" | 13 | ./autogen.sh --prefix="/${PROJECT_NAME}/${VERSION}" |
| 13 | if [ "$?" != "0" ]; then | 14 | if [ "$?" != "0" ]; then |
| 14 | exit -1 | 15 | exit -1 |
| 15 | fi | 16 | fi |
| 16 | 17 | ||
| 17 | make all | 18 | make all |
| 18 | -./autogen.sh | ||
| 19 | if [ "$?" != "0" ]; then | 19 | if [ "$?" != "0" ]; then |
| 20 | exit -1 | 20 | exit -1 |
| 21 | fi | 21 | fi |