blob: 8220c3103a0f1c52fa1f06f1458e16e97c5d53c1 [file] [log] [blame]
Yingdi Yu906c2ea2014-10-31 11:24:50 -07001#!/usr/bin/env bash
2set -x
3set -e
4
5sudo rm -Rf /usr/local/include/ChronoSync
6sudo rm -f /usr/local/lib/libChronoSync*
7sudo rm -f /usr/local/lib/pkgconfig/ChronoSync*
8
9# Cleanup
10sudo ./waf -j1 --color=yes distclean
11
12# Configure/build in debug mode
13./waf -j1 --color=yes configure --with-tests --debug
14./waf -j1 --color=yes build
15
16# Cleanup
17sudo ./waf -j1 --color=yes distclean
18
19# Configure/build in optimized mode without tests
20./waf -j1 --color=yes configure
21./waf -j1 --color=yes build
22
23# Cleanup
24sudo ./waf -j1 --color=yes distclean
25
26# Configure/build in optimized mode with tests
27./waf -j1 --color=yes configure --with-tests
28./waf -j1 --color=yes build
29
30# Install
31sudo ./waf install -j1 --color=yes
32sudo ldconfig || true