Updating the contrib/new-theory script and travis to use the new Makefile.theories...
authorTim King <taking@google.com>
Thu, 12 Nov 2015 12:23:08 +0000 (04:23 -0800)
committerTim King <taking@google.com>
Thu, 12 Nov 2015 12:23:08 +0000 (04:23 -0800)
.travis.yml
contrib/new-theory

index 18204d3c6923eca209d24eeef863b7ab464c1be8..f3d680374fc88c030ad3a6a6859cbb4fbb7f6b22 100644 (file)
@@ -51,9 +51,9 @@ script:
    }
    addNewTheoryTest() {
        contrib/new-theory test_newtheory || error "NEWTHEORY FAILED";
-       grep -q '^THEORIES *=.* test_newtheory' src/Makefile.am || error "NEWTHEORY FAILED";
+       grep -q '^THEORIES *=.* test_newtheory' src/Makefile.theories || error "NEWTHEORY FAILED";
        contrib/new-theory --alternate test_newtheory test_newalttheory || error "NEWTHEORY-ALTERNATE FAILED";
-       grep -q '^THEORIES *=.* test_newalttheory' src/Makefile.am || error "NEWTHEORY-ALTERNATE FAILED";
+       grep -q '^THEORIES *=.* test_newalttheory' src/Makefile.theories || error "NEWTHEORY-ALTERNATE FAILED";
    }
    LFSCchecks() {
      cd proofs/lfsc_checker &&
index 1868fecec0c4314bd4746ee1f042186a5eb59cb3..8f9714372f10eeb76bf9584117d011a960c93ccf 100755 (executable)
@@ -133,17 +133,17 @@ else
 fi
 
 echo
-echo "Adding $dir to THEORIES to src/Makefile.am..."
-if grep -q '^THEORIES = .*[^a-zA-Z0-9_]'"$dir"'\([^a-zA-Z0-9_]\|$\)' src/Makefile.am &>/dev/null; then
-  echo "NOTE: src/Makefile.am already lists theory $dir"
+echo "Adding $dir to THEORIES to src/Makefile.theories..."
+if grep -q '^THEORIES = .*[^a-zA-Z0-9_]'"$dir"'\([^a-zA-Z0-9_]\|$\)' src/Makefile.theories &>/dev/null; then
+  echo "NOTE: src/Makefile.theories already lists theory $dir"
 else
-  awk '/^THEORIES = / {print $0,"'"$dir"'"} !/^THEORIES = / {print$0}' src/Makefile.am > src/Makefile.am.new-theory
-  if ! cp -f src/Makefile.am src/Makefile.am~; then
-    echo "ERROR: cannot copy src/Makefile.am !" >&2
+  awk '/^THEORIES = / {print $0,"'"$dir"'"} !/^THEORIES = / {print$0}' src/Makefile.theories > src/Makefile.theories.new-theory
+  if ! cp -f src/Makefile.theories src/Makefile.theories~; then
+    echo "ERROR: cannot copy src/Makefile.theories !" >&2
     exit 1
   fi
-  if ! mv -f src/Makefile.am.new-theory src/Makefile.am; then
-    echo "ERROR: cannot replace src/Makefile.am !" >&2
+  if ! mv -f src/Makefile.theories.new-theory src/Makefile.theories; then
+    echo "ERROR: cannot replace src/Makefile.theories !" >&2
     exit 1
   fi
 fi