summaryrefslogtreecommitdiff
path: root/fixup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fixup.sh')
-rwxr-xr-xfixup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/fixup.sh b/fixup.sh
new file mode 100755
index 0000000000..651feb6cf8
--- /dev/null
+++ b/fixup.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+for lib in basic shared systemd-network systemd; do
+ pushd src/lib${lib}/include/${lib}
+ find . -type f -exec sed -ri -e "s|$lib/||" -- {} +
+ popd
+done
+
+find src \( -name '*.h' -o -name '*.c' \) -type f -exec ./fixup_includes {} \;