|
| 1 | +/* |
| 2 | +This file is part of runic. |
| 3 | +
|
| 4 | +Runic is free software: you can redistribute it and/or modify |
| 5 | +it under the terms of the GNU General Public License version 2 |
| 6 | +as published by the Free Software Foundation. |
| 7 | +
|
| 8 | +Runic is distributed in the hope that it will be useful, |
| 9 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | +GNU General Public License for more details. |
| 12 | +
|
| 13 | +You should have received a copy of the GNU General Public License |
| 14 | +along with runic. If not, see <http://www.gnu.org/licenses/>. |
| 15 | +
|
| 16 | +*/ |
| 17 | + |
| 18 | +package main |
| 19 | + |
| 20 | +import "core:fmt" |
| 21 | + |
| 22 | +VERSION_MAJOR :: 0 |
| 23 | +VERSION_MINOR :: 6 |
| 24 | + |
| 25 | +print_version :: #force_inline proc() { |
| 26 | + fmt.printfln( |
| 27 | + `runic {}.{} |
| 28 | +Runic is free software: you can redistribute it and/or modify |
| 29 | +it under the terms of the GNU General Public License version 2 |
| 30 | +as published by the Free Software Foundation. |
| 31 | +
|
| 32 | +Runic is distributed in the hope that it will be useful, |
| 33 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 34 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 35 | +GNU General Public License for more details.`, |
| 36 | + VERSION_MAJOR, |
| 37 | + VERSION_MINOR, |
| 38 | + ) |
| 39 | +} |
| 40 | + |
| 41 | +print_credits :: #force_inline proc() { |
| 42 | + fmt.println( |
| 43 | + `Runic was able to be made thanks to other free and open source software: |
| 44 | +
|
| 45 | +--------------- libclang ------------------ |
| 46 | +Part of the LLVM Project, under the Apache License v2.0 with LLVM |
| 47 | +Exceptions. |
| 48 | +See https://llvm.org/LICENSE.txt for license information. |
| 49 | +SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 50 | +--------------- libclang ------------------ |
| 51 | +
|
| 52 | +--------------- libyaml ------------------- |
| 53 | +Copyright (c) 2017-2020 Ingy döt Net |
| 54 | +Copyright (c) 2006-2016 Kirill Simonov |
| 55 | +
|
| 56 | +Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 57 | +this software and associated documentation files (the "Software"), to deal in |
| 58 | +the Software without restriction, including without limitation the rights to |
| 59 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 60 | +of the Software, and to permit persons to whom the Software is furnished to do |
| 61 | +so, subject to the following conditions: |
| 62 | +
|
| 63 | +The above copyright notice and this permission notice shall be included in all |
| 64 | +copies or substantial portions of the Software. |
| 65 | +
|
| 66 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 67 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 68 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 69 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 70 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 71 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 72 | +SOFTWARE. |
| 73 | +--------------- libyaml ------------------- |
| 74 | +`, |
| 75 | + ) |
| 76 | +} |
0 commit comments