<commit_before>#!/bin/sh
#
# With no arguments the script tries to divine platform and toolchain file.  
# If an argument is supplied it is interpreted as the toolchain file to install.
#
# $Id: toolchain_setup.sh,v 1.6 2005/08/02 12:40:23 tho Exp $

if [ -z ${MAKL_DIR} ]; then
    echo "set MAKL_DIR in the shell environment before running any MaKL script"
    exit 1
fi

for f in ${MAKL_DIR}/cf/makl_utils ${MAKL_DIR}/tc/makl_tc ; do
    . $f
done

rsname=`uname -rs | tr [A-Z] [a-z] | sed -e 's/ //'`

if [ $# -ne 0 ]; then
    tc_file=$1 
else
    case ${rsname}
    in 
        freebsd5*)
            platform="freebsd4,5"
            ;;
        linux2.6*)
            platform="linux26"
            ;;
         darwin[67]*)
            platform="darwin6,7"
            ;;
        *)
            platform="default"
            ;;
    esac        

    tc_file=${MAKL_DIR}/tc/${platform}.tc
fi

echo
echo "MaKL: installing toolchain file '${tc_file}'"
echo

makl_tc ${tc_file} ${MAKL_DIR}/cf/toolchain.sh ${MAKL_DIR}/mk/toolchain.mk<commit_msg>[makl/toolchain] added freebsd 4.x<commit_after>#!/bin/sh
#
# With no arguments the script tries to divine platform and toolchain file.  
# If an argument is supplied it is interpreted as the toolchain file to install.
#
# $Id: toolchain_setup.sh,v 1.7 2005/09/29 13:40:08 tho Exp $

if [ -z ${MAKL_DIR} ]; then
    echo "set MAKL_DIR in the shell environment before running any MaKL script"
    exit 1
fi

for f in ${MAKL_DIR}/cf/makl_utils ${MAKL_DIR}/tc/makl_tc ; do
    . $f
done

rsname=`uname -rs | tr [A-Z] [a-z] | sed -e 's/ //'`

if [ $# -ne 0 ]; then
    tc_file=$1 
else
    case ${rsname}
    in 
        freebsd[45]*)
            platform="freebsd4,5"
            ;;
        linux2.6*)
            platform="linux26"
            ;;
         darwin[67]*)
            platform="darwin6,7"
            ;;
        *)
            platform="default"
            ;;
    esac        

    tc_file=${MAKL_DIR}/tc/${platform}.tc
fi

echo
echo "MaKL: installing toolchain file '${tc_file}'"
echo

makl_tc ${tc_file} ${MAKL_DIR}/cf/toolchain.sh ${MAKL_DIR}/mk/toolchain.mk
{'fraction_non_alphanumeric': 0.1357210179076343, 'fraction_numerical': 0.029217719132893498, 'mean_word_length': 2.1686567164179102, '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': '85451', 'n_tokens_mistral': 839, 'n_tokens_neox': 755, 'n_words': 202}