<commit_before>#!/bin/bash
# update ../packaging/debian/packageName.dsc
# That file is used by build.opensuse.org's Open Build Service
# After the file is updated, it needs to be separately committed to git.

HERE="`dirname $0`"
ME="`basename $0`"
cd $HERE/../packaging/debian
PKG="`sed -n 's/^Source: //p' control`"
SPECFILE="../rpm/cvmfs-x509-helper.spec"
VERSION="$(grep ^Version: $SPECFILE | awk '{print $2}')"
RPMREL="$(grep '^%define release_prefix' $SPECFILE | awk '{print $3}' | cut -d% -f1)"
# if the version is current, increment the release number, else choose 1
DEBREL="`sed -n "s/^Version: ${VERSION}\.${RPMREL}//p" $PKG.dsc 2>/dev/null`"
if [ -z "$DEBREL" ]; then
    DEBREL=1
else
    let DEBREL+=1
fi
(
echo "# created by ../../ci/$ME, do not edit by hand"<commit_msg>make more portable, add missing dash from DEBREL<commit_after>#!/bin/bash
# update ../packaging/debian/packageName.dsc
# That file is used by build.opensuse.org's Open Build Service
# After the file is updated, it needs to be separately committed to git.

HERE="`dirname $0`"
ME="`basename $0`"
cd $HERE/../packaging/debian
PKG="`sed -n 's/^Source: //p' control`"
SPECFILE="../rpm/$PKG.spec"
VERSION="$(grep ^Version: $SPECFILE | awk '{print $2}')"
RPMREL="$(grep '^%define release_prefix' $SPECFILE | awk '{print $3}')"
if [ -z "$RPMREL" ]; then
    RPMREL="$(grep '^Release:' $SPECFILE | awk '{print $2}' | cut -d% -f1)"
fi
# if the version is current, increment the release number, else choose 1
DEBREL="`sed -n "s/^Version: ${VERSION}\.${RPMREL}-//p" $PKG.dsc 2>/dev/null`"
if [ -z "$DEBREL" ]; then
    DEBREL=1
else
    let DEBREL+=1
fi
(
echo "# created by ../../ci/$ME, do not edit by hand"
{'fraction_non_alphanumeric': 0.19322235434007135, 'fraction_numerical': 0.013079667063020214, 'mean_word_length': 4.038922155688622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5036174', 'n_tokens_mistral': 651, 'n_tokens_neox': 620, 'n_words': 195}