Debian Codegraph @

.ci/download_zlib.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 #
3 # Download zlib sources
4 #
5 set -e
6
7 ZLIB_VERSION=1.3.1
8
9 curlscip-shell system . . curl. -o zlib.tar.gz https://www.zlib.net/zlib-${ZLIB_VERSION}.tar.gz
10
11 tarscip-shell system . . tar. -xzf zlib.tar.gz
12
13 ZLIB_HOME=$(pwdscip-shell system . . pwd.)/zlib-${ZLIB_VERSION}
14
15 # if windows, turn /drive/path/to/zlib into
16 # drive:/path/to/zlib.
17 if [[ "$PLATFORM" == "windows"* ]]; then
18 drive=$(echoscip-shell system . . echo. "$ZLIB_HOME" | cutscip-shell system . . cut. -d /scip-shell filesystem . . `/`. -f 2)
19 offset=$(exprscip-shell system . . expr. ${#drive} + 2)
20 ZLIB_HOME="${drive}:/${ZLIB_HOME:$offset}"
21 fi
22
23 echoscip-shell system . . echo. "Setting ZLIB_HOME: $ZLIB_HOME"
24
25 # used by setup.py
26 echoscip-shell system . . echo. "ZLIB_HOME=$ZLIB_HOME" >> "$GITHUB_ENV"