diff options
Diffstat (limited to 'third_party/java/proguard/proguard5.3.3/bin/proguard.sh')
-rwxr-xr-x | third_party/java/proguard/proguard5.3.3/bin/proguard.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/java/proguard/proguard5.3.3/bin/proguard.sh b/third_party/java/proguard/proguard5.3.3/bin/proguard.sh new file mode 100755 index 0000000000..3ee60ed76e --- /dev/null +++ b/third_party/java/proguard/proguard5.3.3/bin/proguard.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# Start-up script for ProGuard -- free class file shrinker, optimizer, +# obfuscator, and preverifier for Java bytecode. +# +# Note: when passing file names containing spaces to this script, +# you'll have to add escaped quotes around them, e.g. +# "\"/My Directory/My File.txt\"" + +# Account for possibly missing/basic readlink. +# POSIX conformant (dash/ksh/zsh/bash). +PROGUARD=`readlink -f "$0" 2>/dev/null` +if test "$PROGUARD" = '' +then + PROGUARD=`readlink "$0" 2>/dev/null` + if test "$PROGUARD" = '' + then + PROGUARD="$0" + fi +fi + +PROGUARD_HOME=`dirname "$PROGUARD"`/.. + +java -jar "$PROGUARD_HOME/lib/proguard.jar" "$@" |