Skip to content

Commit

Permalink
Remove non-relevant files
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed Aug 21, 2024
1 parent 814a252 commit b86f609
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tooling/reproducible/repro_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,18 @@ function processModuleInfo() {
fi
}

# Remove windowns generate classes jdk/bin/server/classes.jsa & jdk/bin/server/classes_nocoops.jsa
# Remove non-relevant files
function removeGeneratedClasses() {
local JDK_DIR="$1"
local OS="$2"

if [[ "$OS" =~ CYGWIN* ]] || [[ "$OS" =~ Darwin* ]]; then
rm -rf "$JDK_DIR/bin/server/classes.jsa"
rm -rf "$JDK_DIR/bin/server/classes_nocoops.jsa"
rm -rf "$JDK_DIR/bin/server/classes.jsa"
rm -rf "$JDK_DIR/bin/server/classes_nocoops.jsa"
rm -rf "$JDK_DIR/release"
rm -rf "$JDK_DIR/NOTICE"

if [[ "$OS" =~ Linux ]]; then
find "$JDK_DIR/" -type f -name "*.debuginfo" -delete
fi
}

Expand Down

0 comments on commit b86f609

Please sign in to comment.