Skip to content

Commit

Permalink
Corrent source files
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Sep 25, 2024
1 parent a097af1 commit 05093c5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
31 changes: 16 additions & 15 deletions tooling/reproducible/macos_repro_build_compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# 3. This script requires that the correct versions of the sdk are installed and in the loaction defined in the MAC_SDK_LOCATION below.

set -e
source "$(dirname "$0")"/repro_compare.sh

# Check All 3 Params Are Supplied
if [ "$#" -lt 3 ]; then
Expand Down Expand Up @@ -476,21 +477,21 @@ Compare_JDK() {

# Check The Comparison Scripts Are Present And Copy To The Working Directory

if [ -f ./repro_common.sh ]; then
cp ./repro_common.sh $WORK_DIR/compare/repro_common.sh
else
wget -O "$WORK_DIR/compare/repro_common.sh" "https://raw.githubusercontent.com/adoptium/temurin-build/master/tooling/reproducible/repro_common.sh"
fi
if [ -f ./repro_compare.sh ]; then
cp ./repro_compare.sh $WORK_DIR/compare/repro_compare.sh
else
wget -O "$WORK_DIR/compare/repro_compare.sh" "https://raw.githubusercontent.com/adoptium/temurin-build/master/tooling/reproducible/repro_compare.sh"
fi
if [ -f ./repro_process.sh ]; then
cp ./repro_process.sh $WORK_DIR/compare/repro_process.sh
else
wget -O "$WORK_DIR/compare/repro_process.sh" "https://raw.githubusercontent.com/adoptium/temurin-build/master/tooling/reproducible/repro_process.sh"
fi
# if [ -f ./repro_common.sh ]; then
# cp ./repro_common.sh $WORK_DIR/compare/repro_common.sh
# else
# wget -O "$WORK_DIR/compare/repro_common.sh" "https://raw.githubusercontent.com/adoptium/temurin-build/master/tooling/reproducible/repro_common.sh"
# fi
# if [ -f ./repro_compare.sh ]; then
# cp ./repro_compare.sh $WORK_DIR/compare/repro_compare.sh
# else
# wget -O "$WORK_DIR/compare/repro_compare.sh" "https://raw.githubusercontent.com/adoptium/temurin-build/master/tooling/reproducible/repro_compare.sh"
# fi
# if [ -f ./repro_process.sh ]; then
# cp ./repro_process.sh $WORK_DIR/compare/repro_process.sh
# else
# wget -O "$WORK_DIR/compare/repro_process.sh" "https://raw.githubusercontent.com/adoptium/temurin-build/master/tooling/reproducible/repro_process.sh"
# fi

# Set Permissions
chmod +x "$WORK_DIR/compare/"*sh
Expand Down
1 change: 0 additions & 1 deletion tooling/reproducible/repro_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function removeSystemModulesHashBuilderParams() {
moduleHashesFunction="// Method jdk/internal/module/ModuleHashes\$Builder.hashForModule:(Ljava/lang/String;[B)Ljdk/internal/module/ModuleHashes\$Builder;"
moduleString="// String "
virtualFunction="invokevirtual"

systemModules="SystemModules\$0.class SystemModules\$all.class SystemModules\$default.class"
for systemModule in $systemModules
do
Expand Down
4 changes: 2 additions & 2 deletions tooling/reproducible/repro_compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ********************************************************************************

# shellcheck disable=SC1091
source repro_common.sh
source "$(dirname "$0")"/repro_common.sh

BLD_TYPE1="$1"
JDK_DIR1="$2"
Expand All @@ -32,7 +32,7 @@ do

echo "Pre-processing ${JDK_DIR}"
rc=0
source ./repro_process.sh "${JDK_DIR}" "${OS}" || rc=$?
source "$(dirname "$0")"/repro_process.sh "${JDK_DIR}" "${OS}" || rc=$?
if [ $rc != 0 ]; then
echo "Pre-process of ${JDK_DIR} ${OS} failed"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion tooling/reproducible/repro_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ********************************************************************************

# shellcheck disable=SC1091
source repro_common.sh
source "$(dirname "$0")"/repro_common.sh

JDK_DIR="$1"
OS="$2"
Expand Down

0 comments on commit 05093c5

Please sign in to comment.