<commit_before>#!/bin/sh

# global environment variables you may set:
# CACHE: absolute path to a global autoconf cache
# QUIET: hush the configure script noise

build() {
    echo "Building $1 module component $2..."
    cd $1/$2

    # Use "sh autogen.sh" since some scripts are not executable in CVS
    sh autogen.sh --prefix=${PREFIX} ${QUIET:+--quiet} \
        ${CACHE:+--cache-file=}${CACHE}
    make
    $SUDO make install
#    make clean
#    make dist
#    make distcheck

    cd ../..
}

# protocol headers have no build order dependencies
build_proto() {
    build proto BigReqs
    build proto Composite
    build proto Damage
    build proto DMX
    build proto EvIE
    build proto Fixes
    build proto Fontcache
    build proto Fonts
    build proto GL
    build proto Input
    build proto KB
    build proto Panoramix
    build proto Print
    build proto Randr
    build proto Record
    build proto Render
    build proto Resource
    build proto ScrnSaver
    build proto Trap<commit_msg>if autogen or any make step fail, then just abort mission<commit_after>#!/bin/sh

# global environment variables you may set:
# CACHE: absolute path to a global autoconf cache
# QUIET: hush the configure script noise

build() {
    echo "Building $1 module component $2..."
    cd $1/$2

    # Use "sh autogen.sh" since some scripts are not executable in CVS
    sh autogen.sh --prefix=${PREFIX} ${QUIET:+--quiet} \
        ${CACHE:+--cache-file=}${CACHE} || exit 1
    make || exit 1
    $SUDO make install || exit 1
#    make clean || exit 1
#    make dist || exit 1
#    make distcheck || exit 1

    cd ../..
}

# protocol headers have no build order dependencies
build_proto() {
    build proto BigReqs
    build proto Composite
    build proto Damage
    build proto DMX
    build proto EvIE
    build proto Fixes
    build proto Fontcache
    build proto Fonts
    build proto GL
    build proto Input
    build proto KB
    build proto Panoramix
    build proto Print
    build proto Randr
    build proto Record
    build proto Render
    build proto Resource
    build proto ScrnSaver
    build proto Trap
{'fraction_non_alphanumeric': 0.0729068673565381, 'fraction_numerical': 0.00658513640639699, 'mean_word_length': 2.598984771573604, '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': '4271597', 'n_tokens_mistral': 635, 'n_tokens_neox': 612, 'n_words': 265}