vscode-texinfo/scripts/prepare.sh

18 lines
637 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
2021-10-01 17:30:37 +00:00
# Convert TextMate grammar to JSON, as VSCode cannot recognize CSON ones.
2021-04-03 21:27:34 +00:00
cson2json $SRC_PATH/grammars/texinfo.cson | json5 > $DEST_PATH/texinfo.json
2021-03-28 18:46:49 +00:00
VERSION=$(json -f package.json version)
echo "@set VERSION $VERSION" > ./doc/version.texi