<commit_before>#! /bin/bash
banner() {
	echo "|------------------------------------------|"
	echo "|----- Welcome to the redox bootstrap -----|"
	echo "|------------------------------------------|"
}

gitClone() {
	git clone https://github.com/redox-os/redox.git --origin upstream --recursive
}

osx()
{
	echo "Detected OSX!"
	if [ ! -z "$(which brew)" ]; then
		echo "Homebrew detected! Now updating..."
		brew update
		if [ -z "$(which git)" ]; then
			echo "Now installing git..."
			brew install git
		fi
		if [ "$1" == "qemu" ]; then
			if [ -z "$(which qemu-system-i386)" ]; then
				echo "Installing qemu..."
				brew install qemu
			else
				echo "QEMU already installed!"
			fi
		else
			if [ -z "$(which virtualbox)" ]; then
				echo "Now installing virtualbox..."
				brew cask install virtualbox
			else
				echo "Virtualbox already installed!"
			fi
		fi
	else
		echo "Homebrew does not appear to be installed! Would you like me to install it?"
		printf "(Y/n): "
		read -r installit
		if [ "$installit" == "Y" ]; then
			ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
		else
			echo "Will not install, now exiting..."
			exit
		fi
	fi
	echo "Running Redox setup script..."
	brew tap homebrew/versions
	brew install gcc49
	brew tap Nashenas88/homebrew-gcc_cross_compilers
	brew install i386-elf-binutils i386-elf-gcc nasm
	brew install Caskroom/cask/osxfuse
	endMessage
}

archLinux()
{
	echo "Detected Arch Linux"<commit_msg>Add pkg-config dependency for osx<commit_after>#! /bin/bash
banner() {
	echo "|------------------------------------------|"
	echo "|----- Welcome to the redox bootstrap -----|"
	echo "|------------------------------------------|"
}

gitClone() {
	git clone https://github.com/redox-os/redox.git --origin upstream --recursive
}

osx()
{
	echo "Detected OSX!"
	if [ ! -z "$(which brew)" ]; then
		echo "Homebrew detected! Now updating..."
		brew update
		if [ -z "$(which git)" ]; then
			echo "Now installing git..."
			brew install git
		fi
		if [ "$1" == "qemu" ]; then
			if [ -z "$(which qemu-system-i386)" ]; then
				echo "Installing qemu..."
				brew install qemu
			else
				echo "QEMU already installed!"
			fi
		else
			if [ -z "$(which virtualbox)" ]; then
				echo "Now installing virtualbox..."
				brew cask install virtualbox
			else
				echo "Virtualbox already installed!"
			fi
		fi
	else
		echo "Homebrew does not appear to be installed! Would you like me to install it?"
		printf "(Y/n): "
		read -r installit
		if [ "$installit" == "Y" ]; then
			ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
		else
			echo "Will not install, now exiting..."
			exit
		fi
	fi
	echo "Running Redox setup script..."
	brew tap homebrew/versions
	brew install gcc49
	brew tap Nashenas88/homebrew-gcc_cross_compilers
	brew install i386-elf-binutils i386-elf-gcc nasm pkg-config
	brew install Caskroom/cask/osxfuse
	endMessage
}

archLinux()
{
	echo "Detected Arch Linux"
{'fraction_non_alphanumeric': 0.18631051752921535, 'fraction_numerical': 0.009348914858096828, 'mean_word_length': 2.3968253968253967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2298600', 'n_tokens_mistral': 1123, 'n_tokens_neox': 954, 'n_words': 318}