OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 # Copyright (c) 2015, the Dartino 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.md file. | |
5 | |
6 set -e | |
7 | |
8 BUILD_DIR=$(pwd)/out/DebugIA32Clang | |
9 FLETCH_AGENT_SNAPSHOT=${BUILD_DIR}/fletch-agent.snapshot | |
10 export FLETCH_VM=${BUILD_DIR}/fletch-vm | |
11 export AGENT_IP=127.0.0.1 | |
12 export AGENT_PORT=12121 | |
13 export AGENT_PID_FILE=${BUILD_DIR}/agent/var/run/fletch-agent.pid | |
14 export AGENT_LOG_FILE=${BUILD_DIR}/agent/var/log/fletch-agent.log | |
15 export VM_LOG_DIR=${BUILD_DIR}/agent/var/log/fletch | |
16 | |
17 # Create required files. | |
18 mkdir -p ${VM_LOG_DIR} | |
19 touch ${AGENT_PID_FILE} ${AGENT_LOG_FILE} | |
20 | |
21 # Create snapshot | |
22 ${BUILD_DIR}/fletch quit | |
23 ${BUILD_DIR}/fletch export pkg/fletch_agent/bin/agent.dart to \ | |
24 $FLETCH_AGENT_SNAPSHOT | |
25 | |
26 # Run the agent | |
27 exec ${FLETCH_VM} ${FLETCH_AGENT_SNAPSHOT} | |
OLD | NEW |