tools/mod2spec.sh
author Kim Alvefur <zash@zash.se>
Sat, 24 Feb 2024 00:05:29 +0100
changeset 13443 1e229d710a3c
parent 13259 df96af198222
permissions -rwxr-xr-x
util.signal: Add support for signalfd(2) on Linux signalfd allows handling signal events using the same method as sockets, via file descriptors. Thus all signal dispatch can go through the same main event loop as everything else, removing need for thread-scary signal handling where execution would just jump to the signal handler regardless of the state of Lua, and needing to keep track of Lua states/threads.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13259
df96af198222 tools: Reflect bash-ness of mod2spec in shebang
Kim Alvefur <zash@zash.se>
parents: 13204
diff changeset
     1
#!/bin/bash
13199
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"