summaryrefslogtreecommitdiff
path: root/tools/notsd-fixup
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-10 15:50:48 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-10 15:50:48 -0400
commit93010a5bde39a26d51751edee9276c4c514f7bf4 (patch)
treee52a5b8f37d2f2d7d24c21ff3dc55e3c9c4f7305 /tools/notsd-fixup
parentd3e52cd56c638be8fd8fa332a25107a3ecc2346d (diff)
move/fixup backport
Diffstat (limited to 'tools/notsd-fixup')
-rwxr-xr-xtools/notsd-fixup6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/notsd-fixup b/tools/notsd-fixup
index 71b3bf4dfa..820d2fec17 100755
--- a/tools/notsd-fixup
+++ b/tools/notsd-fixup
@@ -15,6 +15,12 @@ main() {
find "$@" -type f -name Makefile -print0 |
xargs -r0 sh -c "$0--makefiles \"\$@\" || exit 255" --
+ # GNUmakefiles
+ find "$@" -type l -name GNUmakefile -delete
+ # It's OK for the top-level one to fail
+ find "$@" -type f -name Makefile -printf '%h\0' |
+ xargs -r0 -I {} ln -s -t {} GNUmakefile
+
# C includes
rm -rf -- "$0"--includes.cache
find "$@" \( -name '*.h' -o -name '*.c' -o -name '*.gperf' -o -name '*.gperf.m4' \) -type f -print0 |