<commit_before>#!/bin/sh

# Script to install WINE@Etersoft to Sisyphus based system

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

if [ "$1" = "-f" ] ; then
	FORCE="--force"
	shift
fi

if [ "$1" = "-i" ] ; then
	INITIAL="1"
	shift
fi

PROJECTVERSION=$1
[ -n "$PROJECTVERSION" ] || PROJECTVERSION=last

[ -n "$BUILDNAME" ] || BUILDNAME=wine-etersoft

get_version_release()
{
SOURCEPATH=$TARGETPATH/../../../sources

if [ -z "$VERSION" ] ; then
	BUILDSRPM="$SOURCEPATH/$(ls -1 $SOURCEPATH/$BUILDNAME-[0-9]*.src.rpm | last_rpm).src.rpm"
	# -   
	echo $BUILDSRPM
	VERSION=`rpm -qp --queryformat "%{VERSION}" $BUILDSRPM`
	RELEASE=`rpm -qp --queryformat "%{RELEASE}" $BUILDSRPM`
fi
}

pkg_is_installed()
{
	test -n "$INITIAL" && return
	rpm -q "$1" &>/dev/null
}

#############
TARGETPATH=$WINEPUB_PATH/$PROJECTVERSION/WINE/ALTLinux/Sisyphus
get_version_release

cd $TARGETPATH || fatal "Can't cd"
pwd

LIST=
for i in $BUILDNAME ; do
	pkg_is_installed $i && LIST="$LIST $i-$VERSION-*$RELEASE.*.rpm"
done

for i in lib$BUILDNAME-devel $BUILDNAME-twain $BUILDNAME-gl ; do
	pkg_is_installed $i && LIST="$LIST extra/$i-$VERSION-*$RELEASE.*.rpm"
done

echo $LIST
rpmU $LIST $FORCE


#############
VERSION=
BUILDNAME=$BUILDNAME-sql
TARGETPATH=$WINEETER_PATH/$PROJECTVERSION/WINE-SQL/ALTLinux/Sisyphus
get_version_release<commit_msg>fix install wine-etersoft since 1.0.12<commit_after>#!/bin/sh

# Script to install WINE@Etersoft to Sisyphus based system

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

if [ "$1" = "-f" ] ; then
	FORCE="--force"
	shift
fi

if [ "$1" = "-i" ] ; then
	INITIAL="1"
	shift
fi

PROJECTVERSION=$1
[ -n "$PROJECTVERSION" ] || PROJECTVERSION=last

[ -n "$BUILDNAME" ] || BUILDNAME=wine-etersoft

get_version_release()
{
SOURCEPATH=$TARGETPATH/../../../sources

if [ -z "$VERSION" ] ; then
	BUILDSRPM="$SOURCEPATH/$(ls -1 $SOURCEPATH/$BUILDNAME-[0-9]*.src.rpm | last_rpm).src.rpm"
	# -   
	echo $BUILDSRPM
	VERSION=`rpm -qp --queryformat "%{VERSION}" $BUILDSRPM`
	RELEASE=`rpm -qp --queryformat "%{RELEASE}" $BUILDSRPM`
fi
}

pkg_is_installed()
{
	test -n "$INITIAL" && return
	rpm -q "$1" &>/dev/null
}

#############
TARGETPATH=$WINEPUB_PATH/$PROJECTVERSION/WINE/ALTLinux/Sisyphus
get_version_release

cd $TARGETPATH || fatal "Can't cd"
pwd

LIST=
for i in $BUILDNAME $BUILDNAME-gl ; do
	pkg_is_installed $i && LIST="$LIST $i-$VERSION-*$RELEASE.*.rpm"
done

for i in lib$BUILDNAME-devel $BUILDNAME-twain ; do
	pkg_is_installed $i && LIST="$LIST extra/$i-$VERSION-*$RELEASE.*.rpm"
done

echo $LIST
rpmU $LIST $FORCE


#############
VERSION=
BUILDNAME=$BUILDNAME-sql
TARGETPATH=$WINEETER_PATH/$PROJECTVERSION/WINE-SQL/ALTLinux/Sisyphus
get_version_release
{'fraction_non_alphanumeric': 0.18476326094695622, 'fraction_numerical': 0.007831968672125312, 'mean_word_length': 4.553359683794467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6849099', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1109, 'n_words': 229}