diff options
-rw-r--r-- | config/snippet/mit | 17 | ||||
-rw-r--r-- | include/rom.sh | 9 |
2 files changed, 26 insertions, 0 deletions
diff --git a/config/snippet/mit b/config/snippet/mit new file mode 100644 index 00000000..969d061e --- /dev/null +++ b/config/snippet/mit @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/include/rom.sh b/include/rom.sh index e7745271..808959d8 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -29,6 +29,15 @@ copyps1bios() x_ rm -Rf bin/playstation x_ mkdir -p bin/playstation x_ cp src/pcsx-redux/src/mips/openbios/openbios.bin bin/playstation + + printf "MIT License\n\nCopyright (c) 2019-2024 PCSX-Redux authors\n\n" \ + > bin/playstation/COPYING.txt || $err "!pcsx-redux copyright" + cat config/snippet/mit >>bin/playstation/COPYING.txt || $err "!pcsx MIT" + + if [ -e "src/pcsx-redux/.git" ]; then + git -C src/pcsx-redux/src/mips/openbios shortlog -sne > \ + bin/playstation/AUTHORS.txt || $err "!pcsx-redux authors" + fi } mkpayload_grub() |