From d1c88a5cefda4602226b7cebf91e3d5db018e739 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 18 Jul 2024 19:26:47 +0200 Subject: [PATCH] core: commands: make 'install_xapian' way faster --- core/management/commands/install_xapian.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/management/commands/install_xapian.sh b/core/management/commands/install_xapian.sh index 908a53f7..3ca2ac17 100755 --- a/core/management/commands/install_xapian.sh +++ b/core/management/commands/install_xapian.sh @@ -32,13 +32,13 @@ tar xf "${BINDINGS}.tar.xz" # install echo "Installing Xapian-core..." cd "$VIRTUAL_ENV/packages/${CORE}" || exit 1 -./configure --prefix="$VIRTUAL_ENV" && make && make install +./configure --prefix="$VIRTUAL_ENV" && make -j"$(nproc)" && make install PYTHON_FLAG=--with-python3 echo "Installing Xapian-bindings..." cd "$VIRTUAL_ENV/packages/${BINDINGS}" || exit 1 -./configure --prefix="$VIRTUAL_ENV" $PYTHON_FLAG XAPIAN_CONFIG="$VIRTUAL_ENV/bin/xapian-config" && make && make install +./configure --prefix="$VIRTUAL_ENV" $PYTHON_FLAG XAPIAN_CONFIG="$VIRTUAL_ENV/bin/xapian-config" && make -j"$(nproc)" && make install # clean rm -rf "$VIRTUAL_ENV/packages"