Skip to content

Commit f51a9eb

Browse files
committed
Unpack the release archive appropriately
1 parent 3427c15 commit f51a9eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.evergreen/compile-unix-cmake.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ set -o xtrace # Write all commands first to stderr
33
set -o errexit # Exit the script with error if any of the commands fail
44

55
CMAKE=/opt/cmake/bin/cmake
6+
if command -v gtar 2>/dev/null; then
7+
TAR=gtar
8+
else
9+
TAR=tar
10+
fi
11+
12+
$TAR xf ../mongoc.tar.gz -C . --strip-components=1
613

714
cpus=$(grep -c '^processor' /proc/cpuinfo)
815
MAKEFLAGS="-j${cpus}"

0 commit comments

Comments
 (0)