shithub: rgbds

Download patch

ref: bb85782faa5411052dfd0ee29f5e8b1c7711e78e
parent: b69cd0c34523a9bbb10a09ba751fb0afa7e7f565
author: bentley <[email protected]>
date: Thu Jan 14 17:16:59 EST 2010

this is a bourne script, bash is not needed

Don't use /bin/bash ! Many systems do not have bash there (they
might have it at /usr/local/bin/bash, for example). Don't specify
bash unless you specifically need bash features -- many systems
do not have bash installed by default.

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-localversion = $(shell bash scripts/localversion.sh)
+localversion = $(shell sh scripts/localversion.sh)
 
 cflags = -Wall -Iinclude -Iinclude/asm/gameboy -DLOCALVERSION=\"$(localversion)\" -g -std=c99 -D_POSIX_C_SOURCE=200112L
 
--- a/scripts/localversion.sh
+++ b/scripts/localversion.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/sh
 
 #
 # Use git to figure out which version we are using.