summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-21 09:19:16 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-21 09:19:16 +0300
commit4702f64f2e26f0294ab7a3b24cad7d198d21b054 (patch)
tree4fa307f9f84193c16e60e378481e5864d9f246a4 /check
parent6f1703216b5068db1700e3e72e04aa508e368fdb (diff)
downloaddebian-ansible-4702f64f2e26f0294ab7a3b24cad7d198d21b054.tar.gz
doc: all roles
Diffstat (limited to 'check')
-rwxr-xr-xcheck15
1 files changed, 12 insertions, 3 deletions
diff --git a/check b/check
index 0fdede0..795e2f7 100755
--- a/check
+++ b/check
@@ -4,6 +4,15 @@
set -eu -o pipefail
+cat_with_sep()
+{
+ for x in "$@"
+ do
+ cat "$x"
+ echo
+ done
+}
+
quiet=-q
hideok=chronic
if [ "$#" -gt 0 ]
@@ -23,9 +32,9 @@ trap 'rm -rf "$dir"' EXIT
rm -f test.log test.py
cp subplot.md "$dir"
-cat subplot.md roles/*/subplot.md > "$dir/subplot.md"
-cat subplot/*.py roles/*/subplot.py > "$dir/subplot.py"
-cat subplot/*.yaml roles/*/subplot.yaml > "$dir/subplot.yaml"
+cat_with_sep subplot.md roles/*/subplot.md > "$dir/subplot.md"
+cat_with_sep subplot/*.py roles/*/subplot.py > "$dir/subplot.py"
+cat_with_sep subplot/*.yaml roles/*/subplot.yaml > "$dir/subplot.yaml"
(
set -eu -o pipefail