changeset 1285:fc3dc99a545d

2008-12-19 Andrew Haley <aph@redhat.com> * Makefile.am (stamps/download.stamp): Check MD5sum on hotspot.tar.gz. * hotspot.map: Add md5sum for 14.0b08.
author Andrew Haley <aph@redhat.com>
date Fri, 19 Dec 2008 14:02:38 +0000
parents 83952ccf276b
children a58b6b3002c2 557ccffda8c5
files ChangeLog Makefile.am hotspot.map
diffstat 3 files changed, 20 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 17 22:16:21 2008 +0000
+++ b/ChangeLog	Fri Dec 19 14:02:38 2008 +0000
@@ -1,3 +1,8 @@
+2008-12-19  Andrew Haley  <aph@redhat.com>
+
+	* Makefile.am (stamps/download.stamp): Check MD5sum on hotspot.tar.gz.
+	* hotspot.map: Add md5sum for 14.0b08.
+
 2008-12-17  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
 	* acinclude.m4:
--- a/Makefile.am	Wed Dec 17 22:16:21 2008 +0000
+++ b/Makefile.am	Fri Dec 19 14:02:38 2008 +0000
@@ -385,8 +385,19 @@
 if WITH_ALT_HSBUILD
 if USE_ALT_HOTSPOT_SRC_ZIP
 else
-	changeset="`cat $(abs_top_srcdir)/hotspot.map|grep $(HSBUILD)|cut -f2`"; \
-	$(WGET) $(HOTSPOT_URL)$${changeset}.tar.gz -O $(HOTSPOT_SRC_ZIP);
+	hotspot_md5sum="`$(AWK) 'version==$$1 {print $$3}' version=$(HSBUILD) \
+	  $(abs_top_srcdir)/hotspot.map`" ; \
+	if ! echo "$${hotspot_md5sum}  $(HOTSPOT_SRC_ZIP)" \
+	  | $(MD5SUM) --check ; \
+	then \
+	  if [ $(HOTSPOT_SRC_ZIP) ] ; \
+	  then \
+	    mv $(HOTSPOT_SRC_ZIP) $(HOTSPOT_SRC_ZIP).old ; \
+	  fi ; \
+	  changeset="`$(AWK) 'version==$$1 {print $$2}' version=$(HSBUILD) \
+	    $(abs_top_srcdir)/hotspot.map`" ; \
+	  $(WGET) $(HOTSPOT_URL)$${changeset}.tar.gz -O $(HOTSPOT_SRC_ZIP) ; \
+	fi
 endif
 endif
 endif
--- a/hotspot.map	Wed Dec 17 22:16:21 2008 +0000
+++ b/hotspot.map	Fri Dec 19 14:02:38 2008 +0000
@@ -1,1 +1,2 @@
-14.0b08	f9d938ede196
+# version changeset md5sum
+14.0b08	f9d938ede196 c8f78d48ac83987bc2adebeebcd354e9