aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/icons.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-03-06 18:19:58 -0500
committerJesús <heckyel@hyperbola.info>2019-03-06 18:19:58 -0500
commit444d439039564f55e8d844f4743ca47ebe548a37 (patch)
tree693b0fe66d62af99ef46a30deb91dd7da9914569 /scripts/icons.sh
parent98a0f32cc84e2196687bf81adbb128403544229b (diff)
downloadcl-theme-444d439039564f55e8d844f4743ca47ebe548a37.tar.lz
cl-theme-444d439039564f55e8d844f4743ca47ebe548a37.tar.xz
cl-theme-444d439039564f55e8d844f4743ca47ebe548a37.zip
prepare for new version - step 2
Diffstat (limited to 'scripts/icons.sh')
-rw-r--r--scripts/icons.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/icons.sh b/scripts/icons.sh
new file mode 100644
index 0000000..6b273bb
--- /dev/null
+++ b/scripts/icons.sh
@@ -0,0 +1,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 "$@"