Skip to content

Commit b762ba5

Browse files
committed
bootstrap-tarballs: decreased verboseness
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 8260be1 commit b762ba5

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

build-scripts/bootstrap-tarballs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -x
1+
#!/bin/bash
22

33
_dir=$(readlink -e "$(dirname "$0")")
44
# refactored a few functions into single file scripts for easier development/debugging, see ENT-12741 and ENT-12595
@@ -59,22 +59,30 @@ cd "$BASEDIR"/core
5959
rm -f cfengine-3.*.tar.gz
6060
git rev-parse HEAD > "$BASEDIR"/output/core-commitID
6161
# Configure in order to run "make dist", deleted later.
62-
./configure -C
63-
make dist
62+
echo "$(basename "$0"): Debug: Running configure on core repository..."
63+
run_and_print_on_failure ./configure -C
64+
echo "$(basename "$0"): Debug: Running make dist on core repository"
65+
run_and_print_on_failure make dist
6466
mv cfengine-3.*.tar.gz "$BASEDIR"/output/tarballs/
65-
make distclean
67+
echo "$(basename "$0"): Debug: Running make distclean on core repository"
68+
run_and_print_on_failure make distclean
6669

6770
# Build tarballs from masterfiles repository
6871
cd "$BASEDIR"/masterfiles
6972
rm -f cfengine-masterfiles*.tar.gz
7073
git rev-parse HEAD > "$BASEDIR"/output/masterfiles-commitID
7174
# Configure in order to run "make dist", deleted later.
72-
./configure
73-
make dist # source tarball
74-
make tar-package # package tarball (containing all files as if they were
75-
# installed under "prefix".)
75+
echo "$(basename "$0"): Debug: Running configure on masterfiles repository..."
76+
run_and_print_on_failure ./configure
77+
echo "$(basename "$0"): Debug: Running make dist on masterfiles repository..."
78+
run_and_print_on_failure make dist # source tarball
79+
echo "$(basename "$0"): Debug: Running make tar-package on masterfiles repository..."
80+
run_and_print_on_failure make tar-package # package tarball (containing all
81+
# files as if they were installed
82+
# under "prefix".)
7683
mv cfengine-masterfiles*.tar.gz "$BASEDIR"/output/tarballs/
77-
make distclean
84+
echo "$(basename "$0"): Debug: Running make distclean on masterfiles repository..."
85+
run_and_print_on_failure make distclean
7886

7987
# Compute a checksum list that can be used to verify the integrity of the
8088
# tarballs

0 commit comments

Comments
 (0)