Adam Vartanian | 9ae0b40 | 2017-03-08 16:39:31 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Updates the crypto support JSON data file by running the appropriate tools. |
| 4 | |
| 5 | # Ensure that the files we need are in the place we expect |
| 6 | if [ ! -f libcore/tools/docs/crypto/src/java/libcore/java/security/ListProviders.java -o ! -f libcore/tools/docs/crypto/data/crypto_support.json ]; then |
| 7 | echo "This command must be run from the repo root." |
| 8 | exit 1 |
| 9 | fi |
| 10 | |
| 11 | if [ -z "$1" ]; then |
| 12 | echo "The current API level must be specified as an argument." |
| 13 | exit 1 |
| 14 | fi |
| 15 | |
Adam Vartanian | 2205113 | 2017-05-04 12:11:30 +0100 | [diff] [blame] | 16 | make -j48 vogar dx |
Adam Vartanian | 53bdc73 | 2017-03-14 13:23:46 +0000 | [diff] [blame] | 17 | vogar --mode=activity --toolchain=jdk --multidex=false libcore/tools/docs/crypto/src/java/libcore/java/security/ListProviders.java | libcore/tools/docs/crypto/update_crypto_support.py --api_level=$1 --rewrite_file libcore/tools/docs/crypto/data/crypto_support.json |