From 829ee7a256a5441ffac8e60ce171fa0941582aec Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Thu, 1 Feb 2024 16:41:23 -0500 Subject: [PATCH] generate_source_tarball.sh: Fix whitespace - Related: RHEL-27133 --- generate_source_tarball.sh | 28 ++++++++++++++-------------- java-17-openjdk.spec | 1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/generate_source_tarball.sh b/generate_source_tarball.sh index 5dc6d60..13a3323 100755 --- a/generate_source_tarball.sh +++ b/generate_source_tarball.sh @@ -178,20 +178,20 @@ echo -e "\tTO_COMPRESS: ${TO_COMPRESS}" echo -e "\tBOOT_JDK: ${BOOT_JDK}" if [ -d "${FILE_NAME_ROOT}" ] ; then - echo "exists exists exists exists exists exists exists " - echo "reusing reusing reusing reusing reusing reusing " - echo "${FILE_NAME_ROOT}" - STAT_TIME="$(stat --format=%Y "${FILE_NAME_ROOT}")" - TAR_TIME="$(date --date=@"${STAT_TIME}" --iso-8601=seconds)" + echo "exists exists exists exists exists exists exists " + echo "reusing reusing reusing reusing reusing reusing " + echo "${FILE_NAME_ROOT}" + STAT_TIME="$(stat --format=%Y "${FILE_NAME_ROOT}")" + TAR_TIME="$(date --date=@"${STAT_TIME}" --iso-8601=seconds)" else - mkdir "${FILE_NAME_ROOT}" - pushd "${FILE_NAME_ROOT}" - echo "Cloning ${VERSION} root repository from ${REPO_ROOT}" - git clone --depth=1 -b "${VERSION}" "${REPO_ROOT}" "${VERSION}" - pushd "${VERSION}" - TAR_TIME="$(git log --max-count 1 --format=%cI)" + mkdir "${FILE_NAME_ROOT}" + pushd "${FILE_NAME_ROOT}" + echo "Cloning ${VERSION} root repository from ${REPO_ROOT}" + git clone --depth=1 -b "${VERSION}" "${REPO_ROOT}" "${VERSION}" + pushd "${VERSION}" + TAR_TIME="$(git log --max-count 1 --format=%cI)" + popd popd - popd fi pushd "${FILE_NAME_ROOT}" EA_PART="$(git tag --contains "${VERSION}" \ @@ -201,8 +201,8 @@ pushd "${FILE_NAME_ROOT}" # created from mkdir build pushd build - sh "${PWD}"/../"${VERSION}"/configure --with-boot-jdk="${BOOT_JDK}" - make store-source-revision + sh "${PWD}"/../"${VERSION}"/configure --with-boot-jdk="${BOOT_JDK}" + make store-source-revision popd rm -rf build diff --git a/java-17-openjdk.spec b/java-17-openjdk.spec index 0282cb4..409fa71 100644 --- a/java-17-openjdk.spec +++ b/java-17-openjdk.spec @@ -2490,6 +2490,7 @@ require "copy_jdk_configs.lua" - Update buildjdkver to match the featurever - Use featurever macro to specify fips patch - Explain patchN syntax situation in a comment +- generate_source_tarball.sh: Fix whitespace - Related: RHEL-27133 * Thu Jan 11 2024 Andrew Hughes - 1:17.0.10.0.7-2