OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 3 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE.md file. | 5 # BSD-style license that can be found in the LICENSE.md file. |
6 | 6 |
7 # This file compiles the github mock data files in to a single Dart file with a | 7 # This file compiles the github mock data files in to a single Dart file with a |
8 # hash-map of the raw file data and generates a snapshot for running the mock | 8 # hash-map of the raw file data and generates a snapshot for running the mock |
9 # server with this data. | 9 # server with this data. |
10 | 10 |
11 set -ue | 11 set -ue |
12 | 12 |
13 DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | 13 DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 $SERVICEC file "$IDL_FILE" out "$SERVICE_GEN_DIR" | 50 $SERVICEC file "$IDL_FILE" out "$SERVICE_GEN_DIR" |
51 fi | 51 fi |
52 | 52 |
53 if [[ $# -eq 0 ]] || [[ "$1" == "snapshot" ]]; then | 53 if [[ $# -eq 0 ]] || [[ "$1" == "snapshot" ]]; then |
54 cd $FLETCH_DIR | 54 cd $FLETCH_DIR |
55 $DART -c --packages=.packages \ | 55 $DART -c --packages=.packages \ |
56 -Dsnapshot="$SNAPSHOT_FILE" \ | 56 -Dsnapshot="$SNAPSHOT_FILE" \ |
57 -Dpackages="$PKG_FILE" \ | 57 -Dpackages="$PKG_FILE" \ |
58 tests/fletchc/run.dart "$MOCK_FILE" | 58 tests/fletchc/run.dart "$MOCK_FILE" |
59 fi | 59 fi |
OLD | NEW |