• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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).
12PROGUARD=`readlink -f "$0" 2>/dev/null`
13if test "$PROGUARD" = ''
14then
15  PROGUARD=`readlink "$0" 2>/dev/null`
16  if test "$PROGUARD" = ''
17  then
18    PROGUARD="$0"
19  fi
20fi
21
22PROGUARD_HOME=`dirname "$PROGUARD"`/..
23
24java -jar "$PROGUARD_HOME/lib/retrace.jar" "$@"
25