Fix and simplify the generation of the gspn-ssp Makefile
This commit is contained in:
parent
e6904d0a4c
commit
6a2cfc43d5
5 changed files with 6871 additions and 19 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2008-08-29 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
|
* bench/gspn-ssp/tools/modelgen-create: Remove and fold into ...
|
||||||
|
* bench/gspn-ssp/tools/bench-create: ... this.
|
||||||
|
* bench/gspn-ssp/Makefile.am: Update.
|
||||||
|
* bench/gspn-ssp/bench.mk: Regen.
|
||||||
|
|
||||||
2008-08-29 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2008-08-29 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
* bench/gspn-ssp/tools/defs.in (TMPDIR): New variable.
|
* bench/gspn-ssp/tools/defs.in (TMPDIR): New variable.
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,11 @@ run_bench = tools/runbench
|
||||||
|
|
||||||
dist_noinst_SCRIPTS = \
|
dist_noinst_SCRIPTS = \
|
||||||
tools/bench-create \
|
tools/bench-create \
|
||||||
tools/modelgen-create \
|
|
||||||
tools/trans2prop.pl \
|
tools/trans2prop.pl \
|
||||||
tools/sum \
|
tools/sum \
|
||||||
$(run_bench)
|
$(run_bench)
|
||||||
|
|
||||||
|
$(RESULTS): defs
|
||||||
nodist_check_DATA = $(RESULTS)
|
nodist_check_DATA = $(RESULTS)
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if test ! -d models; then
|
if test ! -d templates; then
|
||||||
echo "Error: this script should be run from the parent of the models/ directory." 2>&1
|
echo "Error: this script should be run from the parent of the templates/ directory." 2>&1
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -f modelgen.mk
|
||||||
|
templates/gen > modelgen.mk
|
||||||
|
chmod -w modelgen.mk
|
||||||
|
|
||||||
out=bench.mk
|
out=bench.mk
|
||||||
rm -f $out
|
rm -f $out
|
||||||
exec >$out
|
exec >$out
|
||||||
|
|
@ -16,8 +20,7 @@ F=50
|
||||||
|
|
||||||
allres=
|
allres=
|
||||||
|
|
||||||
cd models
|
for i in `grep /stamp: modelgen.mk | sed 's,^models/\(.*\)/stamp:.*,\1,'`; do
|
||||||
for i in *; do
|
|
||||||
|
|
||||||
Ffile=models/$i/formulae
|
Ffile=models/$i/formulae
|
||||||
echo "############################## $i ##############################"
|
echo "############################## $i ##############################"
|
||||||
|
|
@ -27,7 +30,6 @@ for i in *; do
|
||||||
echo " \$(top_builddir)/src/ltltest/randltl -F $F -u -s 0 -f 10 -r 7 \`cat models/$i/$i.ap\` > \$@"
|
echo " \$(top_builddir)/src/ltltest/randltl -F $F -u -s 0 -f 10 -r 7 \`cat models/$i/$i.ap\` > \$@"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cd $i
|
|
||||||
for ltl2tgba in -f; do
|
for ltl2tgba in -f; do
|
||||||
case $i in
|
case $i in
|
||||||
*.rg) checks=e2;;
|
*.rg) checks=e2;;
|
||||||
|
|
@ -53,10 +55,8 @@ for i in *; do
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
cd ..
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "RESULTS =$allres"
|
echo "RESULTS =$allres"
|
||||||
|
|
||||||
cd ..
|
|
||||||
chmod -w $out
|
chmod -w $out
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if test ! -d template; then
|
|
||||||
echo "Error: this script should be run from the parent of the template/ directory." 2>&1
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f modelgen.mk
|
|
||||||
templates/gen > modelgen.mk
|
|
||||||
chmod -w modelgen.mk
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue