aboutsummaryrefslogtreecommitdiff
path: root/templater
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-27 19:57:42 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-27 19:57:42 -0200
commitfd89cae29180a6a28e6e55b51ce89e70ea3a4984 (patch)
treee57ca178d78e6ddf1f540759510506248791cd23 /templater
parent33aede62f471afa072498a82df8c4ca53fbfb5ef (diff)
downloadtemplater-fd89cae29180a6a28e6e55b51ce89e70ea3a4984.tar.gz
templater-fd89cae29180a6a28e6e55b51ce89e70ea3a4984.tar.bz2
LICENSE support
Diffstat (limited to 'templater')
-rwxr-xr-xtemplater50
1 files changed, 45 insertions, 5 deletions
diff --git a/templater b/templater
index 66413fc..72d4b07 100755
--- a/templater
+++ b/templater
@@ -346,7 +346,7 @@ function templater_drupal8 {
# GPLv3 License
function templater_gpl {
if [ ! -e "LICENSE" ]; then
- __templater_echo "Setting up GPLv3 license..."
+ __templater_echo "Setting up GPLv3 License..."
cp $DIRNAME/share/gpl/LICENSE .
else
__templater_echo "LICENSE already set"
@@ -355,22 +355,62 @@ function templater_gpl {
# AGPLv3 License
function templater_agpl {
- true
+ if [ ! -e "LICENSE" ]; then
+ __templater_echo "Setting up Affero GPLv3 License..."
+ cp $DIRNAME/share/agpl/LICENSE .
+ else
+ __templater_echo "LICENSE already set"
+ fi
}
# MIT License
function templater_mit {
- true
+ if [ ! -e "LICENSE" ]; then
+ __templater_echo "Setting up MIT License..."
+ cp $DIRNAME/share/mit/LICENSE .
+ else
+ __templater_echo "LICENSE already set"
+ fi
}
# Apache License
function templater_apache {
- true
+ if [ ! -e "LICENSE" ]; then
+ __templater_echo "Setting up Apache License..."
+ cp $DIRNAME/share/apache/LICENSE .
+ else
+ __templater_echo "LICENSE already set"
+ fi
}
# BSD License
function templater_bsd {
- true
+ if [ ! -e "LICENSE" ]; then
+ __templater_echo "Setting up BSD 3-clause (New BSD) License..."
+ cp $DIRNAME/share/bsd/LICENSE .
+ else
+ __templater_echo "LICENSE already set"
+ fi
+}
+
+# Mozilla License
+function templater_mpl {
+ if [ ! -e "LICENSE" ]; then
+ __templater_echo "Setting up Mozilla Public License..."
+ cp $DIRNAME/share/mpl/LICENSE .
+ else
+ __templater_echo "LICENSE already set"
+ fi
+}
+
+# Do What the Fuck You Want to Public License - WTFPL
+function templater_wtfpl {
+ if [ ! -e "LICENSE" ]; then
+ __templater_echo "Setting up Do What the Fuck You Want Public License..."
+ cp $DIRNAME/share/wtfpl/LICENSE .
+ else
+ __templater_echo "LICENSE already set"
+ fi
}
# Syntax check