mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-21 05:50:42 +01:00
18 lines
571 B
Bash
Executable File
Vendored
18 lines
571 B
Bash
Executable File
Vendored
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# Always remove the local cache to avoid any confusion
|
|
bat cache --clear
|
|
|
|
# TODO: Remove this (and the reverse part below) when
|
|
# https://github.com/trishume/syntect/issues/222 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"
|
|
|
|
bat cache --build --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
|
|
|
|
patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"
|