<commit_before>PKG_ROOT=/tmp/avalanchego
RPM_BASE_DIR=$PKG_ROOT/yum
AVALANCHE_BUILD_BIN_DIR=$RPM_BASE_DIR/usr/local/bin
AVALANCHE_LIB_DIR=$RPM_BASE_DIR/usr/local/lib/avalanchego

mkdir -p $RPM_BASE_DIR
mkdir -p $AVALANCHE_BUILD_BIN_DIR
mkdir -p $AVALANCHE_LIB_DIR

OK=`cp ./build/avalanchego $AVALANCHE_BUILD_BIN_DIR`
if [[ $OK -ne 0 ]]; then
  exit $OK;
fi
OK=`cp ./build/plugins/evm $AVALANCHE_LIB_DIR`
if [[ $OK -ne 0 ]]; then
  exit $OK;
fi

echo "Build rpm package..."
VER=$(echo $TAG | tr -d 'v' | sed "s/-/./")
echo "Tag: $VER"
rpmbuild --bb --define "version $VER" --buildroot $RPM_BASE_DIR .github/workflows/yum/specfile/avalanchego.spec
aws s3 cp ~/rpmbuild/RPMS/x86_64/avalanchego-*.rpm s3://$BUCKET/linux/rpm<commit_msg>changed a . to a _ like magic<commit_after>PKG_ROOT=/tmp/avalanchego
RPM_BASE_DIR=$PKG_ROOT/yum
AVALANCHE_BUILD_BIN_DIR=$RPM_BASE_DIR/usr/local/bin
AVALANCHE_LIB_DIR=$RPM_BASE_DIR/usr/local/lib/avalanchego

mkdir -p $RPM_BASE_DIR
mkdir -p $AVALANCHE_BUILD_BIN_DIR
mkdir -p $AVALANCHE_LIB_DIR

OK=`cp ./build/avalanchego $AVALANCHE_BUILD_BIN_DIR`
if [[ $OK -ne 0 ]]; then
  exit $OK;
fi
OK=`cp ./build/plugins/evm $AVALANCHE_LIB_DIR`
if [[ $OK -ne 0 ]]; then
  exit $OK;
fi

echo "Build rpm package..."
VER=$(echo $TAG | tr -d 'v' | sed "s/-/_/")
echo "Tag: $VER"
rpmbuild --bb --define "version $VER" --buildroot $RPM_BASE_DIR .github/workflows/yum/specfile/avalanchego.spec
aws s3 cp ~/rpmbuild/RPMS/x86_64/avalanchego-*.rpm s3://$BUCKET/linux/rpm
{'fraction_non_alphanumeric': 0.1554054054054054, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 4.652671755725191, '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': '5429995', 'n_tokens_mistral': 684, 'n_tokens_neox': 644, 'n_words': 128}