Skip to content

Commit

Permalink
Do not download mysql-boost-5.7.44.tar.gz if already present #4438
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Jan 24, 2024
1 parent 1516097 commit a3df060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ heaptrack.*
# test deps
test/deps/mariadb-connector-c/mariadb-connector-c-*/
test/deps/mysql-connector-c/mysql-5.7.*/
test/deps/mysql-connector-c/mysql-boost-5.7.*.tar.gz

#tap tests
test/tap/tap/cpp-dotenv/cpp-dotenv-*
Expand Down
7 changes: 4 additions & 3 deletions test/deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ mariadb_client: mariadb-connector-c/mariadb-connector-c/libmariadb/libmariadbcli
# cd mysql-connector-c/mysql-connector-c && cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENSSL_ROOT_DIR=$(DEPS_PATH)/libssl/openssl
# cd mysql-connector-c/mysql-connector-c && CC=${CC} CXX=${CXX} ${MAKE} mysqlclient mysql

mysql-connector-c/mysql-connector-c/libmysql/libmysqlclient.a:
cd mysql-connector-c && curl -C - -O -s https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.44.tar.gz || true
cd mysql-connector-c && wget -nc -q https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.44.tar.gz || true
mysql-connector-c/mysql-boost-5.7.44.tar.gz:
cd mysql-connector-c && curl -C - -O -s https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.44.tar.gz || wget -nc -q https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.44.tar.gz

mysql-connector-c/mysql-connector-c/libmysql/libmysqlclient.a: mysql-connector-c/mysql-boost-5.7.44.tar.gz
cd mysql-connector-c && rm -rf mysql-*/ || true
cd mysql-connector-c && tar -zxf mysql-boost-5.7.*.tar.gz
cd mysql-connector-c && ln -fsT $$(ls -1d mysql-5.7.*/) mysql-connector-c
Expand Down

0 comments on commit a3df060

Please sign in to comment.