summaryrefslogtreecommitdiff
path: root/move.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-07 03:34:46 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-07 03:34:46 -0400
commit9ea83619baf30c4bd5cc27b51fd580925aa7db8b (patch)
tree72cf4f38405786217871494c2e39e69d4f1dad01 /move.sh
parent826cd8f58443fc86d3ea61a4e49d29ee7abb8b1c (diff)
parent37bb75d08b392517c50f6e97ff27484cfd255c08 (diff)
Merge branch 'lukeshu/postmove' into lukeshu/master
# Conflicts: # src/Makefile # src/grp-boot/Makefile # src/grp-coredump/Makefile # src/grp-machine/Makefile # src/libsystemd/libsystemd-internal/subdir.mk # src/libudev/Makefile
Diffstat (limited to 'move.sh')
-rwxr-xr-xmove.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/move.sh b/move.sh
index bbcfe05384..869d315811 100755
--- a/move.sh
+++ b/move.sh
@@ -239,7 +239,11 @@ fixup_makefiles() (
-e 's/ \$\(AM_CPPFLAGS\) / $(ALL_CPPFLAGS) /g' \
-e '/^[^# ]*:/ { s|\S+/|$(outdir)/|g }' \
src/libbasic/Makefile \
- src/libsystemd/libsystemd-journal-internal/Makefile
+ src/libsystemd/libsystemd-journal-internal/Makefile \
+ src/udev/Makefile
+ find -type f -name Makefile|while read -r filename; do
+ sed -r -i "s|(/\.\.)*/config.mk|/$(realpath -ms --relative-to="${filename%/*}" config.mk)|" "$filename"
+ done
)
move() (