mirror of
https://github.com/systemd/systemd.git
synced 2025-08-03 08:22:21 +03:00
meson: use "sh -eu" and make .sh +x, .py -x
Shell scripts should be executable so that meson reports their invocation succinctly (does not print 'sh' '-e'). Python scripts should not be executable so that meson does the detection of the right python binary itself. Add -u everywhere to catch potential errors.
This commit is contained in:
2
tools/meson-check-compilation.sh
Normal file → Executable file
2
tools/meson-check-compilation.sh
Normal file → Executable file
@ -1,3 +1,3 @@
|
||||
#!/bin/sh -e
|
||||
#!/bin/sh -eu
|
||||
|
||||
"$@" '-' '-c' -o/dev/null </dev/null
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
#!/bin/sh -eu
|
||||
|
||||
# output width
|
||||
if "$1" --help | grep -v 'default:' | grep -E -q '.{80}.'; then
|
||||
|
2
tools/meson-git-contrib.sh
Normal file → Executable file
2
tools/meson-git-contrib.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
#!/bin/sh -eu
|
||||
|
||||
git shortlog -s `git describe --abbrev=0`.. | \
|
||||
cut -c8- | \
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh -ex
|
||||
#!/bin/sh -eu
|
||||
|
||||
cd "$1"
|
||||
|
||||
|
2
tools/meson-make-symlink.sh
Normal file → Executable file
2
tools/meson-make-symlink.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
#!/bin/sh -eu
|
||||
|
||||
# this is needed mostly because $DESTDIR is provided as a variable,
|
||||
# and we need to create the target directory...
|
||||
|
Reference in New Issue
Block a user