aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/icons.sh
blob: 6b273bb8c22ac858e94a035270797e4c69c4d09a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# copy icons
#

run_icons()
{
    local _name="${1-master}"
    local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
    local _src="${_dir%scripts}/src/images/icons/${_name}.svg" # input
    local _dest="${_dir%scripts}/dist/images/icons/" # output

    # copy master.svg

    if [[ -n "${_src}" ]];
    then
        rm -rfv "${_dest}"
        mkdir -p "${_dest}"
        cp -fv "${_src}" "${_dest}"
    fi

}

# ==============================================================================
# EXECUTION - START
# ==============================================================================
run_icons "$@"