Software /
code /
prosody
Annotate
tools/mod2spec.sh @ 13270:14bbfb2cc8dd default tip
lint: Teach luacheck about module:once
Silence warning for using this introduced in 9c62ffbdf2ae
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 15 Oct 2023 16:43:14 +0200 |
parent | 13255:df96af198222 |
rev | line source |
---|---|
13255
df96af198222
tools: Reflect bash-ness of mod2spec in shebang
Kim Alvefur <zash@zash.se>
parents:
13200
diff
changeset
|
1 #!/bin/bash |
13195
1a59a40c6443
tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 set -eu |
1a59a40c6443
tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 |
1a59a40c6443
tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 echo "spec/${1//./_}_spec.lua" |