Skip to content

Commit

Permalink
GPL 2.0 -> GPL 3.0 to be compatible with Apache licnesed libraries.
Browse files Browse the repository at this point in the history
We link to apache-licenses libraries such as absl and re2; choose
GPL 3.0 which is compatible with that.
  • Loading branch information
hzeller committed Jan 17, 2025
1 parent f817a85 commit 437f8e4
Show file tree
Hide file tree
Showing 79 changed files with 697 additions and 362 deletions.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ package(
license(
name = "license",
package_name = "bant",
license_kind = "@rules_license//licenses/spdx:GPL-2.0",
license_kind = "@rules_license//licenses/spdx:GPL-3.0",
license_text = "LICENSE",
)
899 changes: 617 additions & 282 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bant/bant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down Expand Up @@ -66,8 +66,8 @@ static int print_version() {
#endif
fprintf(stderr,
"bant v%s <http://bant.build/>\n"
"Copyright (c) 2024 Henner Zeller. "
"This program is free software; license GPL 2.0.\n",
"Copyright (c) 2024-2025 Henner Zeller. "
"This program is free software; license GPL 3.0.\n",
RELEVANT_VERSION);
return EXIT_SUCCESS;
#undef RELEVANT_VERSION
Expand Down
2 changes: 1 addition & 1 deletion bant/cli-commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/cli-commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/aliased-by.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/aliased-by.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/dependency-graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/dependency-graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/header-providers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/header-providers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/header-providers_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/query-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/query-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/explore/query-utils_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/elaboration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/elaboration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/elaboration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/linecolumn-map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/linecolumn-map.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/linecolumn-map_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/named-content.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/named-content.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/named-content_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/parsed-project.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/parsed-project.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/parsed-project_testutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/print-visitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/print-visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/scanner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/source-locator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/frontend/source-locator.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/output-format.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/tool/canon-targets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/tool/canon-targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion bant/tool/canon-targets_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
Expand Down
Loading

0 comments on commit 437f8e4

Please sign in to comment.