<commit_before>#!/bin/sh
# Use this script to release a new version of Adagios

current_version=$(grep ^Version: adagios.spec | awk '{ print $2 }')
current_release=$(grep "define release" adagios.spec | awk '{ print $3 }')

echo    "Current version is: $current_version"
echo -n "New version number: "
read new_version

echo new version: $new_version


echo "### Updating version number"
sed -i "s/Version: $current_version/Version: $new_version/" adagios.spec
sed -i "s/__version__=.*/__version__='${new_version}'/" adagios/__init__.py
echo "${new_version}-${current_release} /" > rel-eng/packages/adagios

echo "### commiting and tagging current git repo"
git commit adagios/__init__.py rel-eng/packages/adagios adagios.spec -m "Bumped version number to $new_version" > /dev/null
git tag adagios-${new_version}-${current_release} -a -m "Bumped version number to $new_version" <commit_msg>Add debian/changelog update to release.sh<commit_after>#!/bin/sh
# Use this script to release a new version of Adagios

current_version=$(grep ^Version: adagios.spec | awk '{ print $2 }')
current_release=$(grep "define release" adagios.spec | awk '{ print $3 }')

echo    "Current version is: $current_version"
echo -n "New version number: "
read new_version

echo new version: $new_version


echo "### Updating version number"
sed -i "s/Version: $current_version/Version: $new_version/" adagios.spec
sed -i "s/__version__=.*/__version__='${new_version}'/" adagios/__init__.py
echo "${new_version}-${current_release} /" > rel-eng/packages/adagios

dch -v "${new_version}" --distribution unstable "New Upstream release"

echo "### commiting and tagging current git repo"
git commit adagios/__init__.py rel-eng/packages/adagios adagios.spec debian/changelog -m "Bumped version number to $new_version" > /dev/null
git tag adagios-${new_version}-${current_release} -a -m "Bumped version number to $new_version" 
{'fraction_non_alphanumeric': 0.13547706905640486, 'fraction_numerical': 0.0021085925144965737, 'mean_word_length': 5.182410423452769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5844805', 'n_tokens_mistral': 633, 'n_tokens_neox': 622, 'n_words': 185}