Skip to content

Commit

Permalink
adding back OS param
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Oct 8, 2024
1 parent 7cdbb2b commit 129a2d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tooling/reproducible/repro_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ source $(dirname "$0")/repro_common.sh
JDK_DIR="$1"
OS="$2"

mkdir "${JDK_DIR}_BK"
cp -R "${JDK_DIR}"/* "${JDK_DIR}"_BK
BK_JDK_DIR=$(realpath "${JDK_DIR}"_BK/)
work_JAVA="${BK_JDK_DIR}/bin/java"
# mkdir "${JDK_DIR}_BK"
# cp -R "${JDK_DIR}"/* "${JDK_DIR}"_BK
# BK_JDK_DIR=$(realpath "${JDK_DIR}"_BK/)
# work_JAVA="${BK_JDK_DIR}/bin/java"

# This script unpacks the JDK_DIR and removes windows signing Signatures in a neutral way
# ensuring identical output once Signature is removed.
Expand All @@ -38,17 +38,17 @@ if [[ "$OS" =~ CYGWIN* ]] || [[ "$OS" =~ Darwin* ]]; then
tempSign "$JDK_DIR" "$OS"

# Remove temporary SELF_SIGN signature, which will then normalize binary length
removeSignatures "$JDK_DIR"
removeSignatures "$JDK_DIR" "$OS"
fi

# Will enable separately
# if [[ "$OS" =~ CYGWIN* ]]; then
# removeWindowsNonComparableData "$JDK_DIR" "$work_JAVA"
# fi

if [[ "$OS" =~ Darwin* ]]; then
removeMacOSNonComparableData "$JDK_DIR" "$work_JAVA"
fi
# if [[ "$OS" =~ Darwin* ]]; then
# removeMacOSNonComparableData "$JDK_DIR" "$work_JAVA"
# fi

patchManifests "${JDK_DIR}"

Expand Down

0 comments on commit 129a2d6

Please sign in to comment.