<commit_before>#!/bin/bash
set -e
ROOTDIR=`dirname "$0"`
ROOTDIR=`cd "$ROOTDIR/../.." && pwd`
source "$ROOTDIR/internal/lib/library.sh"

COMPILE_CONCURRENCY=${COMPILE_CONCURRENCY:-2}
export DEBIAN_FRONTEND=noninteractive
if [[ "$DISTRIBUTION" = ubuntu10.04 ]]; then
	export LC_ALL=POSIX
	export LC_CTYPE=POSIX
else
	export LC_ALL=C.UTF-8
	export LC_CTYPE=C.UTF-8
fi

echo
header "Installing packages..."
run apt-get update -q
if ls /output/*enterprise* >/dev/null 2>/dev/null; then
	run gdebi -n /output/passenger-enterprise_*_amd64.deb
	run gdebi -n /output/passenger-enterprise-dev_*_amd64.deb
	run gdebi -n /output/passenger-enterprise-doc_*_all.deb
	run gdebi -n /output/libapache2-mod-passenger-enterprise_*_amd64.deb
else
	run gdebi -n /output/passenger_*_amd64.deb
	run gdebi -n /output/passenger-dev_*_amd64.deb
	run gdebi -n /output/passenger-doc_*_all.deb
	run gdebi -n /output/libapache2-mod-passenger_*_amd64.deb
fi
run gdebi -n /output/nginx-common_*_all.deb
run gdebi -n /output/nginx-extras_*_amd64.deb
run apt-get install -y -q apache2-dev

echo
header "Preparing Passenger source code..."<commit_msg>Test script: run gdebi without progress information<commit_after>#!/bin/bash
set -e
ROOTDIR=`dirname "$0"`
ROOTDIR=`cd "$ROOTDIR/../.." && pwd`
source "$ROOTDIR/internal/lib/library.sh"

COMPILE_CONCURRENCY=${COMPILE_CONCURRENCY:-2}
export DEBIAN_FRONTEND=noninteractive
if [[ "$DISTRIBUTION" = ubuntu10.04 ]]; then
	export LC_ALL=POSIX
	export LC_CTYPE=POSIX
else
	export LC_ALL=C.UTF-8
	export LC_CTYPE=C.UTF-8
fi

echo
header "Installing packages..."
run apt-get update -q
if ls /output/*enterprise* >/dev/null 2>/dev/null; then
	run gdebi -n -q /output/passenger-enterprise_*_amd64.deb
	run gdebi -n -q /output/passenger-enterprise-dev_*_amd64.deb
	run gdebi -n -q /output/passenger-enterprise-doc_*_all.deb
	run gdebi -n -q /output/libapache2-mod-passenger-enterprise_*_amd64.deb
else
	run gdebi -n -q /output/passenger_*_amd64.deb
	run gdebi -n -q /output/passenger-dev_*_amd64.deb
	run gdebi -n -q /output/passenger-doc_*_all.deb
	run gdebi -n -q /output/libapache2-mod-passenger_*_amd64.deb
fi
run gdebi -n -q /output/nginx-common_*_all.deb
run gdebi -n -q /output/nginx-extras_*_amd64.deb
run apt-get install -y -q apache2-dev

echo
header "Preparing Passenger source code..."
{'fraction_non_alphanumeric': 0.1359687228496959, 'fraction_numerical': 0.022589052997393572, 'mean_word_length': 4.294252873563218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6304990', 'n_tokens_mistral': 994, 'n_tokens_neox': 921, 'n_words': 205}