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

Side by Side Diff: prepend.dart

Issue 2107023003: stop using dart2dart in Makefile (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: fix description Created 4 years, 5 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
« no previous file with comments | « bin/protoc-gen-dart ('k') | 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
(Empty)
1 #!/usr/bin/env dart
2 import 'dart:io';
3
4 main(List<String> arguments) {
5 final fileName = arguments.first;
6 final file = new File(fileName);
7 final content = file.readAsStringSync();
8 file.writeAsStringSync('#!/usr/bin/env dart\n$content');
9 // For development use the line below instead of the one above to
10 // avoid using the dart2dart code.
11 // file.writeAsStringSync('#!/bin/bash\ndart bin/protoc_plugin.dart');
12 }
OLDNEW
« no previous file with comments | « bin/protoc-gen-dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698