on 89fcbb2 help sign in
bat/assets/create.sh
17 lines 571 B history raw
1#!/bin/bash
2set -euo pipefail
4ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6# Always remove the local cache to avoid any confusion
7bat cache --clear
9# TODO: Remove this (and the reverse part below) when
10# https://github.com/trishume/syntect/issues/222 has been fixed
11JAVADOC_FILE="${ASSET_DIR}/syntaxes/Packages/Java/JavaDoc.sublime-syntax"
12JAVADOC_PATCH="${ASSET_DIR}/JavaDoc.sublime-syntax.patch"
13patch "$JAVADOC_FILE" "$JAVADOC_PATCH"
15bat cache --build --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
17patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"