Latest stuff, rewriting lexer

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2024-06-25 18:59:15 +02:00
parent 7f669f55e2
commit fa81c2a7fa
23 changed files with 1263 additions and 310 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# AUTOGENERATED COPYRIGHT HEADER START
# Copyright (C) NaN-NaN undefined
# Copyright (C) 2024 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
# AUTOGENERATED COPYRIGHT HEADER END
_self=$(realpath "$0")
_self_dir=$(dirname "$_self")
if [ "$1" == "install" ]; then
cp "${_self}" "${_self_dir}/.git/hooks/pre-commit"
echo "Installed pre-commit hook to '${_self_dir}/.git/hooks/pre-commit'."
else
declare -a FILES; readarray -t FILES < <(git diff --name-only --cached)
node "$PWD/tools/copyright.js" "${FILES[@]}"
fi