blob: d25d947a9d764d20f314f7630ed425b57a18ad37 [file] [log] [blame]
Yingdi Yuda495a92015-05-05 13:57:59 -07001#!/usr/bin/env bash
2set -x
3set -e
4
Yingdi Yu2f5379b2016-03-10 12:17:58 -08005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
7
Yingdi Yuda495a92015-05-05 13:57:59 -07008sudo rm -Rf /usr/local/include/ndn-group-encrypt
9sudo rm -f /usr/local/lib/libndn-group-encrypt*
10sudo rm -f /usr/local/lib/pkgconfig/ndn-group-encrypt*
11
12# Cleanup
13sudo ./waf -j1 --color=yes distclean
14
15# Configure/build in release mode
16./waf -j1 --color=yes configure
17./waf -j1 --color=yes build
18
19# Cleanup
20sudo ./waf -j1 --color=yes distclean
21
22# Configure/build in debug mode
23./waf -j1 --color=yes configure --debug
24./waf -j1 --color=yes build
25
26# Cleanup
27sudo ./waf -j1 --color=yes distclean
28
29# Configure/build in optimized mode with tests
30./waf -j1 --color=yes configure --with-tests
31./waf -j1 --color=yes build
32
33# Install
34sudo ./waf install -j1 --color=yes
Yingdi Yu2f5379b2016-03-10 12:17:58 -080035
36if has Linux $NODE_LABELS; then
37 sudo ldconfig
38elif has FreeBSD $NODE_LABELS; then
39 sudo ldconfig -a
40fi