From 4ef8259d18add24bb589a185d050f4a524385f1f Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Sun, 27 Jan 2019 16:09:47 +0100 Subject: picosat induces bug in register allocation --- test/monniaux/picosat-965/mkconfig.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 test/monniaux/picosat-965/mkconfig.sh (limited to 'test/monniaux/picosat-965/mkconfig.sh') diff --git a/test/monniaux/picosat-965/mkconfig.sh b/test/monniaux/picosat-965/mkconfig.sh new file mode 100755 index 00000000..621210b9 --- /dev/null +++ b/test/monniaux/picosat-965/mkconfig.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +die () { + echo "*** mkconfig.sh: $*" 1>&2 + exit 1 +} + +[ -f makefile ] || die "can not find 'makefile'" + +sed \ + -e '/^C[A-Z]*=/!d' \ + -e 's,^,#define PICOSAT_,' \ + -e 's,= *, ",' \ + -e 's,$,",' \ + makefile + +id="" +if [ -d .git -a -f .git/HEAD ] +then + head="`awk 'NF == 1' .git/HEAD`" + if [ x"$head" = x ] + then + head="`awk '{print $2}' .git/HEAD`" + if [ ! x"$head" = x -a -f ".git/$head" ] + then + id=" `cat .git/$head`" + fi + else + id=" $head" + fi +fi + +echo "#define PICOSAT_VERSION \"`cat VERSION`$id\"" + +exit 0 -- cgit