aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/style.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-01-10 20:23:00 -0500
committerJesús <heckyel@hyperbola.info>2019-01-10 20:23:00 -0500
commit882d9d10def8c49b3eeb548d17462933fa2c5048 (patch)
tree6b6f5604d082daca254576c81a4788f7ee528944 /scripts/style.sh
downloadlidra-882d9d10def8c49b3eeb548d17462933fa2c5048.tar.lz
lidra-882d9d10def8c49b3eeb548d17462933fa2c5048.tar.xz
lidra-882d9d10def8c49b3eeb548d17462933fa2c5048.zip
first commit
Diffstat (limited to 'scripts/style.sh')
-rw-r--r--scripts/style.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/scripts/style.sh b/scripts/style.sh
new file mode 100644
index 0000000..8c7aaf3
--- /dev/null
+++ b/scripts/style.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+# ==============================================================================
+# FUNCTIONS - START
+# ==============================================================================
+
+run_it()
+{
+
+ local _name="${1-style}"
+ local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
+ local _src="${_dir%scripts}/src/sass/custom/${_name}.sass" # input
+ local _dest="${_dir%scripts}/dist/css/${_name}.css" # output
+ local _options="${3---sourcemap=none}"
+
+ # ----------------------------------------------------------------------------
+ local _dest_dir
+ _dest_dir="$(dirname "${_dest}")"
+
+ if [ ! -d "${_dest_dir}" ]; then
+
+ mkdir -p "${_dest_dir}"
+
+ fi
+
+ # ----------------------------------------------------------------------------
+
+ sass "${_src}":"${_dest}" "${_options}"
+
+}
+# run_it()
+
+# ==============================================================================
+# FUNCTIONS - END
+# ==============================================================================
+
+
+
+# ==============================================================================
+# EXECUTION - START
+# ==============================================================================
+
+run_it "$@"
+
+# ==============================================================================
+# EXECUTION - END
+# ==============================================================================