[SCM] BOINC packaging branch, master, updated. upstream/7.0.44+dfsg-618-g20b24f6
Gianfranco Costamagna
costamagnagianfranco at yahoo.it
Thu Jan 10 12:17:22 UTC 2013
The following commit has been merged in the master branch:
commit 20b24f650951047eb266fc76b33b9d713aa1bcfa
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Thu Jan 10 13:16:50 2013 +0100
First attempt to restore a working get-orig-source script
diff --git a/debian/rules b/debian/rules
index 939d1d0..6ceeba1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -382,7 +382,7 @@ override_dh_compress:
override_dh_installexamples:
dh_installexamples -Xjpeglib
-origDir ?= .
+origDir ?= ../
get-orig-source:
diskfree=`df -k . | awk '{print $$4}' | tail -n +2` ; \
@@ -390,16 +390,26 @@ get-orig-source:
echo "Not enough disk space for download. Have 250MB available if not more."; \
exit 1; \
fi
- LATEST_VERSION=`svn list http://boinc.berkeley.edu/svn/tags/ | \
- sed 's/boinc_core_release_\(.*\)\//\1/' | \
- sort -g -t_ -k1 -k2 -k3 | sed 's/_/./g' | tail -n 1 | tr -d '\n'`; \
- if [ -z "$$VERSION" ]; then VERSION=$$LATEST_VERSION; fi ; \
- EXB=/tmp/export-boinc; \
+ #LATEST_VERSION=`svn list http://boinc.berkeley.edu/svn/tags/ | \
+ # sed 's/boinc_core_release_\(.*\)\//\1/' | \
+ # sort -g -t_ -k1 -k2 -k3 | sed 's/_/./g' | tail -n 1 | tr -d '\n'`; \
+ #
+ 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'`
+ 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
+ rm -f $$EXB ;
+# fi ;
.PHONY: get-orig-source
--
BOINC packaging
More information about the pkg-boinc-commits
mailing list