[boinc] 01/02: Added script for download for wrappers for Windows

Steffen Möller moeller at moszumanska.debian.org
Fri Nov 22 13:53:03 UTC 2013


This is an automated email from the git hooks/post-receive script.

moeller pushed a commit to branch master
in repository boinc.

commit fab761754c5e3cc6a0d9eaea8fd11f85a8c39e82
Author: Steffen Moeller <steffen_moeller at gmx.de>
Date:   Tue Nov 12 08:38:10 2013 +0100

    Added script for download for wrappers for Windows
    
    boinc.berkeley.edu/dl offers them
---
 debian/boinc-server-maker.install     |    1 +
 debian/get_latest_windows_wrappers.sh |   37 +++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/debian/boinc-server-maker.install b/debian/boinc-server-maker.install
index cee000c..cd6e10e 100644
--- a/debian/boinc-server-maker.install
+++ b/debian/boinc-server-maker.install
@@ -6,3 +6,4 @@ py/Boinc/*.py			     usr/share/boinc-server-maker/py/Boinc
 usr/lib/libboinc_zip.so.*            usr/lib
 usr/lib/libsched.so.*                usr/lib
 debian/fetch_example_applications.sh	usr/share/boinc-server-maker
+debian/get_latest_windows_wrappers.sh   usr/share/boinc-server-maker
diff --git a/debian/get_latest_windows_wrappers.sh b/debian/get_latest_windows_wrappers.sh
new file mode 100755
index 0000000..7ffb8a5
--- /dev/null
+++ b/debian/get_latest_windows_wrappers.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+coreurl="http://boinc.berkeley.edu/dl/"
+
+if [ "-h" == "$1" -o "--help" == "$1" -o "-help" == "$1" ]; then
+	cat <<EOHELP
+Usage: $(basename $0) [destdir]
+
+The script fetches Windows binaries for the wrapper from the official BOINC repository at $coreurl.
+EOHELP
+	exit 0
+fi
+
+destdir=$1
+if [ -z "$destdir" ]; then
+	destdir="."
+fi
+
+if [ ! -d "$destdir" ]; then
+	echo "Cannot find destination directory '$destdir'."
+	exit 1
+fi
+
+set -e
+
+
+filename_32=$(wget $coreurl -O - | egrep ">wrapper_.*_windows_intelx86.zip<"|tail -n 1 |tr "<>" "\n"|grep "^wrapper")
+filename_64=$(wget $coreurl -O - | egrep ">wrapper_.*_windows_x86_64.zip<"|tail -n 1 |tr "<>" "\n"|grep "^wrapper")
+
+for i in $filename_32 $filename_64
+do
+	echo "Downloading '$i'"
+	wget $coreurl/$i -O /var/tmp/$i
+	(cd $destdir && unzip  /var/tmp/$i)
+	n=$(echo $i|sed -e 's/zip$/exe/')
+	mv $destdir/$n $destdir/$(echo $n|cut -f1,3,4,5 -d_)
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/boinc.git



More information about the pkg-boinc-commits mailing list