<commit_before>#!/bin/sh

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

PARAM1=$1
if [ $1 != "trunk" ]; then
    ENGTAG=tags/${PARAM1}
    PROTAG=tags/${PARAM1}
    DOCTAG=tags/${PARAM1}
else
    ENGTAG=trunk
    PROTAG=branches/rest
    DOCTAG=trunk
fi

# check that the directory is empty
ls * > /dev/null && exit 1

OS=`uname -s | tr [a-z] [A-Z] | sed 's/DARWIN/MAC/'`

rm -rf doc eng pro

svn co https://svn.voltdb.com/doc/$DOCTAG doc
svn co https://svn.voltdb.com/eng/$ENGTAG eng
svn co https://svn.voltdb.com/pro/$PROTAG pro

mkdir -p ~/releases/`cat eng/version.txt`
cd eng
svn status
ant clean default dist voltbin
cp obj/release/voltdb-`cat version.txt`.tar.gz ~/releases/`cat version.txt`/${OS}-voltdb-`cat version.txt`.tar.gz
cd ../pro
svn status
ant -f mmt.xml clean
VOLTCORE=../eng ant -f mmt.xml dist.pro
cp obj/pro/voltdb-ent-*.tar.gz ~/releases/`cat ../eng/version.txt`/
cd ../doc
# we do not include EE release notes in the documentation zip file
rm pdfs/enterprise_releasenotes.pdf
mv pdfs `cat ../eng/version.txt`-docs_pdf
zip ~/releases/`cat ../eng/version.txt`/`cat ../eng/version.txt`-docs_pdf.zip `cat ../eng/version.txt`-docs_pdf/*.pdf
mv `cat ../eng/version.txt`-docs_pdf pdfs
cd ../eng
echo "CRC checksums:" > ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
cksum ~/releases/`cat version.txt`/*.gz >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
echo "MD5 checksums:" >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
md5sum ~/releases/`cat version.txt`/*.gz >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
echo "SHA1 checksums:" >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
sha1sum ~/releases/`cat version.txt`/*.gz >> ~/releases/`cat version.txt`/checksums.txt

#scp -r ~/releases/`cat version.txt` <EMAIL>:/var/www/drupal/sites/default/files/archive

mkdir -p ~/releases/`cat version.txt`/other
cp obj/release/voltdb-`cat version.txt`.sym ~/releases/`cat version.txt`/other/
cd ..<commit_msg>Remove doc related stuff from the kit builder. Andrew generates the docs when he's done.<commit_after>#!/bin/sh

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

PARAM1=$1
if [ $1 != "trunk" ]; then
    ENGTAG=tags/${PARAM1}
    PROTAG=tags/${PARAM1}
else
    ENGTAG=trunk
    PROTAG=branches/rest
fi

# check that the directory is empty
ls * > /dev/null && exit 1

OS=`uname -s | tr [a-z] [A-Z] | sed 's/DARWIN/MAC/'`

rm -rf eng pro

svn co https://svn.voltdb.com/eng/$ENGTAG eng
svn co https://svn.voltdb.com/pro/$PROTAG pro

mkdir -p ~/releases/`cat eng/version.txt`
cd eng
svn status
ant clean default dist voltbin
cp obj/release/voltdb-`cat version.txt`.tar.gz ~/releases/`cat version.txt`/${OS}-voltdb-`cat version.txt`.tar.gz
cd ../pro
svn status
ant -f mmt.xml clean
VOLTCORE=../eng ant -f mmt.xml dist.pro
cp obj/pro/voltdb-ent-*.tar.gz ~/releases/`cat ../eng/version.txt`/
cd ../eng
echo "CRC checksums:" > ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
cksum ~/releases/`cat version.txt`/*.gz >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
echo "MD5 checksums:" >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
md5sum ~/releases/`cat version.txt`/*.gz >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
echo "SHA1 checksums:" >> ~/releases/`cat version.txt`/checksums.txt
echo "" >> ~/releases/`cat version.txt`/checksums.txt
sha1sum ~/releases/`cat version.txt`/*.gz >> ~/releases/`cat version.txt`/checksums.txt

#scp -r ~/releases/`cat version.txt` <EMAIL>:/var/www/drupal/sites/default/files/archive

mkdir -p ~/releases/`cat version.txt`/other
cp obj/release/voltdb-`cat version.txt`.sym ~/releases/`cat version.txt`/other/
cd ..
{'fraction_non_alphanumeric': 0.18871643261887164, 'fraction_numerical': 0.0066518847006651885, 'mean_word_length': 3.634703196347032, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 51, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '1831248', 'n_tokens_mistral': 1705, 'n_tokens_neox': 1567, 'n_words': 349}