<commit_before># To build a debian package first ensure that the code exists
# within a directory called pybitmessage-x.x.x (where the x's
# are the version number), make sure that the VERSION parameter
# within debian/rules and this script are correct, then run
# this script.

#!/bin/bash

APP=pybitmessage
PREV_VERSION=0.3.3
VERSION=0.3.4
RELEASE=1
ARCH_TYPE=all

#update version numbers automatically - so you don't have to
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
sed -i 's/'''${PREV_VERSION}'''/'''${VERSION}'''/g' src/shared.py 

# Create a source archive
make clean
# change the directory name to pybitmessage-version
mv ../PyBitmessage ../${APP}-${VERSION}
make source

# Build the package
dpkg-buildpackage -A

# change the directory name back
mv ../${APP}-${VERSION} ../PyBitmessage

gpg -ba ../${APP}_${VERSION}-${RELEASE}_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz<commit_msg>Exit if `dpkg-buildpackage` fails.<commit_after># To build a debian package first ensure that the code exists
# within a directory called pybitmessage-x.x.x (where the x's
# are the version number), make sure that the VERSION parameter
# within debian/rules and this script are correct, then run
# this script.

#!/bin/bash

APP=pybitmessage
PREV_VERSION=0.3.3
VERSION=0.3.4
RELEASE=1
ARCH_TYPE=all

#update version numbers automatically - so you don't have to
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
sed -i 's/'''${PREV_VERSION}'''/'''${VERSION}'''/g' src/shared.py 

# Create a source archive
make clean
# change the directory name to pybitmessage-version
mv ../PyBitmessage ../${APP}-${VERSION}
make source

# Build the package
dpkg-buildpackage -A || exit 1

# change the directory name back
mv ../${APP}-${VERSION} ../PyBitmessage

gpg -ba ../${APP}_${VERSION}-${RELEASE}_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
{'fraction_non_alphanumeric': 0.15303430079155672, 'fraction_numerical': 0.0079155672823219, 'mean_word_length': 4.495652173913044, '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': '5639467', 'n_tokens_mistral': 640, 'n_tokens_neox': 608, 'n_words': 204}