Home | History | Annotate | Download | only in bin
      1 #!/bin/sh
      2 #
      3 # Start-up script for Retrace -- companion tool for ProGuard, free class file
      4 # shrinker, optimizer, 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 java -jar "$PROGUARD_HOME/lib/retrace.jar" "$@"
     25