r754 - in /trunk/boinc-app-seti/debian: changelog rules
smoe-guest at users.alioth.debian.org
smoe-guest at users.alioth.debian.org
Wed Nov 21 10:55:32 UTC 2007
Author: smoe-guest
Date: Wed Nov 21 10:55:31 2007
New Revision: 754
URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=754
Log:
Download now attempts nigly of today first and yesterday's when the first attempt failed.
Inspection of local folders to decide for target directory of download. One can now execute "./debian/rules get-orig-source && svn-buildpackage" in a row ... if only the changelog was adapted for the latest release.
The download of yesterday's version is ultimately required, sadly, i.e., at 11:00 CET the nightly of today was not yet existing.
Modified:
trunk/boinc-app-seti/debian/changelog
trunk/boinc-app-seti/debian/rules
Modified: trunk/boinc-app-seti/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc-app-seti/debian/changelog?rev=754&op=diff
==============================================================================
--- trunk/boinc-app-seti/debian/changelog (original)
+++ trunk/boinc-app-seti/debian/changelog Wed Nov 21 10:55:31 2007
@@ -1,4 +1,4 @@
-boinc-app-seti (5.28+cvs20071116-1) unreleased; urgency=low
+boinc-app-seti (5.28+cvs20071120-1) unreleased; urgency=low
[ Steffen Moeller ]
* boinc-app-seti: wrote debian/rules get-orig-source target
Modified: trunk/boinc-app-seti/debian/rules
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc-app-seti/debian/rules?rev=754&op=diff
==============================================================================
--- trunk/boinc-app-seti/debian/rules (original)
+++ trunk/boinc-app-seti/debian/rules Wed Nov 21 10:55:31 2007
@@ -58,12 +58,37 @@
dh_clean debian/extra/app_info.xml
get-orig-source:
- curl=`which curl`; if [ -z "$$curl" ]; then echo curl needs to be installed; exit -1; fi
- (url="http://svn.debian.org/wsvn/pkg-boinc/scripts/download-seti?op=file&rev=0&sc=0" ; \
- wget -O - -Nc "$$url" | sed -e '1,/PRE/d' -e '/PRE/,$$d' -e 's/"/"/g' -e 's/ / /g' > download-seti; \
+ curl=`which curl`; if [ -z "$$curl" ]; then echo curl needs to be installed; exit -1; fi; \
+ wget=`which wget`; if [ -z "$$wget" ]; then echo wget needs to be installed; exit -1; fi; \
+ destdir=. ; \
+ if [ -r .svn/debLayout ]; then \
+ t=`grep origDir .svn/debLayout | cut -f2 -d=`; \
+ if [ -n "$$t" ]; then \
+ destdir=$$t; \
+ echo "Destination directory is $$destdir, as found set in .svn/debLayout"; \
+ elif [ -d "../tarballs" ]; then \
+ destdir="../tarballs"; \
+ echo "Destination directory is $$destdir, as presumed from existance of file .svn/debLayout"; \
+ fi; \
+ elif [ -d "../tarballs" ]; then \
+ destdir="../tarballs"; \
+ echo "Destination directory is $$destdir, as presumed from existance of file .svn/debLayout"; \
+ fi; \
+ (\
+ cd $$destdir; \
+ dls=/tmp/download-seti;\
+ url="http://svn.debian.org/wsvn/pkg-boinc/scripts/download-seti?op=file&rev=0&sc=0" ; \
+ wget "$$url" -O - | sed -e '1,/PRE/d' -e '/PRE/,$$d' -e 's/"/"/g' -e 's/ / /g' > $$dls || exit -1; \
ddd=`date -d yesterday +%Y-%m-%d | tr -d '\n'`; \
- echo "release date=$$ddd"; \
- sh download-seti $$ddd ; \
- rm download-seti)
+ echo "attempting retrieval of nightly release from $$ddd"; \
+ sh $$dls $$ddd && echo "Download was successful to directory '$$destdir'." || ( \
+ echo "release dated $$ddd could not be downloaded"; \
+ bc=`which bc`; if [ -z "$$bc" ]; then echo "bc needs to be installed for the retrieval of yesterday's release."; exit -1; fi; \
+ dd=`date +%d` ; d=`echo $$dd-1|bc`; ddd=`date +%Y-%m|tr -d '\n'`-$$d; \
+ echo "Now attemptin to rerieve nightly release from $$ddd"; \
+ sh $$dls $$ddd; \
+ ) ; \
+ rm -f $$dls ; \
+ )
.PHONY: get-orig-source
More information about the pkg-boinc-commits
mailing list