Skip to content

Instantly share code, notes, and snippets.

@tpopela
Created June 5, 2018 15:09
Show Gist options
  • Save tpopela/95dc0d8ddddb7bd679f4bc9819a96b1e to your computer and use it in GitHub Desktop.
Save tpopela/95dc0d8ddddb7bd679f4bc9819a96b1e to your computer and use it in GitHub Desktop.
Script to remove extra debug messages from WebKit JavaScriptCore CLoop
#!/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