blob: 395fc80ea113c5a8e98ff79d137d1c1d0441707e [file] [log] [blame]
Dmitry V. Levin679c47c2015-01-23 22:45:02 +00001#!/bin/sh -eu
2
Dmitry V. Levin1e04e572015-12-08 00:13:38 +00003for m in m32 mx32; do
4 tests=tests-$m
Elvira Khabirovab1c448c2015-07-16 16:34:49 +03005 rm -rf $tests
6 mkdir $tests
Dmitry V. Levin10eab9d2016-01-01 23:09:02 +00007 s='[[:space:]]*'
8 sed "s/@arch@/@arch_$m@/;s/^MPERS_NAME$s=.*/& $m/;s/^ARCH_MFLAGS$s=.*/& -$m/" \
Elvira Khabirovab1c448c2015-07-16 16:34:49 +03009 tests/Makefile.am > $tests/Makefile.am
Dmitry V. Levin679c47c2015-01-23 22:45:02 +000010 for f in tests/*; do
Mike Frysinger11cb0da2015-02-26 22:22:40 -050011 case "${f##*/}" in
Dmitry V. Levindca51102015-03-04 14:50:19 +000012 Makefile*) continue;;
Mike Frysinger11cb0da2015-02-26 22:22:40 -050013 esac
Elvira Khabirovab1c448c2015-07-16 16:34:49 +030014 ln -s ../"$f" $tests/
Dmitry V. Levin679c47c2015-01-23 22:45:02 +000015 done
16done
17
Elvira Khabirova09294222015-08-04 01:47:02 +030018./generate_mpers_am.sh
Dmitry V. Levin5cb45b22015-11-20 01:43:12 +000019./xlat/gen.sh
Dmitry V. Levin679c47c2015-01-23 22:45:02 +000020
Dmitry V. Levin3e69bdf2014-04-25 22:52:06 +000021exec autoreconf -f -i "$@"