mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
chore: Move antlr update script into folder
This commit is contained in:
parent
4dc259db33
commit
7e5d8d115a
@ -44,6 +44,7 @@
|
|||||||
buildInputs = inputs ++ (with pkgs; [
|
buildInputs = inputs ++ (with pkgs; [
|
||||||
mailutils
|
mailutils
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
|
antlr
|
||||||
]) ++ (if pkgs.stdenv.isLinux then with pkgs; [
|
]) ++ (if pkgs.stdenv.isLinux then with pkgs; [
|
||||||
postfix
|
postfix
|
||||||
] else []);
|
] else []);
|
||||||
|
18
server/update_antlr_parser.sh
Executable file
18
server/update_antlr_parser.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ROOT=$(git rev-parse --show-toplevel)/server
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
cd $ROOT/handlers/aliases && antlr4 -Dlanguage=Go -o ast/parser Aliases.g4
|
||||||
|
|
||||||
|
# sshd_config
|
||||||
|
cd $ROOT/handlers/sshd_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
||||||
|
cd $ROOT/handlers/sshd_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
||||||
|
|
||||||
|
# ssh_config
|
||||||
|
cd $ROOT/handlers/ssh_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
||||||
|
cd $ROOT/handlers/ssh_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
||||||
|
|
||||||
|
# hosts
|
||||||
|
cd $ROOT/handlers/hosts && antlr4 -Dlanguage=Go -o ast/parser Hosts.g4
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
GIT_ROOT=$(git rev-parse --show-toplevel)
|
|
||||||
|
|
||||||
# aliases
|
|
||||||
cd $GIT_ROOT/handlers/aliases && antlr4 -Dlanguage=Go -o ast/parser Aliases.g4
|
|
||||||
|
|
||||||
# sshd_config
|
|
||||||
cd $GIT_ROOT/handlers/sshd_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
|
||||||
cd $GIT_ROOT/handlers/sshd_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
|
||||||
|
|
||||||
# ssh_config
|
|
||||||
cd $GIT_ROOT/handlers/ssh_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
|
||||||
cd $GIT_ROOT/handlers/ssh_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
|
||||||
|
|
||||||
# hosts
|
|
||||||
cd $GIT_ROOT/handlers/hosts && antlr4 -Dlanguage=Go -o ast/parser Hosts.g4
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user