<commit_before>#!/bin/sh -e
#
# This script is for Innobase internal use.
#
# Create InnoDB source archive that is going to be shipped to users.
#
# This constitutes of:
# (It would have been nice if we can archive branches/zip and ship it,
# but we need to create Makefile.in, so it is a bit more complex. Makefile.in
# is required in order not to require users to have autotools to generate it.
# Users should replace storage/innobase and compile mysql as usual -
# ./configure ; make)
#
# 1. Get the MySQL sources
# 2. Replace storage/innobase from the SVN
# 3. Remove files that need not be shipped
# 4. Create storage/innobase/Makefile.in
# 5. Archive storage/innobase
#

MYSQL_BRANCH="5.1"
MYSQL_VER="${MYSQL_BRANCH}.23-rc"

INNODB_VER="1.0.a1"

# end of changeable variables

MYSQL_DIR="mysql-${MYSQL_VER}"
MYSQL_ARCHIVE="${MYSQL_DIR}.tar.gz"

INNODB_DIR="innodb-${MYSQL_BRANCH}-${INNODB_VER}"

INNODB_SVN_REPO="https://svn.innodb.com/svn/innodb"

REMOVE_FILES="
revert_gen.sh
scripts/build-plugin.sh
scripts/dynconfig
scripts/export.sh
scripts/make_source_release.sh
"

MD5_CMD="md5"

# get MySQL sources
# pick one mirror from http://dev.mysql.com/downloads/mirrors.html
#wget ftp://ftp.easynet.be/mysql/Downloads/MySQL-${MYSQL_BRANCH}/${MYSQL_ARCHIVE}
wget ftp://mysql.online.bg/mysql/Downloads/MySQL-${MYSQL_BRANCH}/${MYSQL_ARCHIVE}
# bkf clone -rmysql-${MYSQL_VER%-rc} \
# 	bk://mysql.bkbits.net/mysql-${MYSQL_BRANCH} ./mysql-${MYSQL_VER}
tar -zxf ${MYSQL_ARCHIVE}

# get InnoDB sources
cd ${MYSQL_DIR}/storage
rm -fr innobase
# XXX this must export a specific tag, not the latest revision, but<commit_msg>branches/zip:<commit_after>#!/bin/sh -e
#
# This script is for Innobase internal use.
#
# Create InnoDB source archive that is going to be shipped to users.
#
# This constitutes of:
# (It would have been nice if we can archive branches/zip and ship it,
# but we need to create Makefile.in, so it is a bit more complex. Makefile.in
# is required in order not to require users to have autotools to generate it.
# Users should replace storage/innobase and compile mysql as usual -
# ./configure ; make)
#
# 1. Get the MySQL sources
# 2. Replace storage/innobase from the SVN
# 3. Remove files that need not be shipped
# 4. Create storage/innobase/Makefile.in
# 5. Archive storage/innobase
#

MYSQL_BRANCH="5.1"
MYSQL_VER="${MYSQL_BRANCH}.23-rc"

INNODB_VER="1.0.a1"

# end of changeable variables

MYSQL_DIR="mysql-${MYSQL_VER}"
MYSQL_ARCHIVE="${MYSQL_DIR}.tar.gz"

INNODB_DIR="innodb-${MYSQL_BRANCH}-${INNODB_VER}"

INNODB_SVN_REPO="https://svn.innodb.com/svn/innodb"

REMOVE_FILES="
revert_gen.sh
scripts/dynconfig
scripts/export.sh
scripts/make_binary_release.sh
scripts/make_source_release.sh
"

MD5_CMD="md5"

# get MySQL sources
# pick one mirror from http://dev.mysql.com/downloads/mirrors.html
#wget ftp://ftp.easynet.be/mysql/Downloads/MySQL-${MYSQL_BRANCH}/${MYSQL_ARCHIVE}
wget ftp://mysql.online.bg/mysql/Downloads/MySQL-${MYSQL_BRANCH}/${MYSQL_ARCHIVE}
# bkf clone -rmysql-${MYSQL_VER%-rc} \
# 	bk://mysql.bkbits.net/mysql-${MYSQL_BRANCH} ./mysql-${MYSQL_VER}
tar -zxf ${MYSQL_ARCHIVE}

# get InnoDB sources
cd ${MYSQL_DIR}/storage
rm -fr innobase
# XXX this must export a specific tag, not the latest revision, but
{'fraction_non_alphanumeric': 0.1261177921677459, 'fraction_numerical': 0.008633980881899476, 'mean_word_length': 4.622183708838821, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5300284', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1248, 'n_words': 317}