diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-31 17:23:15 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-31 17:23:15 -0200 |
commit | 82e6bce4ea8fc61e99f6eb32dc12c470b93dccd4 (patch) | |
tree | 4b81210f80e8a3e85a1d65b01beb67f92a727066 /share/templater/gpl | |
parent | 8e83eb20f8841022cf9a221f2e8447cdba1f7270 (diff) | |
download | templater-82e6bce4ea8fc61e99f6eb32dc12c470b93dccd4.tar.gz templater-82e6bce4ea8fc61e99f6eb32dc12c470b93dccd4.tar.bz2 |
New module format
Diffstat (limited to 'share/templater/gpl')
-rw-r--r-- | share/templater/gpl/description | 1 | ||||
-rw-r--r-- | share/templater/gpl/files/LICENSE (renamed from share/templater/gpl/LICENSE) | 0 | ||||
-rwxr-xr-x | share/templater/gpl/setup | 23 |
3 files changed, 24 insertions, 0 deletions
diff --git a/share/templater/gpl/description b/share/templater/gpl/description new file mode 100644 index 0000000..04d409e --- /dev/null +++ b/share/templater/gpl/description @@ -0,0 +1 @@ +GNU GPLv3 License diff --git a/share/templater/gpl/LICENSE b/share/templater/gpl/files/LICENSE index 94a9ed0..94a9ed0 100644 --- a/share/templater/gpl/LICENSE +++ b/share/templater/gpl/files/LICENSE diff --git a/share/templater/gpl/setup b/share/templater/gpl/setup new file mode 100755 index 0000000..3491e93 --- /dev/null +++ b/share/templater/gpl/setup @@ -0,0 +1,23 @@ +#!/bin/bash +# +# GPLv3 templater module. +# + +# Parameters +SHARE="$1" + +# Include basic functions +source $SHARE/templater/functions || exit 1 + +# GPLv3 License +function templater_gpl { + if [ ! -e "LICENSE" ]; then + __templater_echo "Setting up GPLv3 License..." + cp $SHARE/gpl/files/LICENSE . + else + __templater_echo "LICENSE already set" + fi +} + +# Dispatch +templater_gpl |