diff options
author | Youmin Ha <youmin.ha@samsung.com> | 2013-03-07 19:04:00 +0900 |
---|---|---|
committer | Youmin Ha <youmin.ha@samsung.com> | 2013-03-22 20:19:05 +0900 |
commit | 9bdb4edf66382d61e6548822d1120011afbe2209 (patch) | |
tree | d38de564800303675e561895e78b2318139d9966 /tools | |
parent | 946e1c70eea9c456c56c7bb91330c70734515eb2 (diff) | |
download | web-ui-fw-9bdb4edf66382d61e6548822d1120011afbe2209.tar.gz web-ui-fw-9bdb4edf66382d61e6548822d1120011afbe2209.tar.bz2 web-ui-fw-9bdb4edf66382d61e6548822d1120011afbe2209.zip |
build: Trim compiled CSS files
Trims compiled CSS files from less, which removes .LESS*
classes(actually LESS mixins).
Change-Id: I0387b4dc7481b365b28e391baa83d5dbc3e4432a
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/CSS-trim.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/CSS-trim.sh b/tools/CSS-trim.sh new file mode 100755 index 00000000..90d8fa6c --- /dev/null +++ b/tools/CSS-trim.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +if test -f $1; then + file=$1; +else + exit 1; +fi + +echo " Trim $file"; +sed -i -e ':a;N;$!ba;s/.ui[-a-z\,\ \.]* {\n \/\*[-a-zA-Z0-9\,\(\)\ \#\_\.\%\!\*\@\:\;\t\n]*\*\/\n\n}//g' $file; +sed -i -e ':a;N;$!ba;s/.LESS[a-zA-Z0-9]*[_[a-zA-Z0-9]*]* {\n[-a-zA-Z0-9\,\(\)\ \#\_\.\%\!\*\@\/\*\:\;\t\n]*}//g' $file; |