From 54f30b54f2bba0a117628205165d1fa9f61c7ad0 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 17 Nov 2023 08:24:10 +0100 Subject: [PATCH] WIP: added some scripts --- .gitignore | 1 + {scrips => scripts}/bear.sh | 0 scripts/ctags.sh | 3 +++ scripts/format.sh | 3 +++ scripts/lint.sh | 3 +++ {scrips => scripts}/run.sh | 0 {scrips => scripts}/test.sh | 0 7 files changed, 10 insertions(+) rename {scrips => scripts}/bear.sh (100%) create mode 100755 scripts/ctags.sh create mode 100755 scripts/format.sh create mode 100755 scripts/lint.sh rename {scrips => scripts}/run.sh (100%) rename {scrips => scripts}/test.sh (100%) diff --git a/.gitignore b/.gitignore index 909c473..cbd3711 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Build directory bin/ obj/ +tags Prerequisites *.d diff --git a/scrips/bear.sh b/scripts/bear.sh similarity index 100% rename from scrips/bear.sh rename to scripts/bear.sh diff --git a/scripts/ctags.sh b/scripts/ctags.sh new file mode 100755 index 0000000..2da2d60 --- /dev/null +++ b/scripts/ctags.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +ctags --recurse=yes --exclude=.git --exclude=bin --exclude=obj --exclude=scripts diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 0000000..6cf085b --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +clang-format -i ./src/*.c ./include/*.h diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 0000000..9176089 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +clang-tidy ./include/*.h ./src/*.c diff --git a/scrips/run.sh b/scripts/run.sh similarity index 100% rename from scrips/run.sh rename to scripts/run.sh diff --git a/scrips/test.sh b/scripts/test.sh similarity index 100% rename from scrips/test.sh rename to scripts/test.sh -- 2.30.2