blob: ca20b6eba0ab83410fd825bc2a31d2a287b2add7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
|