summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-05 14:56:45 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-05 15:03:52 (EST)
commit1546835057a94ebf2e569dd8292ccec5a97366ca (patch)
tree52624b53ad76e0d954bcfbec532c4ad53f614674 /scripts
parent869e169990dec235253d1950d0cbb7cd250c6097 (diff)
downloadmarquee-1546835057a94ebf2e569dd8292ccec5a97366ca.zip
marquee-1546835057a94ebf2e569dd8292ccec5a97366ca.tar.gz
marquee-1546835057a94ebf2e569dd8292ccec5a97366ca.tar.bz2
scripts/update-flexi-color-picker.sh: New script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-flexi-color-picker.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/update-flexi-color-picker.sh b/scripts/update-flexi-color-picker.sh
new file mode 100755
index 0000000..6690def
--- /dev/null
+++ b/scripts/update-flexi-color-picker.sh
@@ -0,0 +1,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'