2024-04-02 06:12:03 +00:00
|
|
|
#!/bin/sh
|
2021-03-16 12:01:13 +00:00
|
|
|
#
|
2024-04-02 06:12:03 +00:00
|
|
|
# Copyright (C) 2020,2021,2024 CismonX <admin@cismon.net>
|
2021-03-16 12:01:13 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2024-04-02 06:12:03 +00:00
|
|
|
set -e
|
2021-03-28 18:46:49 +00:00
|
|
|
|
2024-04-02 06:12:03 +00:00
|
|
|
src_path=./node_modules/language-texinfo
|
|
|
|
dest_path=./out/grammars
|
|
|
|
|
|
|
|
mkdir -p $dest_path
|
|
|
|
|
|
|
|
# Convert TextMate grammar to JSON, since VSCode cannot recognize CSON ones.
|
|
|
|
cson2json $src_path/grammars/texinfo.cson | json5 > $dest_path/texinfo.json
|
|
|
|
|
|
|
|
version=$(json -f package.json version)
|
|
|
|
echo "@set VERSION $version" > ./doc/version.texi
|