From: Elvira Khabirova Date: Thu, 16 Jul 2015 13:34:49 +0000 (+0300) Subject: bootstrap: delete personality test directories beforehand X-Git-Tag: v4.11~401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1c448cd478ffec093ca753470997875a49eded2;p=strace bootstrap: delete personality test directories beforehand * bootstrap: Delete tests-m32 and tests-mx32 directories before creating them. --- diff --git a/bootstrap b/bootstrap index 92884797..118d9450 100755 --- a/bootstrap +++ b/bootstrap @@ -1,15 +1,16 @@ #!/bin/sh -eu for m in -m32 -mx32; do - mkdir -p tests$m - find tests$m -type l -delete + tests=tests$m + rm -rf $tests + mkdir $tests sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \ - tests/Makefile.am > tests$m/Makefile.am + tests/Makefile.am > $tests/Makefile.am for f in tests/*; do case "${f##*/}" in Makefile*) continue;; esac - ln -s ../"$f" tests$m/ + ln -s ../"$f" $tests/ done done