<commit_before>#!/bin/sh

PROG="SETME"
VERSION="SETME"
URL="SETME"
DESCRIPTION=""
SHORT=""

. $1

if [ ! -e .git ]; then
    echo "Run me from the root application directory"
    exit 1
fi

MODAPPSDIR=$(pwd)
cd $(dirname $1)

if [ -e build ]; then
    echo "$PROG-$VERSION/build already exists!"
    exit 1


    if [ "$PROG" == "SETME" ]; then
        echo "SETUP THE FILE FIRST"
        exit 1
    fi

fi

echo "Building $PROG-$VERSION"

mkdir build
mkdir bin
mkdir -p man/man1

cd build

build
cd ..

if [ $(uname) == "FreeBSD" ]; then 
    find build -perm +u+x -not -type d -exec cp \{\} bin \;
else
    find build -perm /u+x -not -type d -exec cp \{\} bin \;
fi
find build -name '*.1' -exec cp \{\} man/man1 \;

cd $MODAPPSDIR
mkdir -p modulefiles/$PROG
cat <<EOF > modulefiles/$PROG/$VERSION
#%Module1.0#####################################################################
#
## $PROG-$VERSION
##
proc ModulesHelp { } {
    global version

    puts stderr "\t$SHORT"
    puts stderr "\n\tVersion \$version\n"
}

module-whatis "
$DESCRIPTION
"

conflict $PROG

# for Tcl script use only
set version "$VERSION"<commit_msg>added extra echo for done<commit_after>#!/bin/sh

PROG="SETME"
VERSION="SETME"
URL="SETME"
DESCRIPTION=""
SHORT=""

. $1

if [ ! -e .git ]; then
    echo "Run me from the root application directory"
    exit 1
fi

MODAPPSDIR=$(pwd)
cd $(dirname $1)

if [ -e build ]; then
    echo "$PROG-$VERSION/build already exists!"
    exit 1


    if [ "$PROG" == "SETME" ]; then
        echo "SETUP THE FILE FIRST"
        exit 1
    fi

fi

echo "Building $PROG-$VERSION"

mkdir build
mkdir bin
mkdir -p man/man1

cd build

build
echo "Done"
cd ..

if [ $(uname) == "FreeBSD" ]; then 
    find build -perm +u+x -not -type d -exec cp \{\} bin \;
else
    find build -perm /u+x -not -type d -exec cp \{\} bin \;
fi
find build -name '*.1' -exec cp \{\} man/man1 \;

cd $MODAPPSDIR
mkdir -p modulefiles/$PROG
cat <<EOF > modulefiles/$PROG/$VERSION
#%Module1.0#####################################################################
#
## $PROG-$VERSION
##
proc ModulesHelp { } {
    global version

    puts stderr "\t$SHORT"
    puts stderr "\n\tVersion \$version\n"
}

module-whatis "
$DESCRIPTION
"

conflict $PROG

# for Tcl script use only
set version "$VERSION"
{'fraction_non_alphanumeric': 0.20650263620386644, 'fraction_numerical': 0.008787346221441126, 'mean_word_length': 2.96, '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': '2913274', 'n_tokens_mistral': 848, 'n_tokens_neox': 801, 'n_words': 263}