Skip to content

Instantly share code, notes, and snippets.

@lrytz
Created Jun 4, 2017
Embed
What would you like to do?
#!/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