From: Johann Date: Thu, 16 Feb 2012 22:20:44 +0000 (-0800) Subject: OS X shell is incompatible with echo -n X-Git-Tag: v1.1.0~87^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f0b303c286781013ef03ebafb8ee27936f5c2e2;p=platform%2Fupstream%2Flibvpx.git OS X shell is incompatible with echo -n Built in echo in 'sh' on OS X does not support -n (exclude trailing newline). It's not necessary so just leave it off. Fixes issue 390. Build include guard using 'symbol' so that it is more likely to be unique. Change-Id: I4bc6aa1fc5e02228f71c200214b5ee4a16d56b83 --- diff --git a/build/make/rtcd.sh b/build/make/rtcd.sh index a5f1e6d73..1dffde58a 100755 --- a/build/make/rtcd.sh +++ b/build/make/rtcd.sh @@ -196,8 +196,8 @@ filter() { # Helper functions for generating the arch specific RTCD files # common_top() { - local outfile_basename=$(basename ${outfile:-rtcd.h}) - local include_guard=$(echo -n $outfile_basename | tr '[a-z]' '[A-Z]' | tr -c '[A-Z]' _) + local outfile_basename=$(basename ${symbol:-rtcd.h}) + local include_guard=$(echo $outfile_basename | tr '[a-z]' '[A-Z]' | tr -c '[A-Z]' _) cat <