]> granicus.if.org Git - strace/commitdiff
bootstrap: always set up test dirs
authorMike Frysinger <vapier@gentoo.org>
Fri, 27 Feb 2015 03:22:40 +0000 (22:22 -0500)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Feb 2015 04:43:11 +0000 (04:43 +0000)
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

index 9624fecf95236309d4c80151d39d67433c091d91..86598b233df2bde09998666802380c9cb2cfee2c 100755 (executable)
--- 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