<commit_before>#!/bin/sh

# This scripts creates a tar.gz file with all the linux installation.
# Also it creates a RPM package.
# @param The version of the project

# To create the source tar file you have to install next packages:
# autoconf, automake, libtool

# To create RPM in Fedora you have to follow this section on the link:
#   https://fedoraproject.org/wiki/How_to_create_an_RPM_package#Preparing_your_system

# To create RPM in CentOs you have to follow this link:
#   http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

project="eprosimartps"


installer()
{
    # Copy licenses.
    cp ../../../../doc/licenses/EPROSIMARTPS_LIBRARY_LICENSE.txt tmp/$project
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp ../../../../doc/licenses/LGPLv3_LICENSE.txt tmp/$project
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi

    # Copy documentation.
    mkdir -p tmp/$project/doc
    mkdir -p tmp/$project/doc/pdf
    mkdir -p tmp/$project/doc/doxygen/public_api
    cp "../../../../doc/pdf/RTPS - Installation Manual.pdf" tmp/$project/doc/pdf/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp "../../../../doc/pdf/RTPS - User Manual.pdf" tmp/$project/doc/pdf/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp "../../../../doc/index.html" tmp/$project/doc/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp -r "../../../../output/doxygen/public_api/html" tmp/$project/doc/doxygen/public_api
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    #cp "../../../../output/doxygen/latex/refman.pdf" "tmp/$project/doc/pdf/eProsimaRTPS - API C++ Manual.pdf"
    #errorstatus=$?<commit_msg>Added RTPSGEN manual to setup linux<commit_after>#!/bin/sh

# This scripts creates a tar.gz file with all the linux installation.
# Also it creates a RPM package.
# @param The version of the project

# To create the source tar file you have to install next packages:
# autoconf, automake, libtool

# To create RPM in Fedora you have to follow this section on the link:
#   https://fedoraproject.org/wiki/How_to_create_an_RPM_package#Preparing_your_system

# To create RPM in CentOs you have to follow this link:
#   http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

project="eprosimartps"


installer()
{
    # Copy licenses.
    cp ../../../../doc/licenses/EPROSIMARTPS_LIBRARY_LICENSE.txt tmp/$project
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp ../../../../doc/licenses/LGPLv3_LICENSE.txt tmp/$project
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi

    # Copy documentation.
    mkdir -p tmp/$project/doc
    mkdir -p tmp/$project/doc/pdf
    mkdir -p tmp/$project/doc/doxygen/public_api
    cp "../../../../doc/pdf/RTPS - Installation Manual.pdf" tmp/$project/doc/pdf/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp "../../../../doc/pdf/RTPS - User Manual.pdf" tmp/$project/doc/pdf/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp "../../../../doc/pdf/RTPSGEN - User Manual.pdf" tmp/$project/doc/pdf/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp "../../../../doc/index.html" tmp/$project/doc/
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    cp -r "../../../../output/doxygen/public_api/html" tmp/$project/doc/doxygen/public_api
    errorstatus=$?
    if [ $errorstatus != 0 ]; then return; fi
    #cp "../../../../output/doxygen/latex/refman.pdf" "tmp/$project/doc/pdf/eProsimaRTPS - API C++ Manual.pdf"
    #errorstatus=$?
{'fraction_non_alphanumeric': 0.16573816155988857, 'fraction_numerical': 0.004178272980501393, 'mean_word_length': 2.7020618556701033, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6194080', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1160, 'n_words': 322}