diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-01-27 16:09:47 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-01-27 16:09:47 +0100 |
commit | 4ef8259d18add24bb589a185d050f4a524385f1f (patch) | |
tree | 29e4774c7e1d046e3073efe7eb79d6fbd724cc85 /test/monniaux/picosat-965/mkconfig.sh | |
parent | c6fd1131142f6733d7f49b409bab08443af4365f (diff) | |
download | compcert-kvx-4ef8259d18add24bb589a185d050f4a524385f1f.tar.gz compcert-kvx-4ef8259d18add24bb589a185d050f4a524385f1f.zip |
picosat
induces bug in register allocation
Diffstat (limited to 'test/monniaux/picosat-965/mkconfig.sh')
-rwxr-xr-x | test/monniaux/picosat-965/mkconfig.sh | 35 |
1 files changed, 35 insertions, 0 deletions
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 |