mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2026-11-28 19:09:05 +01:00
split script in multiple files, reassembled through build.sh
This commit is contained in:
1 parent
7e660812e9
commit
cebda01d05
47 files changed
+7712
-7617
No files matched your search
@@ -0,0 +1,21 @@
|
||||
SHFMT := shfmt
|
||||
SHFMT_OPTS := -i 4 -ci -ln bash
|
||||
|
||||
OUTPUT := spectre-meltdown-checker.sh
|
||||
SRC_FILES := $(shell find src -name '*.sh' -type f) build.sh
|
||||
|
||||
.PHONY: all build shellcheck fmt fmt-check
|
||||
|
||||
all: build shellcheck fmt-check
|
||||
|
||||
build:
|
||||
./build.sh $(OUTPUT)
|
||||
|
||||
shellcheck: $(OUTPUT)
|
||||
shellcheck $(OUTPUT)
|
||||
|
||||
fmt:
|
||||
$(SHFMT) -w $(SHFMT_OPTS) $(SRC_FILES)
|
||||
|
||||
fmt-check:
|
||||
$(SHFMT) -d $(SHFMT_OPTS) $(SRC_FILES)
|
||||
Reference in new issue
Block a user