Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Side by Side Diff: samples/calculator/build_app.sh

Issue 10010009: Calculator App for ChromeOS with fixes for templates/CSS to support this application. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Mininimal templates and more text node tests. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/bin/bash
2
3 # Example:
4 #
5 # ./build_app.sh ~/www
6 #
7 # get the number of command-line arguments given
8 ARGC=$#
9
10 if [[ $ARGC -ne 1 ]];
11 then
12 echo "Output directory required"
13 else
14 echo "Generating template"
15 ../../utils/template/template calcui.tmpl calcui.dart
16 cd ../../frog
17
18 echo "Compiling Dart code"
19 ./frog.py --html -- --out=../samples/calculator/calculator.js ../samples/calcu lator/calculator.dart
20
21 echo "Creating dart directory in ~/www"
22 mkdir $1/dart
23 chmod 777 $1/dart
24
25 echo "Creating calculator directory in ~/www/dart"
26 mkdir $1/dart/calculator
27 chmod 777 $1/dart/calculator
28
29 echo "Copying all Calculator files to ~/www/dart/calculator"
30 cp ../samples/calculator/*.* $1/dart/calculator/.
31 chmod 777 $1/dart/calculator/*.*
32
33 echo "ChromeOS application ready"
34 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698