|
1 |
| -#!/bin/bash -x |
| 1 | +#!/bin/bash |
2 | 2 |
|
3 | 3 | _dir=$(readlink -e "$(dirname "$0")")
|
4 | 4 | # 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
|
59 | 59 | rm -f cfengine-3.*.tar.gz
|
60 | 60 | git rev-parse HEAD > "$BASEDIR"/output/core-commitID
|
61 | 61 | # 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 |
64 | 66 | 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 |
66 | 69 |
|
67 | 70 | # Build tarballs from masterfiles repository
|
68 | 71 | cd "$BASEDIR"/masterfiles
|
69 | 72 | rm -f cfengine-masterfiles*.tar.gz
|
70 | 73 | git rev-parse HEAD > "$BASEDIR"/output/masterfiles-commitID
|
71 | 74 | # 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".) |
76 | 83 | 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 |
78 | 86 |
|
79 | 87 | # Compute a checksum list that can be used to verify the integrity of the
|
80 | 88 | # tarballs
|
|
0 commit comments