diff options
-rw-r--r-- | scripts/aplaylist.sh | 10 | ||||
-rw-r--r-- | scripts/bulma.sh | 10 | ||||
-rw-r--r-- | scripts/fonts.sh | 5 | ||||
-rw-r--r-- | scripts/icons.sh | 5 | ||||
-rw-r--r-- | scripts/js.sh | 10 | ||||
-rw-r--r-- | scripts/playlist.sh | 10 | ||||
-rw-r--r-- | scripts/styles.sh | 10 |
7 files changed, 36 insertions, 24 deletions
diff --git a/scripts/aplaylist.sh b/scripts/aplaylist.sh index e52bb8b..6b1d1b3 100644 --- a/scripts/aplaylist.sh +++ b/scripts/aplaylist.sh @@ -9,8 +9,9 @@ run_it() local _name="${1-aplaylist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/aplaylist/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/aplaylist/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- @@ -34,8 +35,9 @@ run_compress() local _name="${1-aplaylist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/aplaylist/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/aplaylist/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.min.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- diff --git a/scripts/bulma.sh b/scripts/bulma.sh index 9875a86..9c9a386 100644 --- a/scripts/bulma.sh +++ b/scripts/bulma.sh @@ -9,8 +9,9 @@ run_it() local _name="${1-bulma}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/sass/base/${_name}.sass" # input - local _dest="${_dir%scripts}/dist/css/${_name}.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/sass/base/${_name}.sass" # input + local _dest="${_target%scripts}/dist/css/${_name}.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- @@ -33,8 +34,9 @@ run_compress() local _name="${1-bulma}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/sass/base/${_name}.sass" # input - local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/sass/base/${_name}.sass" # input + local _dest="${_target%scripts}/dist/css/${_name}.min.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- diff --git a/scripts/fonts.sh b/scripts/fonts.sh index ede0645..6675052 100644 --- a/scripts/fonts.sh +++ b/scripts/fonts.sh @@ -6,8 +6,9 @@ run_roboto() { local _name="${1-roboto-latin}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/fonts/roboto/${_name}.woff2" # input - local _dest="${_dir%scripts}/dist/fonts/roboto/" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/fonts/roboto/${_name}.woff2" # input + local _dest="${_target%scripts}/dist/fonts/roboto/" # output # copy font Roboto diff --git a/scripts/icons.sh b/scripts/icons.sh index 6b273bb..d039851 100644 --- a/scripts/icons.sh +++ b/scripts/icons.sh @@ -6,8 +6,9 @@ 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 + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/images/icons/${_name}.svg" # input + local _dest="${_target%scripts}/dist/images/icons/" # output # copy master.svg diff --git a/scripts/js.sh b/scripts/js.sh index 635c32b..3a2af3c 100644 --- a/scripts/js.sh +++ b/scripts/js.sh @@ -5,8 +5,9 @@ run_navbar() { local _name="${1-navbar-burger}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/js/${_name}.js" # input - local _dest="${_dir%scripts}/dist/js/" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/js/${_name}.js" # input + local _dest="${_target%scripts}/dist/js/" # output if [[ -n "${_src}" ]]; then @@ -20,8 +21,9 @@ run_aplaylist() { local _name="${1-aplaylist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/js/${_name}.js" # input - local _dest="${_dir%scripts}/dist/js/" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/js/${_name}.js" # input + local _dest="${_target%scripts}/dist/js/" # output if [[ -n "${_src}" ]]; then diff --git a/scripts/playlist.sh b/scripts/playlist.sh index 5f3b98a..ca76b53 100644 --- a/scripts/playlist.sh +++ b/scripts/playlist.sh @@ -9,8 +9,9 @@ run_it() local _name="${1-playlist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/playlist/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/playlist/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- @@ -34,8 +35,9 @@ run_compress() local _name="${1-playlist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/playlist/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/playlist/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.min.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- diff --git a/scripts/styles.sh b/scripts/styles.sh index 768cfb3..3267ffa 100644 --- a/scripts/styles.sh +++ b/scripts/styles.sh @@ -9,8 +9,9 @@ run_it() local _name="${1-style}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/custom/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/custom/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- @@ -34,8 +35,9 @@ run_compress() local _name="${1-style}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/custom/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/custom/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.min.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- |