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

Unified Diff: runtime/bin/vmservice/client/deploy.sh

Issue 199633007: Switch to using pub build instead of custom build_.dart script (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/client/deploy.sh
diff --git a/runtime/bin/vmservice/client/deploy.sh b/runtime/bin/vmservice/client/deploy.sh
new file mode 100755
index 0000000000000000000000000000000000000000..c1e093efd0b892f97f524ec2ef6f02499b341a93
--- /dev/null
+++ b/runtime/bin/vmservice/client/deploy.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# This script copies the build outputs produced by `pub build` to
+# the deployed directory.
+
+if [ ! -d "build" ]; then
+ echo "Please run pub build first"
+ exit
+fi
+
+if [ ! -d "deployed" ]; then
+ echo "Run this script from the client directory"
+ exit
+fi
+
+EXCLUDE="--exclude bootstrap_css"
+EXCLUDE="$EXCLUDE --exclude *.scriptUrls"
+EXCLUDE="$EXCLUDE --exclude *.precompiled.js"
+EXCLUDE="$EXCLUDE --exclude main.*"
+
+rsync -av --progress build/web/ deployed/web/ $EXCLUDE

Powered by Google App Engine
This is Rietveld 408576698