<commit_before>#!/bin/bash

[ "$VERSION" == "" ] && VERSION=0.57_cur$(date +%Y%m%d) && ISCURRELEASE=1
echo ">>> preparing $VERSION archives ..."

cd ..
echo $VERSION > VERSION

#SRC_FILES="src/*.cpp src/*.m src/common/*.cpp src/client/*.cpp src/server/*.cpp include/*.h"
SRC_FILES="src include hawknl pstreams"
STD_FILES="VERSION CMakeLists.txt *.sh *.bat build/Xcode"
DOC_FILES="COPYING.LIB DEPS doc"
DAT_FILES="share/gamedir share/*.png share/*.icns share/*.ico share/*.svg"

export SRC_RELEASE="$SRC_FILES $STD_FILES $DOC_FILES $DAT_FILES"
export WIN32_RELEASE="doc COPYING.LIB share/gamedir/* distrib/win32/*"

export ARCHIVE_PREFIX="distrib/tarball/OpenLieroX_${VERSION}"
export SRC_PREFIX="${ARCHIVE_PREFIX}.src"
export WIN32_PREFIX="${ARCHIVE_PREFIX}.win32"

if [ "$ISCURRELEASE" == "1" ]; then
	echo ">>> deleting previous archives ..."
	rm distrib/tarball/OpenLieroX_0.57_cur*
fi

# cleaning up
rm -rf distrib/OpenLieroX 2>/dev/null
rm ${SRC_PREFIX}.tar* 2>/dev/null
rm ${WIN32_PREFIX}.zip 2>/dev/null

echo ">>> creating source tar.bz ..."
ln -s .. distrib/OpenLieroX
for FILE in $SRC_RELEASE; do
	[ -e ${SRC_PREFIX}.tar ] && MOD_FLAG=-r || MOD_FLAG=-c
	cd distrib
	tar --exclude=.svn --exclude=*~ $MOD_FLAG -hf \
		../${SRC_PREFIX}.tar \
		OpenLieroX/$FILE
	cd ..
done<commit_msg>updated distrib script<commit_after>#!/bin/bash

[ "$VERSION" == "" ] && VERSION=0.57_cur$(date +%Y%m%d) && ISCURRELEASE=1
echo ">>> preparing $VERSION archives ..."

cd ..
echo $VERSION > VERSION

SRC_FILES="src include hawknl pstreams boost_process"
STD_FILES="VERSION CMakeLists.txt *.sh *.bat build/Xcode debian"
DOC_FILES="COPYING.LIB DEPS doc"
DAT_FILES="share/gamedir share/*.png share/*.icns share/*.ico share/*.svg share/*.xpm"

export SRC_RELEASE="$SRC_FILES $STD_FILES $DOC_FILES $DAT_FILES"
export WIN32_RELEASE="doc COPYING.LIB share/gamedir/* distrib/win32/*"

export ARCHIVE_PREFIX="distrib/tarball/OpenLieroX_${VERSION}"
export SRC_PREFIX="${ARCHIVE_PREFIX}.src"
export WIN32_PREFIX="${ARCHIVE_PREFIX}.win32"

if [ "$ISCURRELEASE" == "1" ]; then
	echo ">>> deleting previous archives ..."
	rm distrib/tarball/OpenLieroX_0.57_cur*
fi

# cleaning up
rm -rf distrib/OpenLieroX 2>/dev/null
rm ${SRC_PREFIX}.tar* 2>/dev/null
rm ${WIN32_PREFIX}.zip 2>/dev/null

echo ">>> creating source tar.bz ..."
ln -s .. distrib/OpenLieroX
for FILE in $SRC_RELEASE; do
	[ -e ${SRC_PREFIX}.tar ] && MOD_FLAG=-r || MOD_FLAG=-c
	cd distrib
	tar --exclude=.svn --exclude=*~ $MOD_FLAG -hf \
		../${SRC_PREFIX}.tar \
		OpenLieroX/$FILE
	cd ..
done
{'fraction_non_alphanumeric': 0.17786561264822134, 'fraction_numerical': 0.016600790513833993, 'mean_word_length': 4.562637362637362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '7289152', 'n_tokens_mistral': 1036, 'n_tokens_neox': 943, 'n_words': 202}