<commit_before>#! /bin/sh

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir

version=`sed -n /AC_INIT\(/,/\)/p configure.ac | tr -d '\n\t' | cut -d, -f2`
if test x$VERSION != x; then
	echo "Updating configure.ac version..."
	sed /AC_INIT\(/,/\)/s/"$version"/"$VERSION"/g -i configure.ac
	version="$VERSION"
fi
echo "Updating COPYING version..."
sed -e 's/^Open-MX .*/Open-MX '${version}'/' -i COPYING
echo "Updating open-mx.spec version..."
sed -e 's/^Version: .*/Version: '${version}'/' -i open-mx.spec

echo "Creating the build-aux directory if necessary..."
mkdir -p build-aux
echo "Running aclocal..."
aclocal || exit 1
echo "Running autoheader..."
autoheader || exit 1
echo "Running libtoolize..."
libtoolize -c || exit 1
echo "Running automake..."
automake -ac || exit 1
echo "Running autoconf..."
autoconf || exit 1

cd $ORIGDIR || exit $?<commit_msg>Fixed an issue in autogen.sh<commit_after>#! /bin/sh

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir

version=`sed -n /AC_INIT\(/,/\)/p configure.ac | tr -d '\n\t' | cut -d, -f2`
if test x$VERSION != x; then
	echo "Updating configure.ac version..."
	sed /AC_INIT\(/,/\)/s/"$version"/"$VERSION"/g -i configure.ac
	version="$VERSION"
fi
echo "Updating COPYING version..."
sed -e 's/^Open-MX .*/Open-MX '${version}'/' -i COPYING
echo "Updating open-mx.spec version..."
sed -e 's/^Version: .*/Version: '${version}'/' -i open-mx.spec

echo "Creating the build-aux directory if necessary..."
mkdir -p build-aux
echo "Running aclocal..."
aclocal --force || exit 1
echo "Running autoheader..."
autoheader -f || exit 1
echo "Running libtoolize..."
libtoolize -cf || exit 1
echo "Running automake..."
automake -ac || exit 1
echo "Running autoconf..."
autoconf -f || exit 1

cd $ORIGDIR || exit $?
{'fraction_non_alphanumeric': 0.20166666666666666, 'fraction_numerical': 0.0077777777777777776, 'mean_word_length': 3.360774818401937, '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': '1583830', 'n_tokens_mistral': 678, 'n_tokens_neox': 657, 'n_words': 213}