on 01984e1 help sign in
bat/assets/create.sh
16 lines 552 B history raw
1#!/bin/bash
3ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5# Always remove the local cache to avoid any confusion
6bat cache --clear
8# TODO: Remove this (and the reverse part below) when
9# https://github.com/trishume/syntect/issues/160 has been fixed
10JAVADOC_FILE="${ASSET_DIR}/syntaxes/Packages/Java/JavaDoc.sublime-syntax"
11JAVADOC_PATCH="${ASSET_DIR}/JavaDoc.sublime-syntax.patch"
12patch "$JAVADOC_FILE" "$JAVADOC_PATCH"
14bat cache --init --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
16patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"