summary refs log tree commit diff
path: root/bin/tw-build
blob: da54fe5954ed27fbdbb3289996ec8ca552b2dcae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

SOURCE_ROOT="${HOME}/src/source"

if [ ! -d "${SOURCE_ROOT}" ]; then
  echo "It looks like ${SOURCE_ROOT} is not available."
  exit 1
fi

TARGETS=(
  'src/python/twitter/checkstyle:check'
  'src/python/twitter/messaging/julep/:julep'
  'src/python/twitter/messaging/oncall/:oncall'
  'src/python/twitter/messaging/tools/:bookkeeper'
  'src/python/twitter/messaging/tools/:bookkeeper-rereplicator'
  'src/python/twitter/messaging/tools/:customers-requests'
  'src/python/twitter/messaging/tools/:host-status'
  'src/python/twitter/messaging/tools/:msg-config'
  'src/python/twitter/messaging/tools/:partition-ownership'
  'src/python/twitter/messaging/tools/:proxy-admin'
  'src/python/twitter/messaging/xdc_replicator_check/:streams-to-replicate'
  'src/python/twitter/ops/mesos/bin/:mesosops'
)

cd "${SOURCE_ROOT}"

for target in "${TARGETS[@]}"; do
  echo -n "Build $target"
  ./pants -q binary "${target}"
done

echo "Done."