Skip to content

Instantly share code, notes, and snippets.

@lrytz
Created June 4, 2017 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrytz/2908abe64b68d86568f8969a4a9369be to your computer and use it in GitHub Desktop.
Save lrytz/2908abe64b68d86568f8969a4a9369be to your computer and use it in GitHub Desktop.
#!/bin/sh
files="$@"
asm_jar=~/Applications/bin/asm-5.0.2/lib/all/asm-all-5.0.2.jar
asm_main=org.objectweb.asm.util.Textifier
for f in $files; do
dirname=$(dirname "$f")
basename=$(basename "$f")
class=${basename%%.class}
java -cp $asm_jar $asm_main -debug $f > $dirname/$class.asm
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment