summaryrefslogtreecommitdiff
path: root/update-luahbtex
diff options
context:
space:
mode:
Diffstat (limited to 'update-luahbtex')
-rw-r--r--update-luahbtex41
1 files changed, 41 insertions, 0 deletions
diff --git a/update-luahbtex b/update-luahbtex
new file mode 100644
index 00000000..5971d958
--- /dev/null
+++ b/update-luahbtex
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+server=http://dl.contextgarden.net/build/luatex/
+
+archs="
+amd64-freebsd
+armhf-linux
+i386-darwin
+i386-freebsd
+i386-linux
+i386-solaris
+sparc-solaris
+x86_64-darwinlegacy
+x86_64-linux
+x86_64-solaris
+"
+
+check_and_move() {
+ f=$1
+ a=$2
+ if [ ! -r $f.$a ] ; then
+ echo "Cannot find $f.$a"
+ fi
+ sz=$(stat -c %s $f.$a)
+ if [ $sz -lt 1000000 ] ; then
+ echo "file size suspicious for $f.$a: $sz"
+ else
+ mkdir -p bin/$a
+ mv $f.$a bin/$a/$f
+ fi
+}
+for a in $archs ; do
+ wget -O luahbtex.$a $server$a/luahbtex
+ check_and_move luahbtex $a
+ wget -O luajithbtex.$a $server$a/luajithbtex
+ check_and_move luajithbtex $a
+done
+
+
+
+