[boinc] 01/01: New import script! Now you can easily import new releases with "uscan" command

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Thu Feb 13 17:54:41 UTC 2014


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

locutusofborg-guest pushed a commit to branch master
in repository boinc.

commit 2547e1dc7b0518635b1ea9df686c28d73d159e75
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Thu Feb 13 18:54:18 2014 +0100

    New import script!
    Now you can easily import new releases with "uscan" command
---
 debian/get-orig-source.sh |  8 ++++++++
 debian/rules              | 33 ---------------------------------
 debian/watch              |  3 ++-
 3 files changed, 10 insertions(+), 34 deletions(-)

diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
new file mode 100644
index 0000000..5248bcc
--- /dev/null
+++ b/debian/get-orig-source.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+UPSTREAM_TAG=$2
+UPSTREAM_TAG_LOCATION=$3
+EXB=/tmp/export-boinc
+wget -O $EXB "http://git.debian.org/?p=pkg-boinc/scripts.git;a=blob_plain;f=export-boinc;hb=HEAD" --quiet; \
+chmod +x $EXB
+$EXB -r $UPSTREAM_TAG -t ..
+rm -f $EXB $UPSTREAM_TAG_LOCATION
diff --git a/debian/rules b/debian/rules
index 4e8715b..1ff14d4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -429,36 +429,3 @@ override_dh_compress:
 
 override_dh_installexamples:
 	dh_installexamples -X.gz -Xjpeglib 
-
-origDir ?= .
-EXB     ?=/tmp/index.html
-
-get-orig-source:
-	diskfree=`df -k . | awk '{print $$4}' | tail -n +2` ; \
-	if [ -z "$$diskfree" -o "$$diskfree" -lt $$((250*1024)) ]; then \
- 	  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'`; \
-	#
-	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.4/" --quiet;
-	LATEST_VERSION=$(shell grep -e '[0-9]\.[0-9]\.[0-9]*' $(EXB) -o |sort -n |tail -n 1) \
-	$(shell echo $(LATEST_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 $(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
-
diff --git a/debian/watch b/debian/watch
index ffb59c4..cffb855 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,4 @@
 version=3
 opts=dversionmangle=s/\+dfsg$// \
-http://boinc.berkeley.edu/git/boinc-v2.git/refs/tags/client_release/(\d).(\d)/(\d.*)
+http://boinc.berkeley.edu/git/boinc-v2.git/refs/tags/client_release/(\d).(\d)/(\d.*) \
+debian /bin/sh debian/get-orig-source.sh

-- 
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