projects
/
platform
/
framework
/
web
/
web-ui-fw.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
0.2.28 release
[platform/framework/web/web-ui-fw.git]
/
tools
/
CSS-trim.sh
1
#!/bin/sh
2
3
if test -f $1; then
4
file=$1;
5
else
6
exit 1;
7
fi
8
9
echo " Trim $file";
10
sed -i -e ':a;N;$!ba;s/.ui[-a-z\,\ \.]* {\n \/\*[-a-zA-Z0-9\,\(\)\ \#\_\.\%\!\*\@\:\;\t\n]*\*\/\n\n}//g' $file;
11
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;