diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-03-31 16:07:58 -0400 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-03-31 18:55:11 -0400 |
commit | 9af3f271937cb9389f8e5b8f1b302f48bc6cdd9a (patch) | |
tree | e9c0b647d7179ea5e810e13dffc1bf1eb469e86b /contrib/new-theory | |
parent | dbfaee57915e8f8ab07fa11ee6c412584fac56e5 (diff) |
Travis-CI test for new-theory script, also related bugfixes.
Diffstat (limited to 'contrib/new-theory')
-rwxr-xr-x | contrib/new-theory | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/new-theory b/contrib/new-theory index c1478a980..1868fecec 100755 --- a/contrib/new-theory +++ b/contrib/new-theory @@ -121,10 +121,12 @@ function copyaltskel { # copy files from the skeleton, with proper replacements if $alternate; then + alternate01=1 for file in `ls contrib/alttheoryskel`; do copyaltskel "$file" done else + alternate01=0 for file in `ls contrib/theoryskel`; do copyskel "$file" done @@ -150,7 +152,7 @@ echo "Adding sources to src/Makefile.am..." perl -e ' while(<>) { print; last if /^libcvc4_la_SOURCES = /; } - if('$alternate') { + if('$alternate01') { while(<>) { if(!/\\$/) { chomp; print "$_ \\\n\ttheory/'"$dir"'/theory_'"$dir"'.h \\\n\ttheory/'"$dir"'/theory_'"$dir"'.cpp\n"; last; } else { print; } } } else { while(<>) { if(!/\\$/) { chomp; print "$_ \\\n\ttheory/'"$dir"'/theory_'"$dir"'.h \\\n\ttheory/'"$dir"'/theory_'"$dir"'.cpp \\\n\ttheory/'"$dir"'/theory_'"$dir"'_rewriter.h \\\n\ttheory/'"$dir"'/theory_'"$dir"'_type_rules.h\n"; last; } else { print; } } |