2014-08-26 19:19:03 +02:00
|
|
|
#!/usr/bin/env bash
|
2014-09-24 18:00:24 +02:00
|
|
|
set -x
|
2014-12-25 15:22:01 +01:00
|
|
|
|
2015-01-16 10:10:43 +01:00
|
|
|
# If you are using my zncmodules script, you might want to run it before running this...
|
|
|
|
|
2014-12-25 15:22:01 +01:00
|
|
|
## Debian 7 has too old clang so use this with it
|
|
|
|
#unset CC
|
|
|
|
#unset CXX
|
|
|
|
|
2015-01-16 10:15:41 +01:00
|
|
|
|
|
|
|
## for use with pyenv
|
|
|
|
#export LD_LIBRARY_PATH=$HOME/.pyenv/versions/3.4.2/lib
|
2015-01-21 08:54:20 +01:00
|
|
|
#export PKG_CONFIG_PATH=$HOME/.pyenv/versions/3.4.2/lib/pkgconfig/:$HOME/.local/bin/pkg-config:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/bin/pkg-config
|
2015-01-16 10:15:41 +01:00
|
|
|
|
|
|
|
# znc directory is the cloned git repository (https://github.com/znc/znc.git)
|
2014-08-26 19:19:03 +02:00
|
|
|
cd znc
|
2015-01-16 10:15:41 +01:00
|
|
|
# to make sure that we have all changes
|
2015-01-16 10:10:43 +01:00
|
|
|
git pull
|
2015-01-16 10:15:41 +01:00
|
|
|
# to get submodules and their submodules, currently csocket
|
|
|
|
# that doesn't have submodules.
|
2015-01-03 19:49:10 +01:00
|
|
|
git submodule update --init --recursive
|
2015-01-16 10:15:41 +01:00
|
|
|
|
|
|
|
# build znc normally out-of-source (build/ directory)
|
2014-08-26 19:19:03 +02:00
|
|
|
./autogen.sh
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2014-12-25 15:22:01 +01:00
|
|
|
../configure --enable-debug --enable-perl --enable-python --enable-swig --enable-tcl --enable-cyrus
|
|
|
|
#--prefix=$HOME/.local
|
2015-01-16 10:15:41 +01:00
|
|
|
# and here you run "make -j$(nproc)" while you are in the build/ directory.
|