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

Side by Side Diff: utils/dartdoc/dartdoc

Issue 9249006: Fix copying dartdoc static files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # To generate docs for a library, run this script with the path to an entrypoint 3 # To generate docs for a library, run this script with the path to an entrypoint
4 # .dart file, like: 4 # .dart file, like:
5 # 5 #
6 # $ dartdoc foo.dart 6 # $ dartdoc foo.dart
7 # 7 #
8 # You can also pass in a couple of "special" entrypoints for generating 8 # You can also pass in a couple of "special" entrypoints for generating
9 # docs for dart's built in libraries. The special entrypoints are: 9 # docs for dart's built in libraries. The special entrypoints are:
10 # 10 #
(...skipping 22 matching lines...) Expand all
33 echo "Compiled interact.dart." 33 echo "Compiled interact.dart."
34 fi 34 fi
35 35
36 # Clean the output directory. 36 # Clean the output directory.
37 if [ -d "docs" ]; then 37 if [ -d "docs" ]; then
38 rm -r docs 38 rm -r docs
39 fi 39 fi
40 mkdir docs 40 mkdir docs
41 41
42 # Copy the static files over. 42 # Copy the static files over.
43 cp -R static/ docs 43 cp -R static/* docs
44 44
45 # Ditch the first arg so we can pass any extra arguments to dartdoc. 45 # Ditch the first arg so we can pass any extra arguments to dartdoc.
46 shift 46 shift
47 47
48 # Generate the user's docs. 48 # Generate the user's docs.
49 ../../frog/minfrog --libdir=../../frog/lib dartdoc.dart "$entrypoint" $@ 49 ../../frog/minfrog --libdir=../../frog/lib dartdoc.dart "$entrypoint" $@
50 50
51 popd >>/dev/null 51 popd >>/dev/null
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698