<commit_before>#!/bin/bash

set -e

var_version="0.1.1"

var_ruby_version="2.0.0-p645"
var_pkg_maintner="<EMAIL>"

var_prefix="/opt/tr-rundeck-winrm-plugin"
var_rundeck_libext="/var/lib/rundeck/libext"
var_bin_path="/usr/local/bin"

var_bins=""

rm -rf ${var_prefix}
mkdir --parents ${var_prefix}
mkdir --parents ${var_rundeck_libext}

su --login packager --command="wget --timestamping http://cache.ruby-lang.org/pub/ruby/2.0/ruby-${var_ruby_version}.tar.gz"

su --login packager --command="tar zxf ruby-${var_ruby_version}.tar.gz"

su --login packager --command="cd ruby-${var_ruby_version} && ./configure --prefix=${var_prefix} --exec-prefix=${var_prefix} --enable-shared --disable-install-doc"
su --login packager --command="cd ruby-${var_ruby_version} && make"

chown -R packager:packager ${var_prefix}

su --login packager --command="cd ruby-${var_ruby_version} && make install"

su --login packager --command="export PATH=${var_prefix}/bin:${PATH} && gem install --no-document winrm-fs"

zip -9 -r tr-rundeck-winrm-plugin.zip src/

mv tr-rundeck-winrm-plugin.zip ${var_rundeck_libext}

for _file in ext/*; do var_bins="${var_bins} ${var_bin_path}/$(basename ${_file})"; done;

cp --archive ext/* ${var_bin_path}

chown -R root:root ${var_prefix}

chown -R root:root ${var_rundeck_libext}/tr-rundeck-winrm-plugin.zip

chown root:root ${var_bins}
chmod a+x ${var_bins}

cd rpm/

fpm -t rpm -s dir --name tr-rundeck-winrm-plugin --force --maintainer ${var_pkg_maintner} --version ${var_version} ${var_prefix} ${var_rundeck_libext}/tr-rundeck-winrm-plugin.zip ${var_bins}
<commit_msg>Update package_01of01.sh<commit_after>#!/bin/bash

set -e

var_version="0.1.1"

var_ruby_version="2.0.0-p645"
var_pkg_maintner="<EMAIL>"

var_prefix="/opt/tr-rundeck-winrm-plugin"
var_rundeck_libext="/var/lib/rundeck/libext"
var_bin_path="/usr/local/bin"

var_bins=""

rm -rf ${var_prefix}
mkdir --parents ${var_prefix}
mkdir --parents ${var_rundeck_libext}

su --login packager --command="wget --timestamping http://cache.ruby-lang.org/pub/ruby/2.0/ruby-${var_ruby_version}.tar.gz"

su --login packager --command="tar zxf ruby-${var_ruby_version}.tar.gz"

su --login packager --command="cd ruby-${var_ruby_version} && ./configure --prefix=${var_prefix} --exec-prefix=${var_prefix} --enable-shared --disable-install-doc"
su --login packager --command="cd ruby-${var_ruby_version} && make"

chown -R packager:packager ${var_prefix}

su --login packager --command="cd ruby-${var_ruby_version} && make install"

su --login packager --command="export PATH=${var_prefix}/bin:${PATH} && gem install --no-document winrm-fs"

rm --force /tmp/tr-rundeck-winrm-plugin.zip
cd src/
zip -9 -r /tmp/tr-rundeck-winrm-plugin.zip tr-rundeck-winrm-plugin/
cd ../

mv tr-rundeck-winrm-plugin.zip ${var_rundeck_libext}

for _file in ext/*; do var_bins="${var_bins} ${var_bin_path}/$(basename ${_file})"; done;

cp --archive ext/* ${var_bin_path}

chown -R root:root ${var_prefix}

chown -R root:root ${var_rundeck_libext}/tr-rundeck-winrm-plugin.zip

chown root:root ${var_bins}
chmod a+x ${var_bins}

cd rpm/

fpm -t rpm -s dir --name tr-rundeck-winrm-plugin --force --maintainer ${var_pkg_maintner} --version ${var_version} ${var_prefix} ${var_rundeck_libext}/tr-rundeck-winrm-plugin.zip ${var_bins}

{'fraction_non_alphanumeric': 0.18170694401957785, 'fraction_numerical': 0.008565310492505354, 'mean_word_length': 4.647668393782383, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3591397', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1243, 'n_words': 245}