<commit_before>#!/usr/bin/env bash

{ git log | head -n 1 | awk '{ print $2; }'; cat ../src/overpass_api/core/settings.cc; } | awk -f patch_settings.awk >_
mv _ ../src/overpass_api/core/settings.cc

VERSION=`cat ../src/overpass_api/core/settings.cc | grep -E '^ *version' | awk '{ print substr($1,10,length($1)-12); }'`

{ echo "$VERSION"; cat ../src/configure.ac; } | awk -f patch_configure_ac.awk >_
mv _ ../src/configure.ac

git commit -a -m "Automated commit for release $VERSION"

cat ../src/Makefile.am | awk '{ if ($1 == "#SUBDIRS" && $3 == "") print substr($0,2); else if ($1 == "SUBDIRS" && $3 != "") print "#"$0; else print $0; }' >_
mv _ ../src/Makefile.am

cat ../src/configure.ac | awk '{ if (substr($1,1,16) == "#AC_CONFIG_FILES" && $2 == "") print substr($0,2); else if (substr($1,1,15) == "AC_CONFIG_FILES" && $2 != "") print "#"$0; else print $0; }' >_
mv _ ../src/configure.ac

pushd ../build
make dist
popd<commit_msg>Keep also distdir in sync<commit_after>#!/usr/bin/env bash

{ git log | head -n 1 | awk '{ print $2; }'; cat ../src/overpass_api/core/settings.cc; } | awk -f patch_settings.awk >_
mv _ ../src/overpass_api/core/settings.cc

VERSION=`cat ../src/overpass_api/core/settings.cc | grep -E '^ *version' | awk '{ print substr($1,10,length($1)-12); }'`

{ echo "$VERSION"; cat ../src/configure.ac; } | awk -f patch_configure_ac.awk >_
mv _ ../src/configure.ac

cat ../src/Makefile.am | awk '{ if ($1 == "distdir") print $1" = osm3s_v'$VERSION'"; else print $0; }' >_
mv _ ../src/Makefile.am

git commit -a -m "Automated commit for release $VERSION"

cat ../src/Makefile.am | awk '{ if ($1 == "#SUBDIRS" && $3 == "") print substr($0,2); else if ($1 == "SUBDIRS" && $3 != "") print "#"$0; else print $0; }' >_
mv _ ../src/Makefile.am

cat ../src/configure.ac | awk '{ if (substr($1,1,16) == "#AC_CONFIG_FILES" && $2 == "") print substr($0,2); else if (substr($1,1,15) == "AC_CONFIG_FILES" && $2 != "") print "#"$0; else print $0; }' >_
mv _ ../src/configure.ac

pushd ../build
make dist
popd
{'fraction_non_alphanumeric': 0.23549826474962815, 'fraction_numerical': 0.03173029251363411, 'mean_word_length': 3.47450110864745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '4092647', 'n_tokens_mistral': 815, 'n_tokens_neox': 769, 'n_words': 197}