8f9763443c
R=jacobr@google.com Review URL: https://codereview.chromium.org//105953008 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30925 260f80e4-7a28-3924-810f-c04153c831b5
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# A polymer application compiled with dart2js depends on
|
|
# 4 js files:
|
|
# 1) packages/shadow_dom/shadow_dom.debug.js
|
|
# 2) packages/custom_element/custom-elements.debug.js
|
|
# 3) packages/browser/interop.js
|
|
# 4) index.html_bootstrap.dart.precompiled.js
|
|
|
|
# This script rolls 1, 2, 3, and 4 into index.html_bootstrap.dart.js
|
|
|
|
# Relative paths to four scripts.
|
|
SHADOW_DOM="packages/shadow_dom/shadow_dom.debug.js"
|
|
CUSTOM_ELEMENTS="packages/custom_element/custom-elements.debug.js"
|
|
INTEROP="packages/browser/interop.js"
|
|
OBSERVATORY="index.html_bootstrap.dart.precompiled.js"
|
|
OBSERVATORY_DEVTOOLS="index_devtools.html_bootstrap.dart.precompiled.js"
|
|
|
|
# Base directory
|
|
BASE="out/web"
|
|
DEPLOYED="deployed/web"
|
|
|
|
INPUT="$BASE/$SHADOW_DOM"
|
|
INPUT="$INPUT $BASE/$CUSTOM_ELEMENTS"
|
|
INPUT="$INPUT $BASE/$INTEROP"
|
|
INPUT="$INPUT $BASE/$OBSERVATORY"
|
|
|
|
OUTPUT="$DEPLOYED/index.html_bootstrap.dart.js"
|
|
|
|
# Rolling
|
|
cat $INPUT > $OUTPUT
|
|
cp $BASE/index.html $DEPLOYED/index.html
|
|
|
|
INPUT_DEVTOOLS="$INPUT $BASE/$OBSERVATORY_DEVTOOLS"
|
|
OUTPUT_DEVTOOLS="$DEPLOYED/index_devtools.html_bootstrap.dart.js"
|
|
|
|
cat $INPUT_DEVTOOLS > $OUTPUT_DEVTOOLS
|
|
cp $BASE/index_devtools.html $DEPLOYED/index_devtools.html
|