OSDN Git Service

Work around MSYS' `openssl sha1' output format anomaly.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 31 May 2011 18:43:27 +0000 (18:43 +0000)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 31 May 2011 18:43:27 +0000 (18:43 +0000)
ChangeLog
Makefile.comm.in

index 5509188..6221f74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Work around MSYS' `openssl sha1' output format anomaly.
+
+       * Makefile.comm.in (sha1sum): New macro; define it.
+       (sha1hash): Use it.
+
 2011-05-30  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>
 
        Update & publish msys-mintty.
index 6b8b0c0..1eae7da 100644 (file)
@@ -67,7 +67,8 @@ issue_log = ${srcdir}/issue.log
 # ensures that the computed hash is not influenced by any unintentional
 # pollution due to accidental insertion of CRLF line endings).
 #
-sha1hash = awk '{ sub( "\r$$", "" ); print }' $< | openssl sha1
+sha1hash = awk '{ sub( "\r$$", "" ); print }' $< | $(sha1sum)
+sha1sum = openssl sha1 | awk '{print $$NF}'
 
 # Formatting within issue.log is controlled by PAD and TAB settings.
 #