Mercurial > hg > icedtea11
changeset 2388:3c2676fe374a
Add scripts to ease updating checksums and changeset IDs.
2011-05-18 Andrew John Hughes <ahughes@redhat.com>
* scripts/gen_changeset_and_sha256sums.sh,
* scripts/update_tarballs.sh:
Add scripts to ease updating changeset IDs
and checksums.
author | Andrew John Hughes <ahughes@redhat.com> |
---|---|
date | Wed, 18 May 2011 22:12:51 +0100 |
parents | fac8966dc7fb |
children | 9106cbc93669 |
files | ChangeLog scripts/gen_changeset_and_sha256sums.sh scripts/update_tarballs.sh |
diffstat | 3 files changed, 46 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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@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@redhat.com> * Makefile.am:
--- /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
--- /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