| Jason Monk | ba055f8 | 2018-02-23 09:38:23 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | cd $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/plugin |
| 3 | # Clear out anything old. |
| 4 | rm -rf /tmp/plugin_classes/ |
| 5 | mkdir /tmp/plugin_classes |
| 6 | |
| 7 | # Compile the jar |
| 8 | javac -cp $ANDROID_BUILD_TOP/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar:$ANDROID_BUILD_TOP/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar `find src -name *.java` -d /tmp/plugin_classes/ |
| 9 | echo "" >> /tmp/plugin_classes/manifest.txt |
| 10 | jar cvfm SystemUIPluginLib.jar /tmp/plugin_classes/manifest.txt -C /tmp/plugin_classes . |
| 11 | |
| 12 | # Place the jar and update the latest |
| 13 | mv SystemUIPluginLib.jar ./SystemUIPluginLib-`date +%m-%d-%Y`.jar |
| 14 | rm SystemUIPluginLib-latest.jar |
| 15 | ln -s SystemUIPluginLib-`date +%m-%d-%Y`.jar SystemUIPluginLib-latest.jar |