Skip to content

Commit

Permalink
Added $ANDROID_SDK_ROOT variable
Browse files Browse the repository at this point in the history
  • Loading branch information
meefik committed Mar 17, 2016
1 parent d7d20d6 commit 3da121b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contrib/ZoneCompactor/build-dex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
if [ "$1" == "clean" ]; then
find . -name "*.class" -exec rm {} \;
else
DX="$HOME/android-sdk-linux/build-tools/*/dx"
[ -z "$ANDROID_SDK_ROOT" ] && ANDROID_SDK_ROOT="$HOME/Android/Sdk"
DX="$ANDROID_SDK_ROOT/build-tools/*/dx"
javac -source 1.5 -target 1.5 -d . ZoneCompactor.java libcore/util/ZoneInfo.java libcore/io/BufferIterator.java
${DX} --dex --output=ZoneCompactor.dex $(find . -name '*.class' -type f)
fi
3 changes: 2 additions & 1 deletion contrib/ZoneCompactorLegacy/build-dex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
if [ "$1" == "clean" ]; then
find . -name "*.class" -exec rm {} \;
else
DX="$HOME/android-sdk-linux/build-tools/*/dx"
[ -z "$ANDROID_SDK_ROOT" ] && ANDROID_SDK_ROOT="$HOME/Android/Sdk"
DX="$ANDROID_SDK_ROOT/build-tools/*/dx"
javac -source 1.3 -target 1.3 -d . ZoneCompactor.java ZoneInfo.java
${DX} --dex --output=ZoneCompactorLegacy.dex $(find . -name '*.class' -type f)
fi

0 comments on commit 3da121b

Please sign in to comment.