From c47f3dda10695dc1e71851e8cf7fdfb99d9d1c66 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Tue, 21 Oct 2014 01:10:26 +0200 Subject: Added tools dir --- tools/gnupload | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tools/gnupload (limited to 'tools/gnupload') diff --git a/tools/gnupload b/tools/gnupload new file mode 100644 index 0000000..ca20b6e --- /dev/null +++ b/tools/gnupload @@ -0,0 +1,54 @@ +#!/bin/bash + +[ -d binaries ] || echo Binaries dir not found, exiting +[ -d binaries ] || exit 1 + +find binaries -type f | grep -e asc$ -e sig$ | xargs -r rm + +set -e + +VERSION=31.2.0 +newline=" +" +mputs="" + +for file in $(ls binaries/|grep icecat); do + + gpg -b --default-key D7E04784 binaries/$file + echo "version: 1.2 +filename: $file +directory: gnuzilla/$VERSION +" > binaries/$file.directive +gpg --default-key D7E04784 --clearsign binaries/$file.directive +rm binaries/$file.directive +mputs="${mputs}put binaries/$file $file $newline" +mputs="${mputs}put binaries/$file.sig $file.sig $newline" +mputs="${mputs}put binaries/$file.directive.asc $file.directive.asc $newline" + +done + + +for file in $(ls binaries/langpacks); do + + gpg -b --default-key D7E04784 binaries/langpacks/$file + echo "version: 1.2 +filename: $file +directory: gnuzilla/$VERSION/langpacks +" > binaries/langpacks/$file.directive +gpg --default-key D7E04784 --clearsign binaries/langpacks/$file.directive +rm binaries/langpacks/$file.directive +mputs="${mputs}put binaries/langpacks/$file $file $newline" +mputs="${mputs}put binaries/langpacks/$file.sig $file.sig $newline" +mputs="${mputs}put binaries/langpacks/$file.directive.asc $file.directive.asc $newline" + +done + +#cat << EOF +ftp -v -p -n -i << EOF | tee log +open ftp-upload.gnu.org +user anonymous anonymous +cd /incoming/alpha +$mputs +quit +EOF + -- cgit v1.2.3