summaryrefslogtreecommitdiff
path: root/script/mkcarray
diff options
context:
space:
mode:
Diffstat (limited to 'script/mkcarray')
-rw-r--r--script/mkcarray7
1 files changed, 4 insertions, 3 deletions
diff --git a/script/mkcarray b/script/mkcarray
index ed980abd72..8717b52292 100644
--- a/script/mkcarray
+++ b/script/mkcarray
@@ -2,8 +2,8 @@
name=$1; shift
-quote() {
- echo "$1" | sed 's/\\/\\\\/g; s/"/\\"/'
+quote () {
+ echo "$1" | sed 's/\\/\\\\/g; s/"/\\"/g'
}
cat <<-EOF
@@ -13,7 +13,8 @@ cat <<-EOF
static const char *MAKE_${name}[] = {
EOF
-for i in $(cat); do
+for i in $(cat)
+do
printf '\t"%s",\n' "$(quote "$i")"
done