summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--THANKS2
-rw-r--r--bin/couchdb.tpl.in4
-rw-r--r--src/couchdb/Makefile.am2
-rw-r--r--src/couchdb/couch.app.tpl.in2
4 files changed, 6 insertions, 4 deletions
diff --git a/THANKS b/THANKS
index 08d00a76f..ad5104b7e 100644
--- a/THANKS
+++ b/THANKS
@@ -54,5 +54,7 @@ suggesting improvements or submitting changes. Some of these people are:
* Joscha Feth <joscha@feth.com>
* Jarrod Roberson <jarrod@vertigrated.com>
* Jae Kwon <jkwon.work@gmail.com>
+ * Gavin Sherry <swm@alcove.com.au>
+ * Timothy Smith <tim@couch.io>
For a list of authors see the `AUTHORS` file.
diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in
index bdea97fec..686b18b3b 100644
--- a/bin/couchdb.tpl.in
+++ b/bin/couchdb.tpl.in
@@ -120,8 +120,8 @@ EOF
}
_add_config_dir () {
- for file in `find "$1" -mindepth 1 -maxdepth 1 -type f -name '*.ini'`; do
- _add_config_file $file
+ for file in "$1"/*.ini; do
+ [ -r "$file" ] && _add_config_file "$file"
done
}
diff --git a/src/couchdb/Makefile.am b/src/couchdb/Makefile.am
index b5c84f334..a58187035 100644
--- a/src/couchdb/Makefile.am
+++ b/src/couchdb/Makefile.am
@@ -179,7 +179,7 @@ couch.app: couch.app.tpl
$@ < $<
else
couch.app: couch.app.tpl
- modules=`find . -name "*.erl" -exec basename {} .erl \; | tr '\n' ',' | sed "s/,$$//"`; \
+ modules=`{ find . -name "*.erl" -exec basename {} .erl \; | tr '\n' ','; echo ''; } | sed "s/,$$//"`; \
sed -e "s|%package_name%|@package_name@|g" \
-e "s|%version%|@version@|g" \
-e "s|@modules@|$$modules|g" \
diff --git a/src/couchdb/couch.app.tpl.in b/src/couchdb/couch.app.tpl.in
index fa86d2ecc..36b0b34cf 100644
--- a/src/couchdb/couch.app.tpl.in
+++ b/src/couchdb/couch.app.tpl.in
@@ -26,4 +26,4 @@
]}},
{applications, [kernel, stdlib]},
{included_applications, [crypto, sasl, inets, oauth, ibrowse, mochiweb]}
-]}. \ No newline at end of file
+]}.