<commit_before>#!/bin/bash
. /usr/share/modules/init/bash
module load ci
echo "About to make the modules"
cd $WORKSPACE/$NAME-$VERSION
ls
echo $?

echo "Run Make Check - This is the Test"
make check

echo "Run make Install"
make install

mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
   puts stderr "\tAdds $NAME $VERSION to your environment"
}

module load gcc/$GCC_VERSION

module-whatis   "$NAME $VERSION."
setenv       LIBPNG_VERSION       $VERSION
setenv       LIBPNG_DIR           /apprepo/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION

prepend-path 	PATH            $::env(LIBPNG_DIR)/bin
prepend-path    PATH            $::env(LIBPNG_DIR)/include
prepend-path    PATH            $::env(LIBPNG_DIR)/bin
prepend-path    MANPATH         $::env(LIBPNG_DIR)/man
prepend-path    LD_LIBRARY_PATH $::env(LIBPNG_DIR)/lib
MODULE_FILE
) > modules/$VERSION-gcc-$GCC_VERSION
mkdir -p $LIBRARIES_MODULES/$NAME
cp modules/$VERSION-gcc-$GCC_VERSION $LIBRARIES_MODULES/$NAME/$VERSION-gcc-$VERSION

# Testing module
module avail
module list
module load $NAME/$VERSION-gcc-$GCC_VERSION
<commit_msg>fixing gcc version in module name<commit_after>#!/bin/bash
. /usr/share/modules/init/bash
module load ci
echo "About to make the modules"
cd $WORKSPACE/${NAME}-${VERSION}
ls
echo $?

echo "Run Make Check - This is the Test"
make check

echo "Run make Install"
make install

mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
   puts stderr "\tAdds $NAME $VERSION to your environment"
}

module load gcc/${GCC_VERSION}

module-whatis   "$NAME $VERSION."
setenv       LIBPNG_VERSION       $VERSION
setenv       LIBPNG_DIR           /apprepo/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION

prepend-path 	PATH            $::env(LIBPNG_DIR)/bin
prepend-path    PATH            $::env(LIBPNG_DIR)/include
prepend-path    PATH            $::env(LIBPNG_DIR)/bin
prepend-path    MANPATH         $::env(LIBPNG_DIR)/man
prepend-path    LD_LIBRARY_PATH $::env(LIBPNG_DIR)/lib
MODULE_FILE
) > modules/$VERSION-gcc-${GCC_VERSION}
mkdir -p $LIBRARIES_MODULES/$NAME
cp modules/$VERSION-gcc-${GCC_VERSION} $LIBRARIES_MODULES/$NAME/$VERSION-gcc-${GCC_VERSION}

# Testing module
module avail
module list
module load $NAME/${VERSION}-gcc-${GCC_VERSION}

{'fraction_non_alphanumeric': 0.13253012048192772, 'fraction_numerical': 0.0017211703958691911, 'mean_word_length': 3.6314741035856573, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2075281', 'n_tokens_mistral': 846, 'n_tokens_neox': 806, 'n_words': 191}