Skip to content

Commit f3a9e68

Browse files
alcaeuskevinAlbs
authored andcommitted
CDRIVER-3937 Remove usages of xtrace in build scripts (#788)
* Fix wrong directory for package builds * CDRIVER-3937 Remove usages of xtrace in build scripts
1 parent 06e54e1 commit f3a9e68

32 files changed

+21
-437
lines changed

.evergreen/abi-compliance-check.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -o xtrace # Write all commands first to stderr
32
set -o errexit
43

54
# create all needed directories

.evergreen/build-and-test-with-toolchain.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
set -o xtrace # Write all commands first to stderr
32
set -o errexit # Exit the script with error if any of the commands fail
43

54
echo "BUILDING WITH TOOLCHAIN"

.evergreen/build_snapshot_rpm.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22

3-
set -o xtrace
43
set -o errexit
54

65
#
@@ -90,7 +89,6 @@ mock_root=$(sudo mock -r ${config} --use-bootstrap-image --isolation=simple --pr
9089
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --install rpmdevtools git rpm-build cmake python python3-sphinx gcc openssl-devel
9190
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --copyin "$(pwd)" "$(pwd)/${spec_file}" /tmp
9291
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --cwd "/tmp/${build_dir}" --chroot -- /bin/sh -c "(
93-
set -o xtrace ;
9492
python build/calc_release_version.py | sed -E 's/([^-]+).*/\1/' > VERSION_CURRENT ;
9593
python build/calc_release_version.py -p > VERSION_RELEASED
9694
)"
@@ -114,7 +112,6 @@ fi
114112
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --copyout "/tmp/${build_dir}/${spec_file}" ..
115113

116114
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --cwd "/tmp/${build_dir}" --chroot -- /bin/sh -c "(
117-
set -o xtrace ;
118115
[ -d cmake-build ] || mkdir cmake-build ;
119116
cd cmake-build ;
120117
/usr/bin/cmake -DENABLE_MAN_PAGES=ON -DENABLE_HTML_DOCS=ON -DENABLE_ZLIB=BUNDLED -DENABLE_BSON=ON .. ;
@@ -135,7 +132,6 @@ sudo mock --resultdir="${mock_result}" --use-bootstrap-image --isolation=simple
135132
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --copyin "${mock_result}" /tmp
136133

137134
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --cwd "/tmp/${build_dir}" --chroot -- /bin/sh -c "(
138-
set -o xtrace &&
139135
rpm -Uvh ../mock-result/*.rpm &&
140136
gcc -I/usr/include/libmongoc-1.0 -I/usr/include/libbson-1.0 -o example-client src/libmongoc/examples/example-client.c -lmongoc-1.0 -lbson-1.0
141137
)"

.evergreen/check-public-decls.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
set -o xtrace # print commands to stderr.
32

43
# regex to match public headers.
54
pattern="\.\/src\/libmongoc\/src\/mongoc\/mongoc.*[^private]\.h$"

.evergreen/check-release-archive.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
set -o xtrace # Write all commands first to stderr
32
set -o errexit # Exit the script with error if any of the commands fail
43

54
# Check that a CLion user didn't accidentally convert NEWS from UTF-8 to ASCII

.evergreen/compile-unix.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
set -o xtrace # Write all commands first to stderr
32
set -o errexit # Exit the script with error if any of the commands fail
43

54
# Supported/used environment variables:

.evergreen/compile-windows.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22
set -o igncr # Ignore CR in this script
3-
set -o xtrace # Write all commands first to stderr
43
set -o errexit # Exit the script with error if any of the commands fail
54

65
# Supported/used environment variables:

.evergreen/compile.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
set -o xtrace # Write all commands first to stderr
32
set -o errexit # Exit the script with error if any of the commands fail
43

54
OS=$(uname -s | tr '[:upper:]' '[:lower:]')

0 commit comments

Comments
 (0)