2018-05-16 19:22:16 +00:00
|
|
|
#!/bin/bash
|
2018-04-30 13:41:30 +00:00
|
|
|
|
2018-05-16 19:22:16 +00:00
|
|
|
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2018-04-30 13:41:30 +00:00
|
|
|
|
2018-10-10 19:49:03 +00:00
|
|
|
# Always remove the local cache to avoid any confusion
|
|
|
|
bat cache --clear
|
|
|
|
|
2018-10-04 08:16:53 +00:00
|
|
|
# TODO: Remove this (and the reverse part below) when
|
|
|
|
# https://github.com/trishume/syntect/issues/160 has been fixed
|
|
|
|
JAVADOC_FILE="${ASSET_DIR}/syntaxes/Packages/Java/JavaDoc.sublime-syntax"
|
|
|
|
JAVADOC_PATCH="${ASSET_DIR}/JavaDoc.sublime-syntax.patch"
|
|
|
|
patch "$JAVADOC_FILE" "$JAVADOC_PATCH"
|
|
|
|
|
2018-08-20 19:12:52 +00:00
|
|
|
bat cache --init --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
|
2018-10-04 08:16:53 +00:00
|
|
|
|
|
|
|
patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"
|