Skip to content

Commit

Permalink
finetune
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyeh committed May 24, 2013
1 parent bdcc19c commit 0d0d3b6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tool/d2j
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,11 @@ function d2j {
if [ ${f%.dart} != $f ] ; then
grep -w 'main[(] *[)]' $f > /dev/null
if [ "$?" = "0" ] ; then #found
$dart2js $minify $f
$dart2js $minify -o$f.js $f
if [ "$?" = "0" ] ; then
mv out.js ${f%.dart}.dart.js
if [ "$minify" = "--minify" ] ; then
rm out.js.map
rm out.js.deps
else
mv out.js.map ${f%.dart}.dart.js.map
mv out.js.deps ${f%.dart}.dart.js.deps
rm $f.js.map
rm $f.js.deps
fi
else
exit 1
Expand Down

0 comments on commit 0d0d3b6

Please sign in to comment.