tools/mod2spec.sh
author Kim Alvefur <zash@zash.se>
Sun, 24 Mar 2024 20:39:42 +0100
changeset 13466 720aed1f5cf2
parent 13259 df96af198222
permissions -rwxr-xr-x
util.startup: Check root after detecting platform and reading config (thanks SigmaTel71) Ensures that startup.detect_platform() runs so know whether to use the POSIX method of checking the current user or something else. Also after reading the config so we know whether the root override setting is set.
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"