dev: use stdlib for checks

This commit is contained in:
2026-06-02 06:22:29 +02:00
parent 736b0fc1f4
commit 983e2f34f7
5 changed files with 31 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
--exclude=.git
--exclude=vendor
+2
View File
@@ -0,0 +1,2 @@
tags
vendor
+5
View File
@@ -0,0 +1,5 @@
shell=bash
extended-analysis=true
external-sources=true
+8 -1
View File
@@ -1,13 +1,20 @@
alias fmt := format alias fmt := format
alias fmtw := format-write alias fmtw := format-write
tags:
ctags -R .
dev:
./mkdev.sh
test: test:
bash test.sh bash test.sh
zsh test.sh zsh test.sh
# ksh test.sh # ksh test.sh
format: format: dev tags
git ls-files -z "*.sh" | xargs -0 shfmt -d git ls-files -z "*.sh" | xargs -0 shfmt -d
vendor/stdlib/scripts/check-tags.sh ./tags
format-write: format-write:
git ls-files -z "*.sh" | xargs -0 shfmt -w git ls-files -z "*.sh" | xargs -0 shfmt -w
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
source src/lib.sh
std::wprintln "These dependencies are OPTIONAL because they might depend on older versions of std, having recursion problems"
# more like recurring down in history until the original commit, but yeah
set -x
[ -d vendor/stdlib ] ||
git clone --recursive https://git.javalsai.tuxcord.net/shell/stdlib.git vendor/stdlib