<commit_before>#!/bin/bash

echo "########################################################"
echo "#                   packetize.sh                       #"
echo "########################################################"
echo

. config/detect_distro.sh

hudson_base="$HOME"
rusr=root
rgrp=root
susr=arango
sgrp=arango
package_type=""
product_name="arangodb"
project_name="arangodb"
runlevels="runlevel(035)"
curl_version="curl -s -o - http://localhost:8529/_api/version"

# name of the epm configuration file
LIST="Installation/${project_name}.list"
# name of a created epm  include file
SUBLIST="Installation/${project_name}.sublist"

START_SCRIPT="";

arangodb_version=`cat VERSION | awk -F"." '{print $1 "." $2}'`
arangodb_release=`cat VERSION | awk -F"." '{print $3}'`  

ostype=`uname -s | tr '[:upper:]' '[:lower:]'`
osvers=`uname -r | awk -F"." '{print $1 "." $2}'`

## directories for epm
prefix=/usr
exec_prefix=${prefix}
sbindir=${exec_prefix}/sbin
bindir=${exec_prefix}/bin
data_dir=/var
static_dir=${prefix}/share
vers_dir=arango-${arangodb_version}
docdir=${prefix}/share/doc/voc/${vers_dir}


echo
echo "########################################################"
echo "Packetize on $TRI_OS_LONG"
echo "########################################################"
echo


case $TRI_OS_LONG in

  Linux-openSUSE*)
    echo "Using configuration for openSuSE"
    package_type="rpm"
    START_SCRIPT="rc.arangodb.OpenSuSE"
    runlevels="runlevel(035)"
    docdir=${prefix}/share/doc/packages/voc/${vers_dir}

    # export "insserv" for the epm configuration file<commit_msg>added message for ArchLinux<commit_after>#!/bin/bash

echo "########################################################"
echo "#                   packetize.sh                       #"
echo "########################################################"
echo

. config/detect_distro.sh

hudson_base="$HOME"
rusr=root
rgrp=root
susr=arango
sgrp=arango
package_type=""
product_name="arangodb"
project_name="arangodb"
runlevels="runlevel(035)"
curl_version="curl -s -o - http://localhost:8529/_api/version"

# name of the epm configuration file
LIST="Installation/${project_name}.list"
# name of a created epm  include file
SUBLIST="Installation/${project_name}.sublist"

START_SCRIPT="";

arangodb_version=`cat VERSION | awk -F"." '{print $1 "." $2}'`
arangodb_release=`cat VERSION | awk -F"." '{print $3}'`  

ostype=`uname -s | tr '[:upper:]' '[:lower:]'`
osvers=`uname -r | awk -F"." '{print $1 "." $2}'`

## directories for epm
prefix=/usr
exec_prefix=${prefix}
sbindir=${exec_prefix}/sbin
bindir=${exec_prefix}/bin
data_dir=/var
static_dir=${prefix}/share
vers_dir=arango-${arangodb_version}
docdir=${prefix}/share/doc/voc/${vers_dir}


echo
echo "########################################################"
echo "Packetize on $TRI_OS_LONG"
echo "########################################################"
echo


case $TRI_OS_LONG in

  Linux-ArchLinux-*)
    echo "Packetize for ArchLinux is not not supported."
    exit 0
    ;;

  Linux-openSUSE*)
    echo "Using configuration for openSuSE"
    package_type="rpm"
    START_SCRIPT="rc.arangodb.OpenSuSE"
    runlevels="runlevel(035)"
    docdir=${prefix}/share/doc/packages/voc/${vers_dir}

    # export "insserv" for the epm configuration file
{'fraction_non_alphanumeric': 0.27561945549097583, 'fraction_numerical': 0.00948302233098807, 'mean_word_length': 5.240458015267175, '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': '1399102', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1053, 'n_words': 213}