<commit_before>#!/bin/sh
#       rpm-  

ETERBUILDVERSION=163
. /usr/share/eterbuild/eterbuild
load_mod spec

REL=eter
MAILDOMAIN=server
BACKUPDIR=$FTPDIR/backup
RPMBINDIR=$RPMDIR/RPMS
# builder50 path
TOPDIR=/var/ftp/pvt/Etersoft/Ourside/

PROJECT=$1
test -n "$PROJECT" || PROJECT=uniset

SPECNAME=libuniset.spec

FTPDIR=$TOPDIR/i586/RPMS.$PROJECT
if [ -d "$FTPDIR" ] ; then
	GEN="genbasedir --create --progress --topdir=$TOPDIR i586 $PROJECT"
else
	# For NoteBook build
	FTPDIR=/var/ftp/pub/Ourside/i586/RPMS.$PROJECT
	GEN=/var/ftp/pub/Ourside/i586/genb.sh
fi

fatal()
{
	echo "Error: $@"
	exit 1
}

function send_notify()
{
	export EMAIL="$USER@$MAILDOMAIN"
	CURDATE=`date`
	MAILTO="devel@$MAILDOMAIN"
# FIXME:  
mutt $MAILTO -s "[$PROJECT] New build: $BUILDNAME" <<EOF
  : $BUILDNAME
-- 
your $0
$CURDATE
EOF
echo "inform mail sent to $MAILTO"
}

function cp2ftp()
{
	mkdir -p $BACKUPDIR
	mv -f $FTPDIR/*$PROJECT* $BACKUPDIR/
	mv -f $RPMBINDIR/*$PROJECT* $FTPDIR/
	chmod 'a+rw' $FTPDIR/*$PROJECT*
	$GEN
}


# ------------------------------------------------------------------------

add_changelog_helper "- new build" $SPECNAME

rpmbb $SPECNAME || fatal "Can't build"

cp2ftp

#rpmbs $SPECNAME
#send_notify

#        
inc_release $SPECNAME
#      
#cvs commit -m "Auto updated by $0 for $BUILDNAME" $SPECNAME || fatal "Can't commit spec"

# Note: we in topscrdir
#TAG=${BUILDNAME//./_}<commit_msg>fix release_helper<commit_after>#!/bin/sh
#       rpm-  

ETERBUILDVERSION=163
. /usr/share/eterbuild/eterbuild
load_mod spec

REL=eter
MAILDOMAIN=server
RPMBINDIR=$RPMDIR/RPMS

# builder50 path
TOPDIR=/var/ftp/pvt/Etersoft/Ourside/

PROJECT=$1
test -n "$PROJECT" || PROJECT=uniset

PKGNAME=uniset
SPECNAME=libuniset.spec

if [ -d "$TOPDIR" ] ; then
	GEN="genbasedir --create --progress --topdir=$TOPDIR i586 $PROJECT"
else
	# For NoteBook build
	TOPDIR=/var/ftp/pub/Ourside/
	GEN=/var/ftp/pub/Ourside/i586/genb.sh
fi
FTPDIR=$TOPDIR/i586/RPMS.$PROJECT
BACKUPDIR=$FTPDIR/backup

fatal()
{
	echo "Error: $@"
	exit 1
}

function send_notify()
{
	export EMAIL="$USER@$MAILDOMAIN"
	CURDATE=`date`
	MAILTO="devel@$MAILDOMAIN"
# FIXME:  
mutt $MAILTO -s "[$PROJECT] New build: $BUILDNAME" <<EOF
  : $BUILDNAME
-- 
your $0
$CURDATE
EOF
echo "inform mail sent to $MAILTO"
}

function cp2ftp()
{
	mkdir -p $BACKUPDIR
	mv -f $FTPDIR/*$PKGNAME* $BACKUPDIR/
	mv -f $RPMBINDIR/*$PKGNAME* $FTPDIR/
	chmod 'a+rw' $FTPDIR/*$PKGNAME*
	$GEN
}


# ------------------------------------------------------------------------

add_changelog_helper "- new build" $SPECNAME

rpmbb $SPECNAME || fatal "Can't build"

cp2ftp

#rpmbs $SPECNAME
#send_notify

#        
inc_release $SPECNAME
#      
#cvs commit -m "Auto updated by $0 for $BUILDNAME" $SPECNAME || fatal "Can't commit spec"

# Note: we in topscrdir
#TAG=${BUILDNAME//./_}
{'fraction_non_alphanumeric': 0.19679144385026737, 'fraction_numerical': 0.015329768270944741, 'mean_word_length': 3.2132132132132134, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '5287243', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1155, 'n_words': 239}