From 165c35c70b43349e882bd44be31c0837ab19729b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Apr 2017 21:08:39 +1200 Subject: More sh flexibility (check/lint scripts) --- lint/bash | 2 -- lint/bash.sh | 1 + lint/bin | 2 -- lint/bin.sh | 1 + lint/games | 2 -- lint/games.sh | 1 + lint/ksh | 4 ---- lint/ksh.sh | 3 +++ lint/sh | 2 -- lint/sh.sh | 1 + lint/urxvt | 2 -- lint/urxvt.sh | 1 + lint/yash | 2 -- lint/yash.sh | 1 + 14 files changed, 9 insertions(+), 16 deletions(-) delete mode 100755 lint/bash create mode 100644 lint/bash.sh delete mode 100755 lint/bin create mode 100644 lint/bin.sh delete mode 100755 lint/games create mode 100644 lint/games.sh delete mode 100755 lint/ksh create mode 100644 lint/ksh.sh delete mode 100755 lint/sh create mode 100644 lint/sh.sh delete mode 100755 lint/urxvt create mode 100644 lint/urxvt.sh delete mode 100755 lint/yash create mode 100644 lint/yash.sh (limited to 'lint') diff --git a/lint/bash b/lint/bash deleted file mode 100755 index 771f2a89..00000000 --- a/lint/bash +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find bash -type f -print -exec shellcheck -e SC1090 -s bash -- {} + diff --git a/lint/bash.sh b/lint/bash.sh new file mode 100644 index 00000000..2fe1ba13 --- /dev/null +++ b/lint/bash.sh @@ -0,0 +1 @@ +find bash -type f -print -exec shellcheck -e SC1090 -s bash -- {} + diff --git a/lint/bin b/lint/bin deleted file mode 100755 index ff7de0b7..00000000 --- a/lint/bin +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find bin -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/bin.sh b/lint/bin.sh new file mode 100644 index 00000000..0fe82d7a --- /dev/null +++ b/lint/bin.sh @@ -0,0 +1 @@ +find bin -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/games b/lint/games deleted file mode 100755 index 38299a7f..00000000 --- a/lint/games +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find games -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/games.sh b/lint/games.sh new file mode 100644 index 00000000..6e3e3024 --- /dev/null +++ b/lint/games.sh @@ -0,0 +1 @@ +find games -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/ksh b/lint/ksh deleted file mode 100755 index ee49d178..00000000 --- a/lint/ksh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -find ksh \ - -type f -name '*.sh' -exec shellcheck -e SC1090 -s sh -- {} + -o \ - -type f -exec shellcheck -e SC1090 -s ksh -- {} + diff --git a/lint/ksh.sh b/lint/ksh.sh new file mode 100644 index 00000000..4cedc6f7 --- /dev/null +++ b/lint/ksh.sh @@ -0,0 +1,3 @@ +find ksh \ + -type f -name '*.sh' -exec shellcheck -e SC1090 -s sh -- {} + -o \ + -type f -exec shellcheck -e SC1090 -s ksh -- {} + diff --git a/lint/sh b/lint/sh deleted file mode 100755 index 18f2f551..00000000 --- a/lint/sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find sh -type f -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/sh.sh b/lint/sh.sh new file mode 100644 index 00000000..632585bf --- /dev/null +++ b/lint/sh.sh @@ -0,0 +1 @@ +find sh -type f -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/urxvt b/lint/urxvt deleted file mode 100755 index 9fd6193d..00000000 --- a/lint/urxvt +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find urxvt/ext -type f ! -name '*.pl' -print -exec perlcritic --brutal -- {} \; diff --git a/lint/urxvt.sh b/lint/urxvt.sh new file mode 100644 index 00000000..507034be --- /dev/null +++ b/lint/urxvt.sh @@ -0,0 +1 @@ +find urxvt/ext -type f ! -name '*.pl' -print -exec perlcritic --brutal -- {} \; diff --git a/lint/yash b/lint/yash deleted file mode 100755 index 1397f9f1..00000000 --- a/lint/yash +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find yash -type f -print -exec shellcheck -e SC1090 -s sh -- {} + diff --git a/lint/yash.sh b/lint/yash.sh new file mode 100644 index 00000000..d783e077 --- /dev/null +++ b/lint/yash.sh @@ -0,0 +1 @@ +find yash -type f -print -exec shellcheck -e SC1090 -s sh -- {} + -- cgit v1.2.3