<commit_before>#!/bin/sh

# For initial create repo
# git clone http://source.winehq.org/git/wine.git wine-origin
# git remote add winehq http://source.winehq.org/git/wine.git

MAILTO=<EMAIL>
#MAILTO=<EMAIL>

. /usr/share/eterbuild/eterbuild

cd /srv/wine/Projects/wine-origin || exit 1

# check repo
git rev-parse HEAD >/dev/null || fatal "check repo failed"

# save TAG for last commit
OLDTAG=$(git rev-parse HEAD)

# Cleanup before update
git checkout -f

# try pull and exit if all up-to-date
gpull -c winehq master && { echocon "No work now" ; exit 0; }
gpull winehq master || { echocon "Some update error" ; exit 0; }

NEWTAG=$(git rev-parse HEAD)

[ "$OLDTAG" = "$NEWTAG" ] && return

LINES=$(git log $OLDTAG..$NEWTAG --author=".*<EMAIL>" --pretty=short)

# FIXME: нужно исправить кодировку присылаемых писем
if [ -n "$LINES" ] ; then
	(	echo "New Etersoft's patches since last build time:"
		git log $OLDTAG..$NEWTAG --author=".*<EMAIL>" --pretty=short ; 
		echo; echo "---" ; echo
		git log $OLDTAG..$NEWTAG -U --author=".*<EMAIL>" ) | \
		LANG=ru_RU.UTF-8 LC_ALL=ru_RU.UTF-8 mutt -s "Eter's patch is applied to winehq repo $(date "+%x")" $MAILTO
fi

#exit

autoreconf -f
./configure --prefix=/usr || exit 1
#make depend || exit 1
jmake || exit 1
./wine --version || exit 1<commit_msg>add push to our pure<commit_after>#!/bin/sh

# For initial create repo
# git clone http://source.winehq.org/git/wine.git wine-origin
# git remote add winehq http://source.winehq.org/git/wine.git

MAILTO=<EMAIL>
#MAILTO=<EMAIL>

. /usr/share/eterbuild/eterbuild

cd /srv/wine/Projects/wine-origin || exit 1

# check repo
git rev-parse HEAD >/dev/null || fatal "check repo failed"

# save TAG for last commit
OLDTAG=$(git rev-parse HEAD)

# Cleanup before update
git checkout -f

# try pull and exit if all up-to-date
gpull -c winehq master && { echocon "No work now" ; exit 0; }
gpull winehq master || { echocon "Some update error" ; exit 0; }

NEWTAG=$(git rev-parse HEAD)

[ "$OLDTAG" = "$NEWTAG" ] && return

LINES=$(git log $OLDTAG..$NEWTAG --author=".*<EMAIL>" --pretty=short)

# FIXME: нужно исправить кодировку присылаемых писем
if [ -n "$LINES" ] ; then
	(	echo "New Etersoft's patches since last build time:"
		git log $OLDTAG..$NEWTAG --author=".*<EMAIL>" --pretty=short ; 
		echo; echo "---" ; echo
		git log $OLDTAG..$NEWTAG -U --author=".*<EMAIL>" ) | \
		LANG=ru_RU.UTF-8 LC_ALL=ru_RU.UTF-8 mutt -s "Eter's patch is applied to winehq repo $(date "+%x")" $MAILTO
fi

#exit

autoconf -f
./configure --prefix=/usr || exit 1
#make depend || exit 1
jmake || exit 1
./wine --version || exit 1
gpush pure master || exit 1
{'fraction_non_alphanumeric': 0.16329645173597862, 'fraction_numerical': 0.007249141549027089, 'mean_word_length': 3.56, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '5374333', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1006, 'n_words': 300}