summaryrefslogtreecommitdiff
path: root/contrib/update-copyright.pl
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-09-02 20:41:08 +0000
committerMorgan Deters <mdeters@gmail.com>2011-09-02 20:41:08 +0000
commit1d18e5ebed9a5b20ed6a8fe21d11842acf6fa7ea (patch)
tree7074f04453914bc377ff6aeb307dd17b82b76ff3 /contrib/update-copyright.pl
parent74770f1071e6102795393cf65dd0c651038db6b4 (diff)
Merge from my post-smtcomp branch. Includes:
Dumping infrastructure. Can dump preprocessed queries and clauses. Can also dump queries (for testing with another solver) to see if any conflicts are missed, T-propagations are missed, all lemmas are T-valid, etc. For a full list of options see --dump=help. CUDD building much cleaner. Documentation and assertion fixes. Printer improvements, printing of commands in language-defined way, etc. Typechecker stuff in expr package now autogenerated, no need to manually edit the expr package when adding a new theory. CVC3 compatibility layer (builds as libcompat). SWIG detection and language binding support (infrastructure). Support for some Z3 extended commands (like datatypes) in SMT-LIBv2 mode (when not in compliance mode). Copyright and file headers regenerated.
Diffstat (limited to 'contrib/update-copyright.pl')
-rwxr-xr-xcontrib/update-copyright.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/update-copyright.pl b/contrib/update-copyright.pl
index 93ec5e6f0..282bffd5d 100755
--- a/contrib/update-copyright.pl
+++ b/contrib/update-copyright.pl
@@ -5,6 +5,7 @@
# Copyright (c) 2009, 2010, 2011 The CVC4 Project
#
# usage: update-copyright [-m] [files/directories...]
+# update-copyright [-h | --help]
#
# This script goes through a source directory rewriting the top bits of
# source files to match a template (inline, below). For files with no
@@ -29,6 +30,7 @@
# It ignores any directory matching $excluded_directories
# (so, you should add here any sources imported but not covered under
# the license.)
+#
my $excluded_directories = '^(minisat|CVS|generated)$';
# re-include bounded_token_buffer.{h,cpp}
@@ -65,6 +67,16 @@ use Fcntl ':mode';
my $dir = $0;
$dir =~ s,/[^/]+/*$,,;
+if($#ARGV >= 0 && $ARGV[0] eq '-h' || $ARGV[0] eq '--help') {
+ open(my $SELF, $0) || die "error opening $0 for reading";
+ while($_ = <$SELF>) {
+ last if !/^#/;
+ print;
+ }
+ close $SELF;
+ exit;
+}
+
# whether we ONLY process files with svn status "M"
my $modonly = 0;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback