vscode-texinfo/scripts/prepare.sh

15 lines
559 B
Bash
Raw Normal View History

2020-10-03 18:04:18 +00:00
#!/usr/bin/env sh
2021-03-16 12:01:13 +00:00
#
# Copyright (C) 2020,2021 CismonX <admin@cismon.net>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty, provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
#
2020-10-03 18:04:18 +00:00
2020-10-17 13:41:03 +00:00
SRC_PATH=./node_modules/language-texinfo
DEST_PATH=./out/grammars
mkdir -p $DEST_PATH
# Convert TextMate grammar from CSON to JSON, as VSCode cannot recognize CSON ones.
2020-11-15 19:36:54 +00:00
cson2json $SRC_PATH/grammars/texinfo.cson | json -j0 > $DEST_PATH/texinfo.json