<commit_before>#!/bin/bash

source ../common/common.sh

VERSION=${1:-2.4.10}
NAME=sctk

init_vars

module load gcc

if [ ! -f downloads/sctk-${VERSION}*.bz2 ]; then
   error_exit "Please download sctk-${VERSION}.xxxx.bz2 to the downloads folder"
fi

mkdir -p ${OPT_DIR}/${VERSION}-build
fname=$(ls -1 downloads/sctk-${VERSION}*.bz2)
tar xjf $fname --strip-components=1 -C ${OPT_DIR}/${VERSION}-build

pushd ${OPT_DIR}/${VERSION}-build

sed -i "s#^PREFIX.*#PREFIX=${OPT_DIR}/${VERSION}#" src/makefile

make config || error_exit "config failed"
#sed -i "1iPREFIX = ${OPT_DIR}/${VERSION}/" Makefile
make all || error_exit "compilation failed"

BIN_PATH=${OPT_DIR}/${VERSION}/bin
LIB_PATH=${OPT_DIR}/${VERSION}/lib
mkdir -p $BIN_PATH $LIB_PATH
make install || error_exit "install failed"
make doc || error_exit "doc failed"

DESC="SCTK"
HELP="sctk ${VERSION}"

EXTRA_LINES="module load prgenv"

write_module

popd

rm -Rf ${OPT_DIR}/${VERSION}-build<commit_msg>Update sctk. Use rpath for libstdc++<commit_after>#!/bin/bash

source ../common/common.sh

VERSION=${1:-2.4.10}
NAME=sctk

init_vars

module load GCC

if [ ! -f downloads/sctk-${VERSION}*.bz2 ]; then
   error_exit "Please download sctk-${VERSION}.xxxx.bz2 to the downloads folder"
fi

mkdir -p ${OPT_DIR}/${VERSION}-build
fname=$(ls -1 downloads/sctk-${VERSION}*.bz2)
tar xjf $fname --strip-components=1 -C ${OPT_DIR}/${VERSION}-build

pushd ${OPT_DIR}/${VERSION}-build

sed -i "s#^PREFIX.*#PREFIX=${OPT_DIR}/${VERSION}#" src/makefile

make config || error_exit "config failed"
#sed -i "1iPREFIX = ${OPT_DIR}/${VERSION}/" Makefile
make all || error_exit "compilation failed"

BIN_PATH=${OPT_DIR}/${VERSION}/bin

mkdir -p $BIN_PATH
make install || error_exit "install failed"
make doc || error_exit "doc failed"

DESC="SCTK"
HELP="sctk ${VERSION}"

write_module

popd

rm -Rf ${OPT_DIR}/${VERSION}-build
{'fraction_non_alphanumeric': 0.18074233458848843, 'fraction_numerical': 0.011834319526627219, 'mean_word_length': 5.038961038961039, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2045211', 'n_tokens_mistral': 727, 'n_tokens_neox': 698, 'n_words': 163}