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

Unified Diff: runtime/bin/vmservice/gen_resources_sources.sh

Issue 24844002: Initial GUI for VM service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/gen_resources_sources.sh
diff --git a/runtime/bin/vmservice/gen_resources_sources.sh b/runtime/bin/vmservice/gen_resources_sources.sh
new file mode 100755
index 0000000000000000000000000000000000000000..6d56f0ce63a2fdedd71d34aa3041a6a88be7b4a8
--- /dev/null
+++ b/runtime/bin/vmservice/gen_resources_sources.sh
@@ -0,0 +1,49 @@
+# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+#!/bin/sh
+
+
+PACKAGES="analyzer_experimental args barback browser csslib custom_element"
+PACKAGES="$PACKAGES html_import logging mdv meta mutation_observer"
+PACKAGES="$PACKAGES observe path polymer polymer_expressions shadow_dom"
+PACKAGES="$PACKAGES source_maps stack_trace unmodifiable_collection utf yaml"
+TP_PACKAGES="html5lib"
+FIND_PARAM="-not -iwholename *.svn* -not -name .gitignore -type f"
+echo "# for details. All rights reserved. Use of this source code is governed by a"
+echo "# BSD-style license that can be found in the LICENSE file."
+echo ""
+echo "# This file contains all sources for the Resources table."
+echo "{"
+echo " 'sources': ["
+echo "# VM Service backend sources"
+for i in *.dart
+do
+echo " 'vmservice/$i',"
+done
+echo "# VM Service client sources"
+for i in `find client $FIND_PARAM`
+do
+echo " 'vmservice/$i',"
+done
+echo "# Package sources"
+for p in $PACKAGES
+do
+for i in `find ../../../pkg/$p/lib $FIND_PARAM`
+do
+j=`echo $i | sed "s;\.\./\.\./\.\./pkg/$p/lib/;;"`
+echo " '<(PRODUCT_DIR)/packages/$p/$j',"
+done
+done
+echo "# Third party package sources"
+for p in $TP_PACKAGES
+do
+for i in `find ../../../pkg/third_party/$p/lib -type f -name "*"`
+do
+j=`echo $i | sed "s;\.\./\.\./\.\./pkg/third_party/$p/lib/;;"`
+echo " '<(PRODUCT_DIR)/packages/$p/$j',"
+done
+done
+echo " ],"
+echo "}"
+

Powered by Google App Engine
This is Rietveld 408576698