Skip to content

Commit

Permalink
Use sed to do the change
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Sep 13, 2024
1 parent 9790090 commit 5ddb625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions scripts/setup-centos9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,9 @@ function install_duckdb {

function install_stemmer {
wget_and_untar https://snowballstem.org/dist/libstemmer_c-${STEMMER_VERSION}.tar.gz stemmer
pushd $SCRIPTDIR/../CMake/resolve_dependency_modules/libstemmer
PATCH_DIR=$(pwd)
popd
(
cd stemmer
git apply ${PATCH_DIR}/Makefile.patch
sed -i '/CPPFLAGS=-Iinclude/ s/$/ -fPIC/' Makefile
make clean && make "-j${NPROC}"
${SUDO} cp libstemmer.a /usr/local/lib/
${SUDO} cp include/libstemmer.h /usr/local/include/
Expand Down
5 changes: 1 addition & 4 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,9 @@ function install_duckdb {

function install_stemmer {
wget_and_untar https://snowballstem.org/dist/libstemmer_c-${STEMMER_VERSION}.tar.gz stemmer
pushd $SCRIPTDIR/../CMake/resolve_dependency_modules/libstemmer
PATCH_DIR=$(pwd)
popd
(
cd stemmer
git apply ${PATCH_DIR}/Makefile.patch
sed -i '/CPPFLAGS=-Iinclude/ s/$/ -fPIC/' Makefile
make clean && make "-j${NPROC}"
${SUDO} cp libstemmer.a /usr/local/lib/
${SUDO} cp include/libstemmer.h /usr/local/include/
Expand Down

0 comments on commit 5ddb625

Please sign in to comment.