For example, I'm building this Brainfuck interpreter. I want to add some people's programs as test cases. For example this program.The program I want to add to my repository is MIT licensed in this case, but if possible I'd like to get an answer not specific to this license. My question is basically: /what is the conventional and correct way to make note of his license such that I can just take the file and put it in my repo? I know his license allows for it but I'm not sure what I should do. (I could copy his file, but what would be 'correct' way to note to which files it applies?)An extra difficulty here is that it concerns brainfuck code, in which there are no normal comments. So I can't just take the license and put it at the top of the copied file either, which is what I would do otherwise.
How to add a licensed piece of code to my own repository? (Brainfuck)
license notice
One solution is to include the license files and mention them in comments:This code is licensed under the MIT License<code here>Another brainfuck-specific solution is to include the license terms inside of a loop at the beginning of the program (which will not execute, because the value at the start of the tape is 0, so the loop will be skipped):[This code is licensed under the MIT License. blah blah blah license terms, blah blah blah more license terms.]<code here>Alternatively, you can use an umbrella license file, which states the license(s) that each file is/are licensed under (assuming you have a directory in your repo containing all of the relevant licenses):foo.bf and bar.bf are licensed under the [MIT License](Licenses/MIT).baz.bf is licensed under the [Apache License](Licenses/Apache).Finally, because you are using Git, you can use a submodule in your repository pointing towards the other repository, with its own licensing terms.All of this is assuming that the licenses are compatible, of course.