<commit_before>#!/bin/sh


#AC_INIT([mpg123], [0.60-devel], [<EMAIL>])
PACKAGE_NAME=`sed -n 's/^AC_INIT(\[\([^,]*\)\], .*$/\1/p' < configure.ac`
PACKAGE_VERSION=`sed -n 's/^AC_INIT([^,]*, \[\([^,]*\)\], .*$/\1/p' < configure.ac`
PACKAGE_BUGREPORT=`sed -n 's/^AC_INIT([^,]*, [^,]*, \[\(.*\)\])$/\1/p' < configure.ac`

cd src

# Need to extract this automatically from configure.ac
echo "// Created by MakeLegacy.sh" > config.h
echo "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >> config.h
echo "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >> config.h
echo "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >> config.h

exec make -f Makefile.legacy $*<commit_msg>Make sure that configure.ac exists before runing sed over it<commit_after>#!/bin/sh

# Check that configure.ac exists
if test ! -f configure.ac; then
	echo "Can't find configure.ac"
	exit
fi

#AC_INIT([mpg123], [0.60-devel], [<EMAIL>])
PACKAGE_NAME=`sed -n 's/^AC_INIT(\[\([^,]*\)\], .*$/\1/p' < configure.ac`
PACKAGE_VERSION=`sed -n 's/^AC_INIT([^,]*, \[\([^,]*\)\], .*$/\1/p' < configure.ac`
PACKAGE_BUGREPORT=`sed -n 's/^AC_INIT([^,]*, [^,]*, \[\(.*\)\])$/\1/p' < configure.ac`

cd src

# Write out our own very basic config.h
echo "// Created by MakeLegacy.sh" > config.h
echo "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >> config.h
echo "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >> config.h
echo "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >> config.h

exec make -f Makefile.legacy $*
{'fraction_non_alphanumeric': 0.24622770919067216, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 4.286231884057971, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '1246288', 'n_tokens_mistral': 619, 'n_tokens_neox': 586, 'n_words': 128}