sernatur/script/linux_bundler.sh
2018-10-18 16:31:50 -03:00

9 lines
201 B
Bash
Executable File

#!/bin/sh -eu
libdir="${MESON_INSTALL_PREFIX}/lib"
mkdir -p $libdir
libfile=`ldd ${MESON_INSTALL_PREFIX}/bin/sernatur | grep libpq | cut -d ' ' -f 3`
cp $libfile "${libdir}"
strip "${libdir}/libpq"*