aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-24 00:04:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-24 00:04:26 +1200
commit39c210c0ceabb746e3ba325cb2aa1076a6ee95c2 (patch)
tree6a4c5fbe47a7c2dcec7713154cc47e008023387f
parentRemove an untruth from README (diff)
downloaddotfiles-39c210c0ceabb746e3ba325cb2aa1076a6ee95c2.tar.gz
dotfiles-39c210c0ceabb746e3ba325cb2aa1076a6ee95c2.zip
Tidy check/lint targets, add pdksh
-rw-r--r--Makefile26
-rwxr-xr-xlint/pdksh2
2 files changed, 23 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 95d62f21..8e63e7fc 100644
--- a/Makefile
+++ b/Makefile
@@ -44,12 +44,14 @@
check-bash \
check-bin \
check-games \
+ check-pdksh \
check-sh \
check-urxvt \
lint \
lint-bash \
lint-bin \
lint-games \
+ lint-pdksh \
lint-sh \
lint-urxvt
@@ -327,7 +329,12 @@ install-zsh : install-sh
install -pm 0644 -- zsh/zprofile "$(HOME)"/.zprofile
install -pm 0644 -- zsh/zshrc "$(HOME)"/.zshrc
-check : check-bash check-bin check-games check-man check-sh check-urxvt
+check : check-bash \
+ check-bin \
+ check-games \
+ check-man \
+ check-sh \
+ check-urxvt
check-bash :
check/bash
@@ -338,19 +345,25 @@ check-bin :
check-games :
check/games
-check-pdksh :
- check/pdksh
-
check-man :
check/man
+check-pdksh :
+ check/pdksh
+
check-sh :
check/sh
check-urxvt :
check/urxvt
-lint : lint-bash lint-bin lint-games lint-sh lint-urxvt
+lint : check \
+ lint-bash \
+ lint-bin \
+ lint-games \
+ lint-pdksh \
+ lint-sh \
+ lint-urxvt
lint-bash :
lint/bash
@@ -361,6 +374,9 @@ lint-bin :
lint-games :
lint/games
+lint-pdksh :
+ lint/pdksh
+
lint-sh :
lint/sh
diff --git a/lint/pdksh b/lint/pdksh
new file mode 100755
index 00000000..03745b3d
--- /dev/null
+++ b/lint/pdksh
@@ -0,0 +1,2 @@
+#!/bin/sh
+find pdksh -type f -print -exec shellcheck -e SC1090 -s ksh -- {} \;