diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-01 15:25:09 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-01 15:25:09 -0400 |
commit | 2ed13bce1704bfb3f9b80134acc25cbf091b530e (patch) | |
tree | e4e35d3a9a11dc1f3dd32eaaabaa8429e10eeea6 | |
parent | 5bb5dbd7467cc6124dd234dec51d2693c8320bf5 (diff) |
move.sh: fixup makefile target paths
-rwxr-xr-x | move.sh | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -138,6 +138,18 @@ fixup_includes() ( xargs -d $'\n' sed -ri 's|#include "(sd-[^"]*)"|#include <systemd/\1>|' ) +fixup_makefiles() ( + find src -type f -name Makefile \ + -exec sed -ri '/^[^#]*:/ { s|^(\s*)\S+/|\1$(outdir)/| }' -- {} + +) + +move() { + move_files + breakup_makefile + fixup_includes + fixup_makefiles +} + main() { set -e @@ -148,9 +160,7 @@ main() { git checkout -b postmove - move_files - breakup_makefile - fixup_includes + move git add . git commit -m './move.sh' |