<commit_before>#!/bin/bash

#set -exf
echo "Building RPM"

PROJECT=oscript
#echo "$0"
#echo "$1"
#DISTPATH=$(cd $1; pwd)
#BINPATH=$DISTPATH/bin
#cd `dirname $0`

#echo "Assets folder: $DISTPATH"
echo "Current dir: {$PWD}"
	
docker build -t onescript:rpm ${PWD}/builders/rpm/
docker run --rm -v os_bld_output:/media onescript:rpm 

TMPOUT=../output
rm -rf $TMPOUT/rpm

docker cp bldxchg:/bld/rpm/ $TMPOUT
if [ $? -ne 0 ]; then
    exit 1
fi

mv $TMPOUT/rpm/RPMS/noarch/*.rpm $TMPOUT
mv $TMPOUT/rpm/SRPMS/*.rpm $TMPOUT
rm -rf $TMPOUT/rpm<commit_msg>RPM: Убран лишний код.<commit_after>#!/bin/bash

#set -exf
echo "Building RPM"

PROJECT=oscript

echo "Current dir: {$PWD}"
	
docker build -t onescript:rpm ${PWD}/builders/rpm/
docker run --rm -v os_bld_output:/media onescript:rpm 

TMPOUT=../output
rm -rf $TMPOUT/rpm

docker cp bldxchg:/bld/rpm/ $TMPOUT
if [ $? -ne 0 ]; then
    exit 1
fi

mv $TMPOUT/rpm/RPMS/noarch/*.rpm $TMPOUT
mv $TMPOUT/rpm/SRPMS/*.rpm $TMPOUT
rm -rf $TMPOUT/rpm
{'fraction_non_alphanumeric': 0.16869918699186992, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 3.8048780487804876, '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': '2444317', 'n_tokens_mistral': 467, 'n_tokens_neox': 439, 'n_words': 109}