Yingdi Yu | 906c2ea | 2014-10-31 11:24:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | sudo rm -Rf /usr/local/include/ChronoSync |
| 6 | sudo rm -f /usr/local/lib/libChronoSync* |
| 7 | sudo rm -f /usr/local/lib/pkgconfig/ChronoSync* |
| 8 | |
| 9 | # Cleanup |
| 10 | sudo ./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 |
| 17 | sudo ./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 |
| 24 | sudo ./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 |
| 31 | sudo ./waf install -j1 --color=yes |
| 32 | sudo ldconfig || true |