Commit a5a221e2 authored by Lars Kruse's avatar Lars Kruse
Browse files

feat(shell): introduce new variable SHELL_FILES_DIRECTORIES (default: ".")

parent c865bb63
......@@ -3,6 +3,7 @@
* shell:
* allow overriding of all variables
* replace "SHELLCHECK_CALL" with "SHELLCHECK_ARGS"
* introduce new variable SHELL_FILES_DIRECTORIES (default: ".")
# Version 0.9.1 (2021-10-27)
......
SHELL_FILES_ALL ?= $(shell find -type f -perm /a+x | grep -vE "/(\.git|debian/.*)/" \
| xargs grep -lI '^\#!/bin/.*sh')
SHELL_FILES_DIRECTORIES ?= .
SHELL_FILES_ALL ?= $(shell \
find $(SHELL_FILES_DIRECTORIES) -type f -perm /a+x \
| grep -vE "/(\.git|debian/.*)/" \
| xargs grep -lI '^\#!/bin/.*sh' \
)
SHELL_FILES_DASH ?= $(shell echo "$(SHELL_FILES_ALL)" | xargs grep -l '^\#!/bin/sh$$')
SHELL_FILES_BASH ?= $(shell echo "$(SHELL_FILES_ALL)" | xargs grep -l '^\#!/bin/bash$$')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment