[PATCH] bootstrap: always set up test dirs

Mike Frysinger vapier at gentoo.org
Fri Feb 27 03:22:40 UTC 2015


When files get updated, the bootstrap script should make sure the
parallel dirs are kept in sync.

* bootstrap: Always generate the test$m.  Clean up symlinks first.
Don't link in Makefile.in files.
---
 bootstrap | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/bootstrap b/bootstrap
index 9624fec..86598b2 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,13 +1,14 @@
 #!/bin/sh -eu
 
 for m in -m32 -mx32; do
-	mkdir tests$m ||
-		continue
+	mkdir -p tests$m
+	find tests$m -type l -delete
 	sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \
 		tests/Makefile.am > tests$m/Makefile.am
 	for f in tests/*; do
-		[ "${f##*/}" != Makefile.am ] ||
-			continue
+		case "${f##*/}" in
+		Makefile.am|Makefile.in) continue;;
+		esac
 		ln -s ../"$f" tests$m/
 	done
 done
-- 
2.3.0





More information about the Strace-devel mailing list