From: Mike Frysinger Date: Fri, 27 Feb 2015 03:22:40 +0000 (-0500) Subject: bootstrap: always set up test dirs X-Git-Tag: v4.10~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11cb0da47229ac7e39f679b74e88b4a24a544949;p=strace bootstrap: always set up test dirs 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. --- diff --git a/bootstrap b/bootstrap index 9624fecf..86598b23 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