/hg/icedtea: Add scripts to ease updating checksums and changese...
andrew at icedtea.classpath.org
andrew at icedtea.classpath.org
Wed May 18 14:12:56 PDT 2011
changeset 3c2676fe374a in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=3c2676fe374a
author: Andrew John Hughes <ahughes at redhat.com>
date: Wed May 18 22:12:51 2011 +0100
Add scripts to ease updating checksums and changeset IDs.
2011-05-18 Andrew John Hughes <ahughes at redhat.com>
* scripts/gen_changeset_and_sha256sums.sh,
* scripts/update_tarballs.sh: Add scripts to ease updating
changeset IDs and checksums.
diffstat:
ChangeLog | 7 +++++++
scripts/gen_changeset_and_sha256sums.sh | 19 +++++++++++++++++++
scripts/update_tarballs.sh | 20 ++++++++++++++++++++
3 files changed, 46 insertions(+), 0 deletions(-)
diffs (61 lines):
diff -r fac8966dc7fb -r 3c2676fe374a ChangeLog
--- a/ChangeLog Wed May 18 22:00:35 2011 +0100
+++ b/ChangeLog Wed May 18 22:12:51 2011 +0100
@@ -1,3 +1,10 @@
+2011-05-18 Andrew John Hughes <ahughes at redhat.com>
+
+ * scripts/gen_changeset_and_sha256sums.sh,
+ * scripts/update_tarballs.sh:
+ Add scripts to ease updating changeset IDs
+ and checksums.
+
2011-05-18 Denis Lila <dlila at redhat.com>
* Makefile.am:
diff -r fac8966dc7fb -r 3c2676fe374a scripts/gen_changeset_and_sha256sums.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/gen_changeset_and_sha256sums.sh Wed May 18 22:12:51 2011 +0100
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+DOWNLOAD_DIR=$1
+
+if test "x$DOWNLOAD_DIR" = "x"; then
+ DOWNLOAD_DIR=/home/downloads/java/icedtea ;
+fi
+
+rm -f /tmp/changesets /tmp/sums
+for repos in corba hotspot jaxp jaxws jdk langtools openjdk
+do
+ echo Generating changeset and checksum for $repos using $DOWNLOAD_DIR/$repos.tar.gz
+ file=$DOWNLOAD_DIR/$repos.tar.gz
+ id=$(echo $repos|tr '[a-z]' '[A-Z]')
+ sha256sum=$(sha256sum $file|awk '{print $1}')
+ changeset=$(tar tzf $file|head -n1|sed -r "s#[a-z0-9-]*-([0-9a-z]*)/.*#\1#")
+ echo "${id}_CHANGESET = $changeset" >> /tmp/changesets
+ echo "${id}_SHA256SUM = $sha256sum" >> /tmp/sums
+done
diff -r fac8966dc7fb -r 3c2676fe374a scripts/update_tarballs.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/update_tarballs.sh Wed May 18 22:12:51 2011 +0100
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+DOWNLOAD_DIR=$1
+RUNNING_DIR=$(dirname $0)
+echo $PWD
+
+if test "x$DOWNLOAD_DIR" = "x"; then
+ DOWNLOAD_DIR=/home/downloads/java/icedtea ;
+fi
+
+echo Downloading new tarballs to $DOWNLOAD_DIR
+pushd $DOWNLOAD_DIR
+for repos in corba jaxp jaxws langtools hotspot jdk;
+do
+ wget -O $repos.tar.gz http://icedtea.classpath.org/hg/icedtea7-forest/$repos/archive/tip.tar.gz
+done
+wget -O openjdk.tar.gz http://icedtea.classpath.org/hg/icedtea7-forest/archive/tip.tar.gz
+echo Generating new changeset IDs and SHA256 sums
+popd
+$RUNNING_DIR/gen_changeset_and_sha256sums.sh
More information about the distro-pkg-dev
mailing list