Home | History | Annotate | Download | only in bin
      1 #!/bin/sh
      2 #
      3 # Start-up script for ProGuard -- free class file shrinker, optimizer,
      4 # obfuscator, and preverifier for Java bytecode.
      5 #
      6 # Note: when passing file names containing spaces to this script,
      7 #       you'll have to add escaped quotes around them, e.g.
      8 #       "\"/My Directory/My File.txt\""
      9 
     10 # Account for possibly missing/basic readlink.
     11 # POSIX conformant (dash/ksh/zsh/bash).
     12 PROGUARD=`readlink -f "$0" 2>/dev/null`
     13 if test "$PROGUARD" = ''
     14 then
     15   PROGUARD=`readlink "$0" 2>/dev/null`
     16   if test "$PROGUARD" = ''
     17   then
     18     PROGUARD="$0"
     19   fi
     20 fi
     21 
     22 PROGUARD_HOME=`dirname "$PROGUARD"`/..
     23 
     24 # BEGIN android-changed Added -Xmx2G for Mac builds
     25 java -Xmx2G -jar "$PROGUARD_HOME/lib/proguard.jar" "$@"
     26 # END android-changed
     27