Skip to content

Commit 371ff54

Browse files
committed
Some more info in build.sh and location fix for deb package creation
1 parent 5b1b5d0 commit 371ff54

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lib/build.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ if [[ $UNAME == CYGWIN* ]]; then
1616
WORKSPACE=$(cygpath -u "${WORKSPACE}")
1717
fi
1818

19-
2019
GTEST_DIR="${WORKSPACE}/gtest"
2120
export GTEST_DIR
2221

@@ -62,28 +61,30 @@ fi
6261

6362
eval _CONFIGURE_OPTS=($(python3 ../SapMachine-Infrastructure/lib/get_configure_opts.py $_GIT_TAG $_BUILD_NUMBER $_RELEASE))
6463

64+
set -x
6565
bash ./configure \
6666
--with-boot-jdk=$BOOT_JDK \
6767
"${_CONFIGURE_OPTS[@]}" \
6868
$_DEVKIT_OPTION \
6969
$_CONFIGURE_OS_OPTIONS \
7070
--with-freetype=bundled \
7171
$EXTRA_CONFIGURE_OPTIONS
72+
{ set +x; } 2>/dev/null
7273

7374
# Try to build with legacy-bundles in one step.
7475
# In case there is an error, we give it another try without legacy bundles and try to create the legacy bundle manually afterwards.
7576
# This is needed to support building older source versions that didn't have the legacy-bundles target.
7677
# Drawback: If there is a real build error, we'll restart the build and run into it again.
7778

7879
legacy_bundles_available=1
79-
make JOBS=12 product-bundles legacy-bundles test-image || legacy_bundles_available=0
80+
(set -x && make JOBS=12 product-bundles legacy-bundles test-image || legacy_bundles_available=0)
8081

8182
if [ $legacy_bundles_available -ne 1 ]; then
82-
make JOBS=12 product-bundles test-image
83+
(set -x && make JOBS=12 product-bundles test-image)
8384
if [[ $UNAME == Darwin ]]; then
84-
make JOBS=12 mac-legacy-jre-bundle || true
85+
(set -x && make JOBS=12 mac-legacy-jre-bundle || true)
8586
else
86-
make JOBS=12 legacy-jre-image || true
87+
(set -x && make JOBS=12 legacy-jre-image || true)
8788
fi
8889
fi
8990

lib/make_deb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ def main(argv=None):
9191
utils.remove_if_exists(work_dir)
9292
mkdir(work_dir)
9393

94-
jdk_archive = join(work_dir, jdk_url.rsplit('/', 1)[-1])
95-
9694
if args.download:
95+
jdk_archive = join(work_dir, jdk_url.rsplit('/', 1)[-1])
9796
utils.download_artifact(jdk_url, jdk_archive)
97+
else:
98+
jdk_archive = join(cwd, jdk_url.rsplit('/', 1)[-1])
9899

99100
jdk_dir = join(work_dir, jdk_name)
100101
mkdir(jdk_dir)

0 commit comments

Comments
 (0)