summaryrefslogtreecommitdiff
path: root/move.sh
diff options
context:
space:
mode:
Diffstat (limited to 'move.sh')
-rwxr-xr-xmove.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/move.sh b/move.sh
index 3bb3e14d8e..f1ed801357 100755
--- a/move.sh
+++ b/move.sh
@@ -131,3 +131,9 @@ set -e
done < <(sed -r 's|^if (.*)|ifneq ($(\1),)|' <Makefile.am)
rm .tmp.move.all
)
+
+(
+ find src \( -name '*.h' -o -name '*.c' \) \
+ -exec grep '#include "sd-' -l -- {} + |
+ xargs -d $'\n' sed -ri 's|#include "(sd-[^"]*)"|#include <systemd/\1>|'
+)