aboutsummaryrefslogtreecommitdiff
path: root/share/templater/bsd/setup
blob: 90042a4d274fbac7f9139e5cabb3acc5ebe19c84 (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
#
# BSD License templater module.
#

# Parameters
SHARE="$1"

# Include basic functions
source $SHARE/templater/functions || exit 1

# BSD License
function templater_bsd {
  if [ ! -e "LICENSE" ]; then
    __templater_echo "Setting up BSD 3-clause (New BSD) License..."
    cp $SHARE/bsd/files/LICENSE .
  else
    __templater_echo "LICENSE already set"
  fi
}

# Dispatch
templater_bsd