ref: e6047a17a9058b191ee618cd498fe71eaf2293ae
parent: f93b1e7be1d4be4c034e138fcd59b1d59e3cb036
parent: 5f0b303c286781013ef03ebafb8ee27936f5c2e2
author: Johann <johannkoenig@google.com>
date: Fri Feb 17 05:53:19 EST 2012
Merge "OS X shell is incompatible with echo -n"
--- a/build/make/rtcd.sh
+++ b/build/make/rtcd.sh
@@ -196,8 +196,8 @@
# 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 <<EOF
#ifndef ${include_guard}
#define ${include_guard}
@@ -225,7 +225,7 @@
# Assign the helper variable for each enabled extension
for opt in $ALL_ARCHS; do
- local uc=$(echo -n $opt | tr '[a-z]' '[A-Z]')
+ local uc=$(echo $opt | tr '[a-z]' '[A-Z]')
eval "have_${opt}=\"flags & HAS_${uc}\""
done
@@ -253,7 +253,7 @@
# Assign the helper variable for each enabled extension
for opt in $ALL_ARCHS; do
- local uc=$(echo -n $opt | tr '[a-z]' '[A-Z]')
+ local uc=$(echo $opt | tr '[a-z]' '[A-Z]')
eval "have_${opt}=\"flags & HAS_${uc}\""
done