Skip to content

Commit

Permalink
Merge pull request #7 from iori-yja/allow_build_on_freebsd
Browse files Browse the repository at this point in the history
Add FreeBSD case in gcc.sh and change shebang to run wherever bash is installed.
  • Loading branch information
jackpot51 authored Jun 4, 2017
2 parents ecd2edd + c26b21e commit c67b055
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gcc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
ROOT="$(cd `dirname $0` && pwd)"

if [ "`uname`" == "Linux" ]
Expand All @@ -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
Expand Down

0 comments on commit c67b055

Please sign in to comment.