• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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).
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
24# BEGIN android-changed Added -Xmx2G for Mac builds
25java -Xmx2G -jar "$PROGUARD_HOME/lib/proguard.jar" "$@"
26# END android-changed
27