<commit_before>#! /bin/bash
# make_package.sh
# Copyright (C) 2015 <NAME> <<EMAIL>>
#
# Distributed under terms of the MIT license.
#

if [[ $# < 1 ]]; then
  echo "Please provide version number"
  exit 1
fi

pkgver=$1
pkgname=qconnect
pkgfiles=(qconnect.py qconnect.1.gz README.md LICENSE)

echo "Creating ${pkgname}_${pkgver}"
mkdir ${pkgname}_${pkgver}
echo $pkgfiles
for i in ${pkgfiles[*]}; do
  echo "Copying $i"
  cp ../$i ${pkgname}_${pkgver}
done

echo "Creating tarball"
tar czf ${pkgname}_${pkgver}.tar.gz ${pkgname}_${pkgver}

rm -rf ${pkgname}_${pkgver}

echo "Signing"
gpg --detach-sign ${pkgname}_${pkgver}.tar.gz

echo "Creating symlinks"
rm ${pkgname}_latest.tar.gz
rm ${pkgname}_latest.tar.gz.sig
ln -s ${pkgname}_${pkgver}.tar.gz ${pkgname}_latest.tar.gz
ln -s ${pkgname}_${pkgver}.tar.gz.sig ${pkgname}_latest.tar.gz.sig<commit_msg>Now using gpg armour<commit_after>#! /bin/bash
# make_package.sh
# Copyright (C) 2015 <NAME> <<EMAIL>>
#
# Distributed under terms of the MIT license.
#

if [[ $# < 1 ]]; then
  echo "Please provide version number"
  exit 1
fi

pkgver=$1
pkgname=qconnect
pkgfiles=(qconnect.py qconnect.1.gz README.md LICENSE)

echo "Creating ${pkgname}_${pkgver}"
mkdir ${pkgname}_${pkgver}
echo $pkgfiles
for i in ${pkgfiles[*]}; do
  echo "Copying $i"
  cp ../$i ${pkgname}_${pkgver}
done

echo "Creating tarball"
tar czf ${pkgname}_${pkgver}.tar.gz ${pkgname}_${pkgver}

rm -rf ${pkgname}_${pkgver}

echo "Signing"
gpg --detach-sign --armour ${pkgname}_${pkgver}.tar.gz

echo "Creating symlinks"
rm ${pkgname}_latest.tar.gz
rm ${pkgname}_latest.tar.gz.sig
ln -s ${pkgname}_${pkgver}.tar.gz ${pkgname}_latest.tar.gz
ln -s ${pkgname}_${pkgver}.tar.gz.sig ${pkgname}_latest.tar.gz.sig
{'fraction_non_alphanumeric': 0.18255813953488373, 'fraction_numerical': 0.009302325581395349, 'mean_word_length': 4.996515679442509, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '3592294', 'n_tokens_mistral': 687, 'n_tokens_neox': 659, 'n_words': 165}