summaryrefslogtreecommitdiffstats
path: root/scripts/update-flexi-color-picker.sh
blob: 6690defa8f115187458b31c95def119b874f6194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -eu

URL_BASE='https://github.com/DavidDurman/FlexiColorPicker/raw/master'
RES_PATH='data/resources/flexi-color-picker'

download()
{
	local rpath="${1}"
	local lfile="${2}"
	shift 2

	wget -O "$(dirname "${0}")/../${RES_PATH}/${lfile}" \
		"${URL_BASE}/${rpath}"
}

download 'README.md'      'README.md'
download 'colorpicker.js' 'colorpicker.jsin'
download 'themes.css'     'themes.cssin'