aboutsummaryrefslogtreecommitdiff
path: root/share/templater/mpl/setup
blob: 437c8f1b2af8a8025f7f459e905c9ac7faca154f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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