From 9833798be111a4c146aacac8ff3f31b71e7ea494 Mon Sep 17 00:00:00 2001 From: _N3m0 Date: Tue, 27 Feb 2024 09:02:36 +0100 Subject: [PATCH] license: add GPLv3 --- license | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/license b/license index 65d409d..16fde9c 100755 --- a/license +++ b/license @@ -2,12 +2,32 @@ name="Hamza NANAHA" email="hamza.nanaha@hotmail.com" +date=$(date +%Y) outfile="LICENSE" case $1 in +"gpl" | "GPL" | "gpl3" | "GPL3" | "gplv3" | "GPLv3") + cat > $outfile <<- EOM +Copyright (C) $date $name <$email> + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +EOM +;; + "public" | "unlicense") cat > $outfile <<- EOM This is free and unencumbered software released into the public domain. @@ -34,7 +54,7 @@ EOM * | "MIT" | "mit") cat > $outfile <<- EOM -Copyright (c) $(date +%Y) $name <$email> +Copyright (c) $date $name <$email> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the