payara / Payara_PatchedProjects

6 stars 25 forks source link

Fix Checksums #335

Closed MattGill98 closed 3 years ago

MattGill98 commented 3 years ago

Ran the following commands:

Fix sha1s:

find . -type f -name "*.pom" -exec sh -c 'f={}; echo $f; rm -f "$f.sha1"; sha1sum $f | cut -d " " -f1 > "$f.sha1";' \;

Fix md5s:

find . -type f -name "*.pom" -exec sh -c 'f={}; echo $f; rm -f "$f.md5"; md5sum $f | cut -d " " -f1 > "$f.md5";' \;

Then added only the files without just whitespace changes:

# Capture all the necessary changes
git diff -w > changes

# Backup the change file
mv changes ..

# Trash the git repo state
git add .
git reset --hard

# Copy the changes back
mv ../changes .
git apply changes
rm changes