<commit_before>#!/bin/sh

# This will build and test 4 versions of PHP in each branch checked out
# that's a lot of work and can literally take hours, hurray for automation

# this expects the file layout from checkout.sh  you may need to tinker for custom stuff

# this is where you're sticking the PHP binaries
[ -z $PHP_BIN_ROOT ] && PHP_BIN_ROOT=/usr/local/php
# this is the parent dir for your git checkouts
[ -z $PHP_SOURCE ] && PHP_SOURCE=.
# if you want to add something to all the PHP configurations do it here
[ -z $PHP_ADDL_CONFIG ] && PHP_ADDL_CONFIG=

# I have mine in /usr/local/bison
[ -z $OLD_BISON ] && OLD_BISON=/usr/local/bison/bin

# these are the configure flags for each type
PHP_ZTS_DEBUG="--enable-debug --enable-maintainer-zts"
PHP_ZTS="--enable-maintainer-zts"
PHP_DEBUG="--enable-debug"

# this makes it automated instead of waiting for you after a test run
export NO_INTERACTION=1

# You can fiddle with the list of available PHP's if you want
# This would be more elegant with bash 4 but alas ... there is centos (grumble)

for version in "php-master" "php-5.6" "php-5.5" "php-5.4" "php-5.3" "php-5.2"
do
    cd $PHP_SOURCE/$version

    if [ $version = "php-5.2" ]; then
        PATH=$OLD_BISON:$PATH
    fi

    make clean
    make distclean
    ./buildconf --force
<commit_msg>fix teh build script<commit_after>#!/bin/sh

# This will build and test multiple versions of PHP
# that's a lot of work and can literally take hours, hurray for automation

# this expects my file layout

# this is where you're sticking the PHP binaries
[ -z $PHP_BIN_ROOT ] && PHP_BIN_ROOT=/usr/local/php
# this is the parent dir for your git checkouts
[ -z $PHP_SOURCE ] && PHP_SOURCE=/home/auroraeosrose/Documents/Code/github.com/php
# if you want to add something to all the PHP configurations do it here
[ -z $PHP_ADDL_CONFIG ] && PHP_ADDL_CONFIG=

# I have mine in /usr/local/bison
[ -z $OLD_BISON ] && OLD_BISON=/usr/local/bison/bin

# these are the configure flags for each type
PHP_ZTS_DEBUG="--enable-debug --enable-maintainer-zts"
PHP_ZTS="--enable-maintainer-zts"
PHP_DEBUG="--enable-debug"

# this makes it automated instead of waiting for you after a test run
export NO_INTERACTION=1

# You can fiddle with the list of available PHP's if you want
# This would be more elegant with bash 4 but alas ... there is centos (grumble)

for version in "master" "php-7.1" "php-7.0" "php-5.6"
do
    cd $PHP_SOURCE/$version

    if [ $version = "php-5.6" ]; then
        PATH=$OLD_BISON:$PATH
    fi

    make clean
    make distclean
    ./buildconf --force

{'fraction_non_alphanumeric': 0.10272373540856031, 'fraction_numerical': 0.009727626459143969, 'mean_word_length': 3.5264084507042255, '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': '2039288', 'n_tokens_mistral': 887, 'n_tokens_neox': 840, 'n_words': 322}