summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hammond <mhammond@apache.org>2010-02-26 01:32:21 +0000
committerMark Hammond <mhammond@apache.org>2010-02-26 01:32:21 +0000
commit4cefde131f1992c70f66c527435a715290174423 (patch)
tree9e01c50a673035805cd2c981b3fc30dc312da1e6
parent80af3c459dd1a27dbc2991942faffa12c94e040c (diff)
generate .sha file for windows binary; ensure md5/sha use rel paths
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916528 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--etc/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
index 10c9dc03..1dc70c4c 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -28,7 +28,7 @@ nobase_sysconf_DATA = $(default_sysconf_data) $(init_sysconf_data)
EXTRA_DIST = $(init_sysconf_data)
if WINDOWS
-EXTRA_DIST += windows/setup-couchdb-@version@.exe.md5
+EXTRA_DIST += windows/setup-couchdb-@version@.exe.md5 windows/setup-couchdb-@version@.exe.sha
endif
CLEANFILES = $(init_DATA) $(default_sysconf_data) $(launchd_DATA)
@@ -97,8 +97,10 @@ windows/setup-couchdb-@version@.exe: windows/couchdb.iss windows/README.txt FORC
@echo Windows Installer is at: `cygpath -a -w windows/setup-couchdb-@version@.exe`
windows/setup-couchdb-@version@.exe.md5: windows/setup-couchdb-@version@.exe
- md5sum $< > $@
- @echo Windows Installer is at: `cygpath -a -w windows/setup-couchdb-@version@.exe`
+ cd windows && md5sum ./$(<F) > $(@F)
+
+windows/setup-couchdb-@version@.exe.sha: windows/setup-couchdb-@version@.exe
+ cd windows && sha1sum ./$(<F) > $(@F)
FORCE: