aboutsummaryrefslogtreecommitdiff
path: root/v2/src/bin/makemake
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-04 12:10:54 -0300
committerEuAndreh <eu@euandre.org>2023-04-04 12:10:54 -0300
commitbf4a390c23a860ff8bda9538942f2b16cdcf8c05 (patch)
treeddc45415eeb7e8908605745294f58647fd18f533 /v2/src/bin/makemake
parentRevamp v2/ (diff)
downloadeuandre.org-bf4a390c23a860ff8bda9538942f2b16cdcf8c05.tar.gz
euandre.org-bf4a390c23a860ff8bda9538942f2b16cdcf8c05.tar.xz
Makefile: Add ShellCheck to "check" target
Diffstat (limited to 'v2/src/bin/makemake')
-rwxr-xr-xv2/src/bin/makemake5
1 files changed, 4 insertions, 1 deletions
diff --git a/v2/src/bin/makemake b/v2/src/bin/makemake
index f4ab87a..06a7d33 100755
--- a/v2/src/bin/makemake
+++ b/v2/src/bin/makemake
@@ -95,6 +95,7 @@ for r in $RESOURCES; do
if [ "$e" = '.md' ]; then
continue
fi
+ # shellcheck disable=2016
printf '%s%s = $(%s.md:.md=%s)\n' "$r" "$e" "$r" "$e"
done
printf '%s =' "$r"
@@ -102,6 +103,7 @@ for r in $RESOURCES; do
if [ "$e" = '.md' ]; then
continue
fi
+ # shellcheck disable=2016
printf ' $(%s%s)' "$r" "$e"
done
printf '\n'
@@ -110,11 +112,12 @@ for r in $RESOURCES; do
done
all_resources() {
- echo $RESOURCES | tr ' ' '\n'
+ echo "$RESOURCES" | tr ' ' '\n' | grep .
}
all_vars() {
EXT="$1"
+ # shellcheck disable=2016
all_resources |
sed 's|^|$(|' |
sed "s|$|$EXT)|" |