Skip to content

Commit

Permalink
separate flags from shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
bleep_blop authored and poettering committed Dec 25, 2017
1 parent 977f65f commit 7629744
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 19 deletions.
3 changes: 2 additions & 1 deletion mkosi.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -ex
#!/bin/sh
set -ex

# This file is part of systemd.
#
Expand Down
3 changes: 2 additions & 1 deletion src/basic/generate-af-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

$1 -E -dM -include sys/socket.h - </dev/null | \
grep -Ev 'AF_UNSPEC|AF_MAX' | \
Expand Down
3 changes: 2 additions & 1 deletion src/basic/generate-arphrd-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

$1 -dM -include net/if_arp.h - </dev/null | \
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
Expand Down
3 changes: 2 additions & 1 deletion src/basic/generate-cap-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

$1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \
awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \
Expand Down
3 changes: 2 additions & 1 deletion src/basic/generate-errno-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

$1 -dM -include errno.h - </dev/null | \
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'
3 changes: 2 additions & 1 deletion src/basic/generate-socket-protocol-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

$1 -dM -include netinet/in.h - </dev/null | \
awk '/^#define[ \t]+IPPROTO_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
Expand Down
3 changes: 2 additions & 1 deletion src/boot/efi/no-undefined-symbols.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

if nm -D -u "$1" | grep ' U '; then
echo "Undefined symbols detected!"
Expand Down
3 changes: 2 additions & 1 deletion src/journal/generate-audit_type-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

cpp="$1"
shift
Expand Down
3 changes: 2 additions & 1 deletion src/udev/generate-keyboard-keys-gperf.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu
awk ' BEGIN {
print "%{\n\
#if __GNUC__ >= 7\n\
Expand Down
3 changes: 2 additions & 1 deletion src/udev/generate-keyboard-keys-list.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

$1 -dM -include linux/input.h - </dev/null | awk '
/\<(KEY_(MAX|MIN_INTERESTING))|(BTN_(MISC|MOUSE|JOYSTICK|GAMEPAD|DIGI|WHEEL|TRIGGER_HAPPY))\>/ { next }
Expand Down
3 changes: 2 additions & 1 deletion test/networkd-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@ def create_iface(self, ipv6=False, dhcpserver_opts=None):
self.addCleanup(os.remove, script)
with os.fdopen(fd, 'w+') as f:
f.write('''\
#!/bin/sh -eu
#!/bin/sh
set -eu
mkdir -p /run/systemd/network
mkdir -p /run/systemd/netif
mount -t tmpfs none /run/systemd/network
Expand Down
3 changes: 2 additions & 1 deletion tools/add-git-hook.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

cd "$MESON_SOURCE_ROOT"

Expand Down
3 changes: 2 additions & 1 deletion tools/find-build-dir.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -e
#!/bin/sh
set -e

# Try to guess the build directory:
# we look for subdirectories of the parent directory that look like ninja build dirs.
Expand Down
3 changes: 2 additions & 1 deletion tools/meson-check-compilation.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

"$@" '-' -o/dev/null </dev/null
3 changes: 2 additions & 1 deletion tools/meson-check-help.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

export SYSTEMD_LOG_LEVEL=info

Expand Down
3 changes: 2 additions & 1 deletion tools/meson-git-contrib.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

git shortlog -s `git describe --abbrev=0`.. | \
cut -c8- | \
Expand Down
3 changes: 2 additions & 1 deletion tools/meson-hwdb-update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

cd "$1"

Expand Down
3 changes: 2 additions & 1 deletion tools/meson-make-symlink.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

# this is needed mostly because $DESTDIR is provided as a variable,
# and we need to create the target directory...
Expand Down
3 changes: 2 additions & 1 deletion units/meson-add-wants.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
#!/bin/sh
set -eu

unitdir="$1"
target="$2"
Expand Down

0 comments on commit 7629744

Please sign in to comment.