From 22f571e3f00e9e66821b67f41ed764b474a98884 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 8 Aug 2021 16:29:30 +0100 Subject: add bash ft modelines to bash do files --- .vars.rc.do | 1 + all.do | 1 + compile_commands.json.do | 1 + default.cmd.do | 1 + default.o.do | 1 + default.tool.do | 1 + test.inc.do | 1 + 7 files changed, 7 insertions(+) diff --git a/.vars.rc.do b/.vars.rc.do index 7c4d417..3e0d1a1 100755 --- a/.vars.rc.do +++ b/.vars.rc.do @@ -79,3 +79,4 @@ if [[ $verbose ]]; then echo "# Configuration regenerated:" >&2 cat "$3" >&2 fi +# vim:ft=bash diff --git a/all.do b/all.do index 3994db3..a5d2049 100755 --- a/all.do +++ b/all.do @@ -3,3 +3,4 @@ set -e redo-ifchange .vars.rc . ./.vars.rc redo-ifchange libpack test "${extra_targets[@]}" +# vim:ft=bash diff --git a/compile_commands.json.do b/compile_commands.json.do index 6dd1db8..d7b2ae7 100755 --- a/compile_commands.json.do +++ b/compile_commands.json.do @@ -3,3 +3,4 @@ set -e -o pipefail cmds=(common.cmd ieee754b.cmd pack.cmd test.cmd test_gen.cmd trace.cmd unpack.cmd) redo-ifchange "${cmds[@]}" cat "${cmds[@]}" | jq -s >"$3" +# vim:ft=bash diff --git a/default.cmd.do b/default.cmd.do index a726a0c..0e6d291 100755 --- a/default.cmd.do +++ b/default.cmd.do @@ -10,3 +10,4 @@ redo-ifchange "$tool" "$src" . ./"$tool" "${1%.cmd}.o" "$2" "$3" jq -n --arg d "$PWD" --arg c "${cmd[*]@Q}" --arg f "$src" \ '{directory:$d, command:$c, file:$f}' >"$3" +# vim:ft=bash diff --git a/default.o.do b/default.o.do index 99f9434..8a01eca 100755 --- a/default.o.do +++ b/default.o.do @@ -11,3 +11,4 @@ redo-ifchange "$tool" .parse-deps.sed "$src" sed -n 's|.*@BUILD_DEP \(.*\)|\1|p' "$src" | redo-ifchg-pipe . "./$tool" "${cmd[@]}" | sed -f .parse-deps.sed | redo-ifchg-pipe +# vim:ft=bash diff --git a/default.tool.do b/default.tool.do index 5a99afa..717d3e2 100755 --- a/default.tool.do +++ b/default.tool.do @@ -24,3 +24,4 @@ link-*) esac printf '#generated by %s %s\ncmd=(%s)\n' "${0##*/}" "$tool" "$cmd" >"$3" if command -v redo-stamp &>/dev/null; then redo-stamp <"$3"; fi +# vim:ft=bash diff --git a/test.inc.do b/test.inc.do index ebedd07..279e0d5 100755 --- a/test.inc.do +++ b/test.inc.do @@ -1,3 +1,4 @@ #!/bin/sh redo-ifchange test_gen ./test_gen >"$3" +# vim:ft=bash -- cgit v1.2.3-54-g00ecf