I want to reuse some code licensed under a BSD license but I don't know how to make it clear what I wrote, what I have reused and what I have modified.
Say the project I want to reuse code from has the following directory structure:
project/
|-- LICENSE.txt
|-- module1/
| |-- file1.c
| |-- file2.c
| `-- file3.c
|-- module2/
`-- module3/
and the contents of LICENSE.txt is a BSD license, i.e. its contents are:
Copyright (c) <year>, <copyright holder>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
[...]
(See wikipedia for a template of the full text.)
Also, the copyright is only stated in the LICENSE.txt file and not in every individual source code file.
If I now copy everything under project/module1/ to my own project:
my_project/
|-- module1/
| |-- file1.c
| |-- file2.c
| `-- file3.c
|-- my_file1.c
|-- my_file2.c
|-- my_source_code1/
`-- my_source_code2/
How should I state that I am not the copyright holder of the files under module1? Would it be enough to copy the original LICENSE.txt, with the original copyright holder in it's header, to the module1 subdirectory? Or should I add a copyright header to each individual file?
What if I modify any of the files under module1? Should I then somehow add myself as an additional copyright holder for the files I modified?
Note: I am perfectly fine with using the same (or a compatible) license for the code I wrote.