=== removed directory 'scripts' === removed file 'scripts/digest_download' --- scripts/digest_download 2011-11-09 14:33:14 +0000 +++ scripts/digest_download 1970-01-01 00:00:00 +0000 @@ -1,27 +0,0 @@ -#!/bin/zsh -# vim: noet ts=4 sts=4 -# TODO: write this script properly :] -# it should accept directory to download to / check for existing files - -die() { - echo DIE: $@ - exit 1 -} -CHECKSUM_URI=$1 - -wget -N $CHECKSUM_URI || die "downloading stage3 checksum failed" - -CHECK=`basename $CHECKSUM_URI` -gpg --verify $CHECK || die "Verifying the checksums PGP signature failed" -STAGE=${CHECK%.DIGESTS.asc} -# quick hack to check we don't have wrong .asc, might break in future -sums=(`egrep '^[a-fA-F0-9]{40} ' $CHECK`) -[[ $sums[2] == $STAGE ]] || die "something is wrong with checksum file" -if [ ! -f $STAGE ] -then - wget -nc `dirname $CHECKSUM_URI`/$STAGE'*' || die "download failed" -fi - -sha1sum -c $CHECK 1>&2 || die "sha1sum failed" -echo $STAGE - === removed file 'scripts/http_glob' --- scripts/http_glob 2011-11-09 14:33:14 +0000 +++ scripts/http_glob 1970-01-01 00:00:00 +0000 @@ -1,8 +0,0 @@ -#!/bin/zsh -# vim: noet ts=4 sts=4 -files=( $(wget -qO - ${1:h}/ | sed -n '/ - {script_dir(ScriptDir)}, - [run_outvar([ScriptDir +/+ http_glob, Uri], uri)]. + [run_outvar([http_glob, Uri], uri)]. digest_download(variable(downloaded), Uri) --> - {script_dir(ScriptDir)}, - [run_outvar([ScriptDir +/+ digest_download, Uri], downloaded)]. + [run_outvar([digest_download, Uri], downloaded)]. download_gentoo_stage(File, Mirror, Arch, Subarch, Subdir) --> http_glob(Uri