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/mpl | |
parent | 8e83eb20f8841022cf9a221f2e8447cdba1f7270 (diff) | |
download | templater-82e6bce4ea8fc61e99f6eb32dc12c470b93dccd4.tar.gz templater-82e6bce4ea8fc61e99f6eb32dc12c470b93dccd4.tar.bz2 |
New module format
Diffstat (limited to 'share/templater/mpl')
-rw-r--r-- | share/templater/mpl/description | 1 | ||||
-rw-r--r-- | share/templater/mpl/files/LICENSE (renamed from share/templater/mpl/LICENSE) | 0 | ||||
-rwxr-xr-x | share/templater/mpl/setup | 23 |
3 files changed, 24 insertions, 0 deletions
diff --git a/share/templater/mpl/description b/share/templater/mpl/description new file mode 100644 index 0000000..1ac3cdc --- /dev/null +++ b/share/templater/mpl/description @@ -0,0 +1 @@ +Mozilla Public License diff --git a/share/templater/mpl/LICENSE b/share/templater/mpl/files/LICENSE index 14e2f77..14e2f77 100644 --- a/share/templater/mpl/LICENSE +++ b/share/templater/mpl/files/LICENSE diff --git a/share/templater/mpl/setup b/share/templater/mpl/setup new file mode 100755 index 0000000..437c8f1 --- /dev/null +++ b/share/templater/mpl/setup @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Mozilla Public License templater module. +# + +# Parameters +SHARE="$1" + +# Include basic functions +source $SHARE/templater/functions || exit 1 + +# Mozilla License +function templater_mpl { + if [ ! -e "LICENSE" ]; then + __templater_echo "Setting up Mozilla Public License..." + cp $SHARE/mpl/files/LICENSE . + else + __templater_echo "LICENSE already set" + fi +} + +# Dispatch +templater_mpl |