<commit_before>#!/bin/bash

export NETCDF_C_PATH=$(dirname $(dirname $(which nc-config)))
export NETCDF_FORTRAN_PATH=$(dirname $(dirname $(which nf-config)))

mkdir build
cd build
FC=mpifort CC=mpicc cmake \
    ${CMAKE_ARGS} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=$PREFIX \
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DPIO_USE_MALLOC:BOOL=ON \
    -DPIO_ENABLE_TOOLS:BOOL=OFF \
    -DPIO_ENABLE_TESTS:BOOL=OFF \
    -DPIO_ENABLE_EXAMPLES:BOOL=OFF \
    -DPIO_ENABLE_TIMING:BOOL=OFF \
    -DNetCDF_C_PATH=$NETCDF_C_PATH \
    -DNetCDF_Fortran_PATH=$NETCDF_FORTRAN_PATH \
    -DWITH_PNETCDF:BOOL=OFF \
    ..

cmake --build .

# make tests
# ctest

cmake --install .<commit_msg>Try removing some files from netcdf-fortran<commit_after>#!/bin/bash

# Remove some files that may cause static linking?
rm -rfv $PREFIX/lib/objects*

export NETCDF_C_PATH=$(dirname $(dirname $(which nc-config)))
export NETCDF_FORTRAN_PATH=$(dirname $(dirname $(which nf-config)))

mkdir build
cd build
FC=mpifort CC=mpicc cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=$PREFIX \
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DPIO_USE_MALLOC:BOOL=ON \
    -DPIO_ENABLE_TOOLS:BOOL=OFF \
    -DPIO_ENABLE_TESTS:BOOL=OFF \
    -DPIO_ENABLE_EXAMPLES:BOOL=OFF \
    -DPIO_ENABLE_TIMING:BOOL=OFF \
    -DNetCDF_C_PATH=$NETCDF_C_PATH \
    -DNetCDF_Fortran_PATH=$NETCDF_FORTRAN_PATH \
    -DWITH_PNETCDF:BOOL=OFF \
    ..

cmake --build .

# make tests
# ctest

cmake --install .
{'fraction_non_alphanumeric': 0.12288993923024984, 'fraction_numerical': 0.0, 'mean_word_length': 3.7806451612903227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6245692', 'n_tokens_mistral': 612, 'n_tokens_neox': 597, 'n_words': 89}