<commit_before>#!/bin/sh

if [ ! $# == 1 ]; then
  echo "Usage: $0 <release_version>"
  exit 1
fi

if [ ! -f epgp.toc ]; then
  echo "You must run this script from the root of the epgp directory!"
  exit 1
fi

EPGP_DIR=$PWD
RELEASE_ZIP="$EPGP_DIR/epgp-$1.zip"

pushd ..
zip -r "$RELEASE_ZIP" epgp -x \*/.\* -x \*/scripts/\* -x \*/wiki/\* -x \*~
popd

unzip "$RELEASE_ZIP"

pushd epgp
mv epgp.toc epgp.toc.template
sed -e"s/@VERSION@/$1/" epgp.toc.template > epgp.toc
rm epgp.toc.template
popd

zip -u -r "$RELEASE_ZIP" epgp/epgp.toc

cat <<INFO
=============================================================================
The release file is located at:
$RELEASE_ZIP

Tag this release in svn:
svn import "$EPGP_DIR/epgp" https://epgp.googlecode.com/svn/tags/epgp-$1

Upload release file to googlecode:
"$EPGP_DIR/scripts/googlecode/googlecode-upload.py" -s "epgp-$1" -p epgp -u evlogimenos "$RELEASE_ZIP"
=============================================================================
INFO
<commit_msg>Update directions to googlecode upload scripts.<commit_after>#!/bin/sh

if [ ! $# == 1 ]; then
  echo "Usage: $0 <release_version>"
  exit 1
fi

if [ ! -f epgp.toc ]; then
  echo "You must run this script from the root of the epgp directory!"
  exit 1
fi

EPGP_DIR=$PWD
RELEASE_ZIP="$EPGP_DIR/epgp-$1.zip"

pushd ..
zip -r "$RELEASE_ZIP" epgp -x \*/.\* -x \*/scripts/\* -x \*/wiki/\* -x \*~
popd

unzip "$RELEASE_ZIP"

pushd epgp
mv epgp.toc epgp.toc.template
sed -e"s/@VERSION@/$1/" epgp.toc.template > epgp.toc
rm epgp.toc.template
popd

zip -u -r "$RELEASE_ZIP" epgp/epgp.toc

cat <<INFO
=============================================================================
The release file is located at:
$RELEASE_ZIP

Tag this release in svn:
svn import "$EPGP_DIR/epgp" https://epgp.googlecode.com/svn/tags/epgp-$1

Upload release file to googlecode:
"$EPGP_DIR/scripts/googlecode/googlecode_upload.py" -s "epgp-$1" -p epgp -u evlogimenos "$RELEASE_ZIP"
=============================================================================
INFO

{'fraction_non_alphanumeric': 0.28585461689587427, 'fraction_numerical': 0.007858546168958742, 'mean_word_length': 4.3046875, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3184207', 'n_tokens_mistral': 793, 'n_tokens_neox': 724, 'n_words': 197}