summaryrefslogtreecommitdiff
path: root/bin/Makefile.am
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-08-18 01:27:03 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-08-18 01:27:03 +0000
commit39a629b0d63ca675bd24844c924203d30bd3ba9b (patch)
tree3071af152be6485e53853551fa8c6e967b5e31ba /bin/Makefile.am
parentf723cb99008f2462abec46ab9b614fb8dd2f31d1 (diff)
Applying markh's Windows build patch.
Fixes COUCHDB-406 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin/Makefile.am')
-rw-r--r--bin/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/Makefile.am b/bin/Makefile.am
index cb0a827a..93a53192 100644
--- a/bin/Makefile.am
+++ b/bin/Makefile.am
@@ -10,7 +10,12 @@
## License for the specific language governing permissions and limitations under
## the License.
+if WINDOWS
+bin_SCRIPTS = couchdb.bat
+else
bin_SCRIPTS = couchdb couchjs
+endif
+
noinst_SCRIPTS = couchjs_dev
if HELP2MAN
@@ -69,6 +74,11 @@ couchjs_dev: couchjs.tpl
$@ < $<
chmod +x $@
+couchdb.bat: couchdb.bat.tpl
+ sed -e "s|%ICU_CONFIG%|$(ICU_CONFIG)|g" \
+ -e "s|%version%|@version@|g" \
+ $< > $@
+
HELP2MAN_OPTION=--no-info --help-option="-h" --version-option="-V"
# XXX: Because the scripts are made at build time for the user we need to