summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYoumin Ha <youmin.ha@samsung.com>2013-03-07 19:04:00 +0900
committerYoumin Ha <youmin.ha@samsung.com>2013-03-22 20:19:05 +0900
commit9bdb4edf66382d61e6548822d1120011afbe2209 (patch)
treed38de564800303675e561895e78b2318139d9966 /tools
parent946e1c70eea9c456c56c7bb91330c70734515eb2 (diff)
downloadweb-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-xtools/CSS-trim.sh11
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;