<commit_before>#!/bin/sh
# Выводит сообщения о ненайденных вайновским configure библиотеках
#

# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/korinf/common


FTPPATH=/var/ftp/pub/Etersoft
PRODLIST="CIFS@Etersoft/* HASP/* Postgres@Etersoft/* RX@Etersoft/* WINE@Etersoft/*/WINE WINE@Etersoft/*/fonts Wine-public/* Wine-vanilla/*"

for p in $PRODLIST ; do
	VERLIST=$(echo $FTPPATH/$p)
	for v in $VERLIST ; do
		echo "Prodversion: $v"
		#for n in $(get_distro_list $v) ; do
		for n in $v/x86_64/*/* $v/*/* ; do
			#echo "$p - $v - $n"
			rm -vf $n/log/*.build.failed
			#echo "$n: (`stat -c "%y" $FILE`)"
			#bzcat $FILE | grep "configure:" | grep development | grep found | sed -e "s|^configure:|          |g"
		done
	done
done<commit_msg>drop_failed_status: add -h support, use first arg as product mask, clean up code<commit_after>#!/bin/sh
#
# Remove build.failed files
#

# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/korinf/common


FTPPATH=/var/ftp/pub/Etersoft
PRODLIST="CIFS@Etersoft/* HASP/* Postgres@Etersoft/* RX@Etersoft/* WINE@Etersoft/*/WINE WINE@Etersoft/*/fonts Wine-public/* Wine-vanilla/*"

if [ "$1" = "-h" ] ; then
	echo "Run without params for remove from all dirs or with product name as arg"
	exit
fi

PRODNAME=$1

for p in $PRODLIST ; do
	# skip all exclude PRODNAME if PRODNAME is filled
	if [ -n "$PRODNAME" ] ; then
		echo "$p" | grep -q $PRODNAME || continue
	fi

	VERLIST=$(echo $FTPPATH/$p)
	for v in $VERLIST ; do
		echo "Check in $v"
		#for n in $(get_distro_list $v) ; do
		for n in $v/x86_64/*/* $v/*/* ; do
			[ -d "$n" ] || continue
			rm -vf $n/log/*.build.failed
			rm -vf $n/log/*.autobuild.failed
		done
	done
done
{'fraction_non_alphanumeric': 0.1583427922814983, 'fraction_numerical': 0.00681044267877412, 'mean_word_length': 3.4746192893401013, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2200530', 'n_tokens_mistral': 741, 'n_tokens_neox': 691, 'n_words': 199}