OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. |
| 5 |
| 6 # Script to create AppCache manifest. |
2 | 7 |
3 echo CACHE MANIFEST | 8 echo CACHE MANIFEST |
4 | 9 |
5 date +'# %s' | 10 date +'# %s' |
6 | 11 |
7 echo CACHE: | 12 echo CACHE: |
8 | 13 |
9 PKG_DIR="$(cd $(dirname ${0})/../pkg ; pwd)" | 14 PKG_DIR="$(cd $(dirname ${0})/../pkg ; pwd)" |
10 SDK_DIR="$(cd $(dirname ${0})/../sdk ; pwd)" | 15 SDK_DIR="$(cd $(dirname ${0})/../sdk ; pwd)" |
11 LIVE_DIR="$(cd $(dirname ${0})/../web_editor ; pwd)" | 16 LIVE_DIR="$(cd $(dirname ${0})/../web_editor ; pwd)" |
12 | 17 |
13 echo ${PKG_DIR}/browser/lib/dart.js | sed -e "s|$(pwd)/||" | 18 echo ${PKG_DIR}/browser/lib/dart.js | sed -e "s|$(pwd)/||" |
14 | 19 |
15 # find ${SDK_DIR} \ | 20 # find ${SDK_DIR} \ |
16 # \( -name dartdoc -o -name pub -o -name dartium \) -prune \ | 21 # \( -name dartdoc -o -name pub -o -name dartium \) -prune \ |
17 # -o -name \*.dart -print \ | 22 # -o -name \*.dart -print \ |
18 # | sed -e "s|$(pwd)/||" | 23 # | sed -e "s|$(pwd)/||" |
19 | 24 |
20 find ${LIVE_DIR} \ | 25 find ${LIVE_DIR} \ |
21 \( -name \*~ \) -prune \ | 26 \( -name \*~ \) -prune \ |
22 -o -type f -print | sed -e "s|$(pwd)/||" | 27 -o -type f -print | sed -e "s|$(pwd)/||" |
23 | 28 |
24 echo iframe.html | 29 echo iframe.html |
25 echo iframe.js | 30 echo iframe.js |
26 echo dart-icon.png | 31 echo dart-icon.png |
27 echo dart-iphone5.png | 32 echo dart-iphone5.png |
28 | 33 |
29 echo NETWORK: | 34 echo NETWORK: |
30 echo '*' | 35 echo '*' |
OLD | NEW |