dev: use stdlib for checks
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
--exclude=.git
|
||||||
|
--exclude=vendor
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
tags
|
||||||
|
vendor
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
shell=bash
|
||||||
|
|
||||||
|
extended-analysis=true
|
||||||
|
|
||||||
|
external-sources=true
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user