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