Repository: calcite
Updated Branches:
  refs/heads/master 0938c7b6d -> d45c14a63


[CALCITE-1329] As part of release, generate a file containing multiple digests

Close apache/calcite#272


Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/2f1932dc
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/2f1932dc
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/2f1932dc

Branch: refs/heads/master
Commit: 2f1932dcd91407bd44930f9644e1f9d2e5c750c3
Parents: 0938c7b
Author: Julian Hyde <jh...@apache.org>
Authored: Wed Aug 24 18:21:17 2016 -0700
Committer: Jesus Camacho Rodriguez <jcama...@apache.org>
Committed: Fri Sep 16 13:28:52 2016 +0200

----------------------------------------------------------------------
 site/_docs/howto.md     |  8 +++++++-
 site/downloads/index.md | 15 +++++++++++----
 2 files changed, 18 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/2f1932dc/site/_docs/howto.md
----------------------------------------------------------------------
diff --git a/site/_docs/howto.md b/site/_docs/howto.md
index 6fa2a8f..467624b 100644
--- a/site/_docs/howto.md
+++ b/site/_docs/howto.md
@@ -550,8 +550,14 @@ pushd ~/dist/dev
 svn co https://dist.apache.org/repos/dist/dev/calcite
 popd
 
-# Move the files into a directory
+# Replace digest files with a single digest
 cd target
+for f in *.tar.gz *.zip; do
+  rm ${f}.md5 ${f}.sha1
+  gpg --print-mds ${f} > ${f}.mds
+done
+
+# Move the files into a directory
 mkdir ~/dist/dev/calcite/apache-calcite-X.Y.Z-rcN
 mv apache-calcite-* ~/dist/dev/calcite/apache-calcite-X.Y.Z-rcN
 

http://git-wip-us.apache.org/repos/asf/calcite/blob/2f1932dc/site/downloads/index.md
----------------------------------------------------------------------
diff --git a/site/downloads/index.md b/site/downloads/index.md
index 7faead0..31cf3d0 100644
--- a/site/downloads/index.md
+++ b/site/downloads/index.md
@@ -47,15 +47,22 @@ Release          | Date       | Commit   | Download
 {% endcomment %}{% assign q = "" %}{% comment %}
 {% endcomment %}{% assign d = "https://archive.apache.org/dist"; %}{% comment %}
 {% endcomment %}{% endif %}{% comment %}
+{% endcomment %}{% capture d1 %}{{ post.date | date: "%F"}}{% endcapture %}{% 
comment %}
+{% endcomment %}{% capture d2 %}2016-06-13{% endcapture %}{% comment %}
+{% endcomment %}{% if d1 > d2 %}{% comment %}
+{% endcomment %}{% assign digest = "mds" %}{% comment %}
+{% endcomment %}{% else %}{% comment %}
+{% endcomment %}{% assign digest = "md5" %}{% comment %}
+{% endcomment %}{% endif %}{% comment %}
 {% endcomment %}<a href="{{ site.baseurl }}/docs/history.html#{{ post.tag 
}}">{{ post.version }}</a>{% comment %}
 {% endcomment %} | {{ post.date | date_to_string }}{% comment %}
 {% endcomment %} | <a href="https://github.com/apache/calcite/commit/{{ 
post.sha }}">{{ post.sha }}</a>{% comment %}
 {% endcomment %} | <a href="{{ p }}/{{ v }}-src.tar.gz{{ q }}">tar</a>{% 
comment %}
-{% endcomment %} (<a href="{{ d }}/calcite/{{ v }}/{{ v 
}}-src.tar.gz.md5">md5</a>{% comment %}
+{% endcomment %} (<a href="{{ d }}/calcite/{{ v }}/{{ v }}-src.tar.gz.{{ 
digest }}">digest</a>{% comment %}
 {% endcomment %} <a href="{{ d }}/calcite/{{ v }}/{{ v 
}}-src.tar.gz.asc">pgp</a>){% comment %}
 {% endcomment %} {% raw %}<br>{% endraw %}{% comment %}
 {% endcomment %} <a href="{{ p }}/{{ v }}-src.zip{{ q }}">zip</a>{% comment %}
-{% endcomment %} (<a href="{{ d }}/calcite/{{ v }}/{{ v 
}}-src.zip.md5">md5</a>{% comment %}
+{% endcomment %} (<a href="{{ d }}/calcite/{{ v }}/{{ v }}-src.zip.{{ digest 
}}">digest</a>{% comment %}
 {% endcomment %} <a href="{{ d }}/calcite/{{ v }}/{{ v 
}}-src.zip.asc">pgp</a>){% comment %}
 {% endcomment %}
 {% endfor %}
@@ -64,8 +71,8 @@ Choose a source distribution in either *tar* or *zip* format,
 and [verify](http://www.apache.org/dyn/closer.cgi#verify)
 using the corresponding *pgp* signature (using the committer file in
 [KEYS](http://www.apache.org/dist/calcite/KEYS)).
-If you cannot do that, the *md5* hash file may be used to check that the
-download has completed OK.
+If you cannot do that, use the *digest* file
+to check that the download has completed OK.
 
 For fast downloads, current source distributions are hosted on mirror servers;
 older source distributions are in the

Reply via email to