From e332f2dc5c9b511fee235b4977ec2b6180578fc1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 11 Sep 2016 23:01:49 -0400 Subject: tools/: pull changes from notsystemd/master --- tools/notsd-fixup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/notsd-fixup b/tools/notsd-fixup index 0bd5c10bd9..868260e503 100755 --- a/tools/notsd-fixup +++ b/tools/notsd-fixup @@ -4,7 +4,7 @@ # is that we want errors from the inner loop to bubble up. fixup_makefiles() ( - find -type f -name Makefile | while read -r filename; do + 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 ) @@ -17,7 +17,7 @@ fixup_includes() ( popd >/dev/null done - find src \( -name '*.h' -o -name '*.c' \) -type f | while read -r filename; do + find "$@" \( -name '*.h' -o -name '*.c' -o -name '*.gperf' \) -type f | while read -r filename; do "$0"--includes "$filename" done ) @@ -25,8 +25,8 @@ fixup_includes() ( main() { set -e set -o pipefail - fixup_makefiles - fixup_includes + fixup_makefiles "$@" + fixup_includes "$@" } main "$@" -- cgit v1.2.3-54-g00ecf