<commit_before>#!/usr/bin/env bash
set -eu
set -o pipefail

MODULE_PATH=./lib/binding
MAPNIK_SDK=./mason_packages/.link

mkdir -p ${MODULE_PATH}/bin/
cp ${MAPNIK_SDK}/bin/mapnik-index ${MODULE_PATH}/bin/
# copy shapeindex
cp ${MAPNIK_SDK}/bin/shapeindex ${MODULE_PATH}/bin/
# copy lib
mkdir -p ${MODULE_PATH}/lib/
cp ${MAPNIK_SDK}/lib/libmapnik.* ${MODULE_PATH}/lib/
# copy plugins
cp -r ${MAPNIK_SDK}/lib/mapnik ${MODULE_PATH}/lib/
# copy share data
mkdir -p ${MODULE_PATH}/share/gdal
cp -r ${MAPNIK_SDK}/share/gdal/*.* ${MODULE_PATH}/share/gdal/
cp -r ${MAPNIK_SDK}/share/proj ${MODULE_PATH}/share/
mkdir -p ${MODULE_PATH}/share/icu
cp -r ${MAPNIK_SDK}/share/icu/*/*dat ${MODULE_PATH}/share/icu/

# generate new settings
echo "
var path = require('path');
module.exports.paths = {
    'fonts': path.join(__dirname, 'lib/mapnik/fonts'),
    'input_plugins': path.join(__dirname, 'lib/mapnik/input'),<commit_msg>resolve symlinks in mason packages [republish binary]<commit_after>#!/usr/bin/env bash
set -eu
set -o pipefail

MODULE_PATH=./lib/binding
MAPNIK_SDK=./mason_packages/.link

mkdir -p ${MODULE_PATH}/bin/
cp -L ${MAPNIK_SDK}/bin/mapnik-index ${MODULE_PATH}/bin/
# copy shapeindex
cp -L ${MAPNIK_SDK}/bin/shapeindex ${MODULE_PATH}/bin/
# copy lib
mkdir -p ${MODULE_PATH}/lib/
cp -L ${MAPNIK_SDK}/lib/libmapnik.* ${MODULE_PATH}/lib/
# copy plugins
cp -rL ${MAPNIK_SDK}/lib/mapnik ${MODULE_PATH}/lib/
# copy share data
mkdir -p ${MODULE_PATH}/share/gdal
cp -rL ${MAPNIK_SDK}/share/gdal/*.* ${MODULE_PATH}/share/gdal/
cp -rL ${MAPNIK_SDK}/share/proj ${MODULE_PATH}/share/
mkdir -p ${MODULE_PATH}/share/icu
cp -rL ${MAPNIK_SDK}/share/icu/*/*dat ${MODULE_PATH}/share/icu/

# generate new settings
echo "
var path = require('path');
module.exports.paths = {
    'fonts': path.join(__dirname, 'lib/mapnik/fonts'),
    'input_plugins': path.join(__dirname, 'lib/mapnik/input'),
{'fraction_non_alphanumeric': 0.18380394246137455, 'fraction_numerical': 0.0, 'mean_word_length': 4.63963963963964, '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': '1742195', 'n_tokens_mistral': 745, 'n_tokens_neox': 710, 'n_words': 146}