From c26b21e3b6716e0af95a985888dbf19ec864b4a9 Mon Sep 17 00:00:00 2001 From: Iori Yoneji Date: Sun, 4 Jun 2017 15:52:19 +0000 Subject: [PATCH] Add FreeBSD case in gcc.sh and change shebang to run wherever bash is installed. --- gcc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc.sh b/gcc.sh index 005f357..b3b003f 100755 --- a/gcc.sh +++ b/gcc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ROOT="$(cd `dirname $0` && pwd)" if [ "`uname`" == "Linux" ] @@ -7,6 +7,9 @@ then elif [ "`uname`" == "Darwin" ] then compiler="x86_64-elf-gcc" +elif [ "`uname`" == "FreeBSD" ] +then + compiler="gcc" else echo "$0: `uname` not supported" exit 1