Skip to content
Snippets Groups Projects
Commit 8db4f7af authored by gnaegi's avatar gnaegi
Browse files

OO-253 optimize sass compile script for default theme and custom theme compilation

parent b92ff43d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#
# compilescript for openolat-SASS-theme
# can be included into eclipse-project-build (project-properties --> "Builders")
# Compilescript for openolat-SASS-theme
# Can be included into eclipse-project-build (project-properties --> "Builders")
#
# It compiles the whole directory and mostly all changed files.
# In the case it does not compile all files, it's helpful to delete the sass-cache (rm -r .sass-cache).
#
# usage:
# ./compiletheme.sh # compile themes in the current directory
# ./compiletheme.sh /path/to/your/custom/theme # compile themes in the given directory
#
####
style=compressed
#style=compact
echo "compiling SASS: $1 $style"
# default to compile the themes in the current directory
directory="."
if [ ! -z $1 ]; then directory=$1; fi
echo "Compiling SASS: $directory $style"
sass --version
sass --style $style --update $1/layout.scss:$1/layout.css --load-path openolat openolat/all openolat/all/modules openolat/print openolat/mobile
sass --style $style --update $directory:$directory --load-path openolat openolat/all openolat/all/modules openolat/print openolat/mobile
echo "done"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment