diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-11 23:01:49 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-11 23:01:49 -0400 |
commit | e332f2dc5c9b511fee235b4977ec2b6180578fc1 (patch) | |
tree | 604ca8d391256e0443dfb2076d90c7472788ae29 | |
parent | eb769f251bdbeadca6a3e3b3b857038edc0262a6 (diff) |
tools/: pull changes from notsystemd/master
-rwxr-xr-x | tools/notsd-fixup | 8 |
1 files 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 "$@" |