|
| 1 | +/* |
| 2 | + * Copyright (C) 2022 Nikolas Koesling <nikolas@koesling.info>. |
| 3 | + * This program is free software. You can redistribute it and/or modify it under the terms of the MIT License. |
| 4 | + */ |
| 5 | + |
| 6 | +#include "license.hpp" |
| 7 | + |
| 8 | +void print_licenses(std::ostream &o) { |
| 9 | + o << "This Application (" << PROJECT_NAME << ' ' << PROJECT_VERSION "): " << std::endl; |
| 10 | + o << std::endl; |
| 11 | + o << " MIT License" << std::endl; |
| 12 | + o << std::endl; |
| 13 | + o << " Copyright (c) 2021-2022 Nikolas Koesling" << std::endl; |
| 14 | + o << std::endl; |
| 15 | + o << " Permission is hereby granted, free of charge, to any person obtaining a copy" << std::endl; |
| 16 | + o << " of this software and associated documentation files (the \"Software\"), to deal" << std::endl; |
| 17 | + o << " in the Software without restriction, including without limitation the rights" << std::endl; |
| 18 | + o << " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" << std::endl; |
| 19 | + o << " copies of the Software, and to permit persons to whom the Software is" << std::endl; |
| 20 | + o << " furnished to do so, subject to the following conditions:" << std::endl; |
| 21 | + o << std::endl; |
| 22 | + o << " The above copyright notice and this permission notice shall be included in all" << std::endl; |
| 23 | + o << " copies or substantial portions of the Software." << std::endl; |
| 24 | + o << std::endl; |
| 25 | + o << " THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" << std::endl; |
| 26 | + o << " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," << std::endl; |
| 27 | + o << " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" << std::endl; |
| 28 | + o << " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" << std::endl; |
| 29 | + o << " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," << std::endl; |
| 30 | + o << " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE" << std::endl; |
| 31 | + o << " SOFTWARE." << std::endl; |
| 32 | + o << std::endl; |
| 33 | + o << std::endl; |
| 34 | + o << "cxxopts Library (https://github.com/jarro2783/cxxopts)" << std::endl; |
| 35 | + o << std::endl; |
| 36 | + o << " MIT License" << std::endl; |
| 37 | + o << std::endl; |
| 38 | + o << " Copyright (c) 2014 Jarryd Beck" << std::endl; |
| 39 | + o << std::endl; |
| 40 | + o << " Permission is hereby granted, free of charge, to any person obtaining a copy" << std::endl; |
| 41 | + o << " of this software and associated documentation files (the \"Software\"), to deal" << std::endl; |
| 42 | + o << " in the Software without restriction, including without limitation the rights" << std::endl; |
| 43 | + o << " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" << std::endl; |
| 44 | + o << " copies of the Software, and to permit persons to whom the Software is" << std::endl; |
| 45 | + o << " furnished to do so, subject to the following conditions:" << std::endl; |
| 46 | + o << std::endl; |
| 47 | + o << " The above copyright notice and this permission notice shall be included in" << std::endl; |
| 48 | + o << " all copies or substantial portions of the Software." << std::endl; |
| 49 | + o << std::endl; |
| 50 | + o << " THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" << std::endl; |
| 51 | + o << " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," << std::endl; |
| 52 | + o << " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" << std::endl; |
| 53 | + o << " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" << std::endl; |
| 54 | + o << " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," << std::endl; |
| 55 | + o << " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN" << std::endl; |
| 56 | + o << " THE SOFTWARE." << std::endl; |
| 57 | +} |
0 commit comments