<commit_before>#!/dev/null

if ! test "${#}" -eq 0 ; then
	echo "[ee] invalid arguments; aborting!" >&2
	exit 1
fi

echo "[ii] building \`zeromq\` (ZeroMQ)..." >&2

if test -e "${_tools}/pkg/zeromq" ; then
	echo "[ii] \`zeromq\` package already exists; aborting!" >&2
	echo "[ii] (to force the build remove the folder \`${_tools}/pkg/zeromq\`)" >&2
	exit 0
fi

_outputs="${_temporary}/zeromq--build"
_repository="${_repositories}/zeromq2"

echo "[ii] preparing..." >&2

if test -e "${_outputs}" ; then
	rm -R -- "${_outputs}"
fi
mkdir -- "${_outputs}"

cd -- "${_repository}"
find . -not -name '.git' -print0 | cpio -p -0 --quiet -- "${_outputs}"
chmod -R a=rX,u=rwX -- "${_outputs}"
cd -- "${_outputs}"

_CFLAGS="${pallur_CFLAGS}"
_LDFLAGS="${pallur_LDFLAGS}"
_LIBS="${pallur_LIBS}"

echo "[ii] building..." >&2

_do_exec \
	./autogen.sh

_do_exec env \
			CFLAGS="${_CFLAGS}" \
			LDFLAGS="${_LDFLAGS}" \
			LIBS="${_LIBS}" \
	./configure \
		--prefix="${_tools}/pkg/zeromq"

_do_exec env \
			CFLAGS="${_CFLAGS}" \
			LDFLAGS="${_LDFLAGS}" \
			LIBS="${_LIBS}" \
	make -j 8

echo "[ii] deploying..." >&2

mkdir -- "${_tools}/pkg/zeromq"

_do_exec \
	make install

echo "[ii] sealing..." >&2

chmod -R a=rX -- "${_tools}/pkg/zeromq"

echo "[ii] cleaning..." >&2

rm -R -- "${_outputs}"

exit 0
<commit_msg>Fix ZeroMQ build script<commit_after>#!/dev/null

if ! test "${#}" -eq 0 ; then
	echo "[ee] invalid arguments; aborting!" >&2
	exit 1
fi

echo "[ii] building \`zeromq\` (ZeroMQ)..." >&2

if test -e "${_tools}/pkg/zeromq" ; then
	echo "[ii] \`zeromq\` package already exists; aborting!" >&2
	echo "[ii] (to force the build remove the folder \`${_tools}/pkg/zeromq\`)" >&2
	exit 0
fi

_outputs="${_temporary}/zeromq--build"
_repository="${_repositories}/zeromq2"

echo "[ii] preparing..." >&2

if test -e "${_outputs}" ; then
	rm -R -- "${_outputs}"
fi
mkdir -- "${_outputs}"

cd -- "${_repository}"
find . -not -name '.git' -print0 | cpio -p -0 --quiet -- "${_outputs}"
chmod -R a=rX,u=rwX -- "${_outputs}"
cd -- "${_outputs}"

_CFLAGS="${pallur_CFLAGS}"
_CXXFLAGS="${pallur_CXXFLAGS}"
_LDFLAGS="${pallur_LDFLAGS}"
_LIBS="${pallur_LIBS}"

echo "[ii] building..." >&2

_do_exec \
	./autogen.sh

_do_exec env \
			CFLAGS="${_CFLAGS}" \
			CXXFLAGS="${_CXXFLAGS}" \
			LDFLAGS="${_LDFLAGS}" \
			LIBS="${_LIBS}" \
	./configure \
		--prefix="${_tools}/pkg/zeromq"

_do_exec env \
			CFLAGS="${_CFLAGS}" \
			CXXFLAGS="${_CXXFLAGS}" \
			LDFLAGS="${_LDFLAGS}" \
			LIBS="${_LIBS}" \
	make -j 8

echo "[ii] deploying..." >&2

mkdir -- "${_tools}/pkg/zeromq"

_do_exec \
	make install

echo "[ii] sealing..." >&2

chmod -R a=rX -- "${_tools}/pkg/zeromq"

echo "[ii] cleaning..." >&2

rm -R -- "${_outputs}"

exit 0

{'fraction_non_alphanumeric': 0.23793738489871086, 'fraction_numerical': 0.012523020257826888, 'mean_word_length': 3.359550561797753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '5089123', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1106, 'n_words': 272}