<commit_before>#!/bin/bash

set -e # Quit the script immediately if any of the commands fails.

# Test that the user has all the necessary command line tools installed
echo "Testing the presence of wget,svn,git,hg,cmake,make.."
wget --version > /dev/null
svn --version > /dev/null
git --version > /dev/null
hg --version > /dev/null
cmake --version > /dev/null
make --version > /dev/null
echo "OK."

echo "ANDROID_NDK is at '$ANDROID_NDK'"
if [ -z "$ANDROID_NDK" ]; then
	echo "ERROR: Please export environment variable ANDROID_NDK to point to where you installed the Android NDK (r8)! Note that NDK r8b or newer are not (yet) supported!"
	exit 1
fi

tundra_android_native_api_level=9 # This is the minimum API level we can possibly support, we require NativeActivity and AAssetManager.
echo "Targeting Android Native API level $tundra_android_native_api_level"
export TUNDRA_ANDROID_ABI=armeabi-v7a # Possible options 'armeabi', 'armeabi-v7a', 'x86'
echo "Targeting Android ABI '$TUNDRA_ANDROID_ABI'"
 
cmake_build_type=Release

tundra=$(dirname $(readlink -f $0))/..
echo "Tundra root directory is '$tundra'"
deps=$tundra/deps-android
echo "Tundra deps root directory is '$deps'"
mkdir -p $deps
deps=$(cd $deps && pwd)
tundra=$(cd $tundra && pwd)
tundra_android=$tundra/android

cd $deps

if [ ! -d bullet/.svn ]; then
	echo "Checking out Bullet.."<commit_msg>Revert back to default x86 ABI.<commit_after>#!/bin/bash

set -e # Quit the script immediately if any of the commands fails.

# Test that the user has all the necessary command line tools installed
echo "Testing the presence of wget,svn,git,hg,cmake,make.."
wget --version > /dev/null
svn --version > /dev/null
git --version > /dev/null
hg --version > /dev/null
cmake --version > /dev/null
make --version > /dev/null
echo "OK."

echo "ANDROID_NDK is at '$ANDROID_NDK'"
if [ -z "$ANDROID_NDK" ]; then
	echo "ERROR: Please export environment variable ANDROID_NDK to point to where you installed the Android NDK (r8)! Note that NDK r8b or newer are not (yet) supported!"
	exit 1
fi

tundra_android_native_api_level=9 # This is the minimum API level we can possibly support, we require NativeActivity and AAssetManager.
echo "Targeting Android Native API level $tundra_android_native_api_level"
export TUNDRA_ANDROID_ABI=x86 # Possible options 'armeabi', 'armeabi-v7a', 'x86'
echo "Targeting Android ABI '$TUNDRA_ANDROID_ABI'"
 
cmake_build_type=Release

tundra=$(dirname $(readlink -f $0))/..
echo "Tundra root directory is '$tundra'"
deps=$tundra/deps-android
echo "Tundra deps root directory is '$deps'"
mkdir -p $deps
deps=$(cd $deps && pwd)
tundra=$(cd $tundra && pwd)
tundra_android=$tundra/android

cd $deps

if [ ! -d bullet/.svn ]; then
	echo "Checking out Bullet.."
{'fraction_non_alphanumeric': 0.11420204978038068, 'fraction_numerical': 0.0076866764275256225, 'mean_word_length': 4.6234567901234565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5753452', 'n_tokens_mistral': 997, 'n_tokens_neox': 957, 'n_words': 332}