[boinc] 01/01: Dirty and someway fixed export-boinc script
Gianfranco Costamagna
locutusofborg-guest at alioth.debian.org
Mon Sep 9 15:59:04 UTC 2013
This is an automated email from the git hooks/post-receive script.
locutusofborg-guest pushed a commit to branch master
in repository boinc.
commit 50c4caada5a83eb81e7d75d8cff3f0402418f35c
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Mon Sep 9 17:58:33 2013 +0200
Dirty and someway fixed export-boinc script
---
debian/rules | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/debian/rules b/debian/rules
index ef330c6..9f82776 100755
--- a/debian/rules
+++ b/debian/rules
@@ -424,6 +424,7 @@ override_dh_installexamples:
dh_installexamples -Xjpeglib
origDir ?= .
+EXB ?=/tmp/index.html
get-orig-source:
diskfree=`df -k . | awk '{print $$4}' | tail -n +2` ; \
@@ -435,23 +436,24 @@ get-orig-source:
# sed 's/boinc_core_release_\(.*\)\//\1/' | \
# sort -g -t_ -k1 -k2 -k3 | sed 's/_/./g' | tail -n 1 | tr -d '\n'`; \
#
- echo "this script doesn't work anymore since the upstream switch from svn to git"
- #VERSION=$(shell dpkg-parsechangelog | egrep '^Version:' | \
- #cut -d ' ' -f 2 | cut -d '-' -f 1 | cut -d '+' -f 1 | cut -d '~' -f 1 | perl -pe 's/^.*?://')
- #EXB=/tmp/index.html; \
- #nice="nice -5"; if [ -x /usr/bin/ionice ]; then nice="$$nice ionice -c 3"; fi ; \
- #$$nice wget -O $$EXB "http://boinc.berkeley.edu/git/boinc.git/refs/tags/" --quiet;
- #LATEST_VERSION=`grep -e 'client_release_[0-9]\.[0-9]\.[0-9]*' $$EXB -o | tail -n 1 | sed 's/client_release_//g'`
+ #echo "this script doesn't work anymore since the upstream switch from svn to git"
+ VERSION=$(shell dpkg-parsechangelog | egrep '^Version:' | \
+ cut -d ' ' -f 2 | cut -d '-' -f 1 | cut -d '+' -f 1 | cut -d '~' -f 1 | perl -pe 's/^.*?://')
+ nice="nice -5"; if [ -x /usr/bin/ionice ]; then nice="$$nice ionice -c 3"; fi ; \
+ $$nice wget -O $(EXB) "http://boinc.berkeley.edu/git/boinc-v2.git/refs/tags/client_release/7.2/" --quiet;
+ LATEST_VERSION=$(shell grep -e '[0-9]\.[0-9]\.[0-9]*' $(EXB) -o |sort -n |tail -n 1)
+ $(shell echo $(LATEST_VERSION))
+ echo $$VERSION
#rm -f $$EXB
#FIXME
#next part should be done only if the two versions are different, how to perform this if?
##if [ "$$VERSION"!="$$LATEST_VERSION" ]; then
- #EXB=/tmp/export-boinc; \
- #$$nice wget -O $$EXB "http://git.debian.org/?p=pkg-boinc/scripts.git;a=blob_plain;f=export-boinc;hb=HEAD" --quiet; \
- #chmod +x $$EXB; \
- #$$nice $$EXB -r $$VERSION -t $(origDir); \
- #rm -f $$EXB ;
- ##fi ;
+ EXB=/tmp/export-boinc; \
+ $$nice wget -O $$EXB "http://git.debian.org/?p=pkg-boinc/scripts.git;a=blob_plain;f=export-boinc;hb=HEAD" --quiet; \
+ chmod +x $$EXB; \
+ $$nice $$EXB -r $(shell grep -e '[0-9]\.[0-9]\.[0-9]*' $(EXB) -o |sort -n |tail -n 1) -t $(origDir); \
+ rm -f $$EXB ;
+ #fi ;
.PHONY: get-orig-source
--
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