Chromium Code Reviews| Index: utils/css/css |
| diff --git a/utils/css/css b/utils/css/css |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..a3d5df7e669c21780aea3a652b475e20ea5f6b41 |
| --- /dev/null |
| +++ b/utils/css/css |
| @@ -0,0 +1,20 @@ |
| +#!/bin/bash |
| + |
| +# To pre-process CSS files, run this script with the path to a .scss file, like: |
| +# |
| +# $ $DART/utils/css/css foo.scss foo.css |
| +# |
| + |
| +SRCFILE=$PWD/$1 |
| +OUTPUT=$PWD/$2 |
| +if [[ $1 == $2 ]] |
| +then |
| + echo -e "\033[31msource file must be different then output file\033[0m" |
| + exit 1 |
| +fi |
| + |
| +# Path of this bash script. |
| +BASE_DIR="$( cd "$( dirname "$0" )" && pwd )" |
| + |
| +# Pre-process the file |
| +$BASE_DIR/../../frog/minfrog --libdir=$BASE_DIR/../../frog/lib $BASE_DIR/tool.dart $SRCFILE $OUTPUT |
|
Siggi Cherem (dart-lang)
2012/03/15 01:21:25
switch to run tool.dart directly in the vm?
terry
2012/03/15 19:02:49
Done.
|