aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-08-08 16:29:30 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-08-08 16:29:30 +0100
commit22f571e3f00e9e66821b67f41ed764b474a98884 (patch)
treeddca85b23426b2f4aa5d7acafbe4579ffef6c940
parent7b213a99c973f16d0150c42dbd5dba1c95180982 (diff)
downloadpack-22f571e3f00e9e66821b67f41ed764b474a98884.tar.gz
pack-22f571e3f00e9e66821b67f41ed764b474a98884.tar.xz
pack-22f571e3f00e9e66821b67f41ed764b474a98884.zip
add bash ft modelines to bash do files
-rwxr-xr-x.vars.rc.do1
-rwxr-xr-xall.do1
-rwxr-xr-xcompile_commands.json.do1
-rwxr-xr-xdefault.cmd.do1
-rwxr-xr-xdefault.o.do1
-rwxr-xr-xdefault.tool.do1
-rwxr-xr-xtest.inc.do1
7 files changed, 7 insertions, 0 deletions
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