summaryrefslogtreecommitdiff
path: root/tools/fixup.sh
blob: 651feb6cf83ac0b3b8a9e266e90babdfda407aa4 (plain)
1
2
3
4
5
6
7
8
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 {} \;