summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2014-10-21 01:10:26 +0200
committerRuben Rodriguez <ruben@gnu.org>2014-10-21 01:10:26 +0200
commitc47f3dda10695dc1e71851e8cf7fdfb99d9d1c66 (patch)
tree2a44d64548885f28939d4f2fc17f9759849c3b57
parent14e6d0ed4be07a4d6bf94a141af83b7d60f1ac5f (diff)
Added tools dir
-rw-r--r--tools/AddonsScraper.py (renamed from AddonsScraper.py)0
-rw-r--r--tools/buildbinaries46
-rw-r--r--tools/gnupload54
3 files changed, 100 insertions, 0 deletions
diff --git a/AddonsScraper.py b/tools/AddonsScraper.py
index 3813252..3813252 100644
--- a/AddonsScraper.py
+++ b/tools/AddonsScraper.py
diff --git a/tools/buildbinaries b/tools/buildbinaries
new file mode 100644
index 0000000..0301cd7
--- /dev/null
+++ b/tools/buildbinaries
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+set -e
+
+VERSION=31.2.0
+JAILDIR="/home/systems/gnuzilla/jails/toutatis"
+ARCHS="i386 amd64"
+
+rm binaries -rf
+mkdir binaries
+
+for ARCH in $ARCHS; do
+ [ -f $JAILDIR-$ARCH/proc/cpuinfo ] || mount -t proc none $JAILDIR-$ARCH/proc
+ mount -t tmpfs -o size=20G none $JAILDIR-$ARCH/root/
+ cp icecat-$VERSION -a $JAILDIR-$ARCH/root/
+
+ cat << EOF > $JAILDIR-$ARCH/root/buildscript
+set -e
+set -x
+
+export LANG=C
+cd /root/icecat-$VERSION
+mkdir temp
+cd temp
+
+../configure --with-l10n-base=\$PWD/../l10n --enable-official-branding --disable-crashreporter --disable-gnomevfs --enable-gio --disable-debug --enable-gstreamer=0.10 --with-distribution-id=org.gnu --disable-updater
+make -j8
+
+cd browser/installer
+make
+
+cd ../locales
+for locale in \$(ls ../../../l10n/ -1); do
+make langpack-\$locale LOCALE_MERGEDIR=.
+done
+EOF
+
+ chroot $JAILDIR-$ARCH /bin/bash /root/buildscript
+ cp $JAILDIR-$ARCH/root/icecat-$VERSION/temp/dist/icecat*.tar.bz2 binaries
+ [ $ARCH = i386 ] && cp $JAILDIR-$ARCH/root/icecat-$VERSION/temp/dist/linux-*/xpi/ -a binaries/langpacks
+
+ umount $JAILDIR-$ARCH/root/ || true
+ umount $JAILDIR-$ARCH/proc || true
+
+done
+
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
+