Skip to content

Commit

Permalink
Scripts accept an -e flag for the path to EUI, which defaults to pwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Dec 19, 2017
1 parent b43e688 commit d344da8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/compile-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ set -e

eui="$(pwd)"

while getopts 'e:' arg
do
case ${arg} in
e) eui=${OPTARG};;
*) return 1 # illegal option
esac
done

rm -rf "${eui}/dist" "${eui}/lib"
8 changes: 8 additions & 0 deletions scripts/compile-eui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -e

eui="$(pwd)"

while getopts 'e:' arg
do
case ${arg} in
e) eui=${OPTARG};;
*) return 1 # illegal option
esac
done

compile_lib() {
local color_green="\033[0;32m"
local color_reset="\033[0m"
Expand Down
8 changes: 8 additions & 0 deletions scripts/compile-scss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -e

eui="$(pwd)"

while getopts 'e:' arg
do
case ${arg} in
e) eui=${OPTARG};;
*) return 1 # illegal option
esac
done

mkdir -p "${eui}/dist"

src="${eui}/src/theme_*.scss"
Expand Down
8 changes: 8 additions & 0 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -e

eui="$(pwd)"

while getopts 'e:' arg
do
case ${arg} in
e) eui=${OPTARG};;
*) return 1 # illegal option
esac
done

"${eui}/scripts/compile-clean.sh"
"${eui}/scripts/compile-scss.sh"
"${eui}/scripts/compile-eui.sh"

0 comments on commit d344da8

Please sign in to comment.