license: add GPLv3
This commit is contained in:
parent
bce7c56215
commit
9833798be1
22
license
22
license
|
@ -2,12 +2,32 @@
|
||||||
|
|
||||||
name="Hamza NANAHA"
|
name="Hamza NANAHA"
|
||||||
email="hamza.nanaha@hotmail.com"
|
email="hamza.nanaha@hotmail.com"
|
||||||
|
date=$(date +%Y)
|
||||||
|
|
||||||
outfile="LICENSE"
|
outfile="LICENSE"
|
||||||
|
|
||||||
|
|
||||||
case $1 in
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
EOM
|
||||||
|
;;
|
||||||
|
|
||||||
"public" | "unlicense")
|
"public" | "unlicense")
|
||||||
cat > $outfile <<- EOM
|
cat > $outfile <<- EOM
|
||||||
This is free and unencumbered software released into the public domain.
|
This is free and unencumbered software released into the public domain.
|
||||||
|
@ -34,7 +54,7 @@ EOM
|
||||||
|
|
||||||
* | "MIT" | "mit")
|
* | "MIT" | "mit")
|
||||||
cat > $outfile <<- EOM
|
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
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
|
|
Loading…
Reference in New Issue