made the CS check for copying.txt and Copying.txt and COPYING.TXT

before adding a COPYING.txt
This commit is contained in:
Elias Pschernig 2007-06-07 15:17:59 +00:00
parent 0eee46a59a
commit d333d36752

View file

@ -258,6 +258,9 @@ namespace {
// Don't add if it already exists.
if (dir->find_child("file", "name", "COPYING.txt")) return;
if (dir->find_child("file", "name", "COPYING")) return;
if (dir->find_child("file", "name", "copying.txt")) return;
if (dir->find_child("file", "name", "Copying.txt")) return;
if (dir->find_child("file", "name", "COPYING.TXT")) return;
// Copy over COPYING.txt
std::string contents = read_file("data/COPYING.txt");