<commit_before>#!/bin/sh

[ $# -lt 5 ] && exit 1

__makl_dir=$1
__makl_version=$2
__login_shell=$3
__maklrc=$4
__interactive=$5

__available_shells="bash|sh|zsh|ksh|csh|tcsh"

## $1 makl_dir
## $2 makl_version
## $3 maklrc
output_sh_compat ()
{
    echo "MAKL_VERSION=\"$2\""       > $3
    echo "export MAKL_VERSION"      >> $3
    echo ""                         >> $3
    echo "MAKL_DIR=\"$1\""          >> $3
    echo "export MAKL_DIR"          >> $3
    echo ""                         >> $3
    echo "MAKEFLAGS=\"-I $1/mk\""   >> $3
    echo "export MAKEFLAGS"         >> $3
}

## $1 makl_dir
## $2 makl_version
## $3 maklrc
output_csh_compat ()
{
    echo "setenv MAKL_VERSION \"$2\""       > $3
    echo ""                                 >> $3
    echo "setenv MAKL_DIR \"$1\""           >> $3
    echo ""                                 >> $3
    echo "setenv MAKEFLAGS \"-I $1/mk\""    >> $3
}

validate_shell ()
{
    local ans

    # stdin must be associated with the terminal
    [ ! -t 0 ] && return<commit_msg>[makl] (refers to last checkin) modified env setup script accordingly<commit_after>#!/bin/sh

[ $# -lt 5 ] && exit 1

__makl_dir=$1
__makl_version=$2
__login_shell=$3
__maklrc=$4
__interactive=$5

__available_shells="bash|sh|zsh|ksh|csh|tcsh"

## $1 makl_dir
## $2 makl_version
## $3 maklrc
output_sh_compat ()
{
    echo "MAKL_VERSION=\"$2\""                               > $3
    echo "export MAKL_VERSION"                              >> $3
    echo ""                                                 >> $3
    echo "MAKL_DIR=\"$1\""                                  >> $3
    echo "export MAKL_DIR"                                  >> $3
    echo ""                                                 >> $3
    echo "MAKEFLAGS=\"-I $1/mk\""                           >> $3
    echo "export MAKEFLAGS"                                 >> $3
    echo ""                                                 >> $3
    echo "# Set this to expand the config scripts search"   >> $3
    echo "#MAKL_CF_SCRIPTS=\"myconfigure myconfigure.sh\""  >> $3
    echo "#export MAKL_CF_SCRIPTS"                          >> $3
}

## $1 makl_dir
## $2 makl_version
## $3 maklrc
output_csh_compat ()
{
    echo "setenv MAKL_VERSION \"$2\""                                > $3
    echo ""                                                         >> $3
    echo "setenv MAKL_DIR \"$1\""                                   >> $3
    echo ""                                                         >> $3
    echo "setenv MAKEFLAGS \"-I $1/mk\""                            >> $3
    echo ""                                                         >> $3
    echo "# Set this to expand the config scripts search"           >> $3
    echo "#setenv MAKL_CF_SCRIPTS \"myconfigure myconfigure.sh\""   >> $3
}

validate_shell ()
{
    local ans

    # stdin must be associated with the terminal
    [ ! -t 0 ] && return
{'fraction_non_alphanumeric': 0.13450292397660818, 'fraction_numerical': 0.025111799105607156, 'mean_word_length': 1.2063732928679818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5678762', 'n_tokens_mistral': 949, 'n_tokens_neox': 892, 'n_words': 214}