Created
June 5, 2018 15:09
-
-
Save tpopela/95dc0d8ddddb7bd679f4bc9819a96b1e to your computer and use it in GitHub Desktop.
Script to remove extra debug messages from WebKit JavaScriptCore CLoop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Removes debug messages from https://gist.github.com/tpopela/16adfd9b810ef33bb4c9 | |
processFile() | |
{ | |
if [ ! -f "$1".orig ]; then | |
exit 2 | |
fi | |
if [ ! -f "$1".noisy ]; then | |
exit 3 | |
fi | |
rm "$1" | |
rm "$1".noisy | |
cp "$1".orig "$1" | |
} | |
if [ -z "$1" ]; then | |
exit 1 | |
fi | |
if [ "$1" == "all" ]; then | |
processFile "LowLevelInterpreter.asm" | |
processFile "LowLevelInterpreter32_64.asm" | |
processFile "LowLevelInterpreter64.asm" | |
exit 0 | |
fi | |
processFile "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment