Revision: 75563
http://sourceforge.net/p/brlcad/code/75563
Author: starseeker
Date: 2020-04-23 01:50:28 +0000 (Thu, 23 Apr 2020)
Log Message:
-----------
If we've got an old style svn checkout, skip files from .svn directory
Modified Paths:
--------------
brlcad/trunk/regress/licenses/licenses_check.cpp
Modified: brlcad/trunk/regress/licenses/licenses_check.cpp
===================================================================
--- brlcad/trunk/regress/licenses/licenses_check.cpp 2020-04-23 00:13:26 UTC
(rev 75562)
+++ brlcad/trunk/regress/licenses/licenses_check.cpp 2020-04-23 01:50:28 UTC
(rev 75563)
@@ -152,6 +152,7 @@
std::regex d_regex(".*[\\/]doc[\\/].*");
std::regex l_regex(".*[\\/]licenses_check.cpp");
std::regex srcfile_regex(".*[.](c|cpp|cxx|h|hpp|hxx|tcl)*$");
+ std::regex svn_regex(".*[\\/][.]svn[\\/].*");
std::string root_path(argv[3]);
std::map<std::string, std::string> file_to_license;
@@ -165,6 +166,10 @@
std::cerr << "Unable to open license file list " << argv[1] << "\n";
}
while (std::getline(license_file_stream, lfile)) {
+ if (std::regex_match(lfile, svn_regex)) {
+ std::cerr << "Skipping .svn file " << lfile << "\n";
+ continue;
+ }
int valid_ref_cnt = 0;
std::string lline;
std::ifstream license_stream;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits