Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
Yingdi Yu | 2f5379b | 2016-03-10 12:17:58 -0800 | [diff] [blame] | 5 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 6 | source "$JDIR"/util.sh |
| 7 | |
Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 8 | sudo rm -Rf /usr/local/include/ndn-group-encrypt |
| 9 | sudo rm -f /usr/local/lib/libndn-group-encrypt* |
| 10 | sudo rm -f /usr/local/lib/pkgconfig/ndn-group-encrypt* |
| 11 | |
| 12 | # Cleanup |
| 13 | sudo ./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 |
| 20 | sudo ./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 |
| 27 | sudo ./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 |
| 34 | sudo ./waf install -j1 --color=yes |
Yingdi Yu | 2f5379b | 2016-03-10 12:17:58 -0800 | [diff] [blame] | 35 | |
| 36 | if has Linux $NODE_LABELS; then |
| 37 | sudo ldconfig |
| 38 | elif has FreeBSD $NODE_LABELS; then |
| 39 | sudo ldconfig -a |
| 40 | fi |