r751 - in /trunk/boinc-app-seti/debian: README.Debian-source rules

fst-guest at users.alioth.debian.org fst-guest at users.alioth.debian.org
Tue Nov 20 14:40:57 UTC 2007


Author: fst-guest
Date: Tue Nov 20 14:40:57 2007
New Revision: 751

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=751
Log:
Modified the get-orig-source target so that it can also be used on the first
day of a month by using "date -d yesterday". This change also removes the
requirement on bc.

Modified:
    trunk/boinc-app-seti/debian/README.Debian-source
    trunk/boinc-app-seti/debian/rules

Modified: trunk/boinc-app-seti/debian/README.Debian-source
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc-app-seti/debian/README.Debian-source?rev=751&op=diff
==============================================================================
--- trunk/boinc-app-seti/debian/README.Debian-source (original)
+++ trunk/boinc-app-seti/debian/README.Debian-source Tue Nov 20 14:40:57 2007
@@ -20,5 +20,4 @@
 For exmaple, to download the SETI at home tarball from the 16 May 2006 the
 'download-seti' script is invoked as `../../scripts/download-seti 2006-05-16`.
 When the source of this package is available, the retrieval and the execution
-of that script is performed by `debian/rules get-orig-source`. It does
-not work on the first of a month, though.
+of that script is performed by `debian/rules get-orig-source`.

Modified: trunk/boinc-app-seti/debian/rules
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc-app-seti/debian/rules?rev=751&op=diff
==============================================================================
--- trunk/boinc-app-seti/debian/rules (original)
+++ trunk/boinc-app-seti/debian/rules Tue Nov 20 14:40:57 2007
@@ -57,13 +57,13 @@
 	dh_clean client/setiathome-$(UPSTREAM_VERSION).*
 	dh_clean debian/extra/app_info.xml
 
-.PHONY: get-orig-source
 get-orig-source:
 	curl=`which curl`; if [ -z "$$curl" ]; then echo curl needs to be installed; exit -1; fi
-	bc=`which bc`; if [ -z "$$bc" ]; then echo bc needs to be installed; exit -1; fi
 	(cd .. ; \
 	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; \
-	dd=`date +%d` ; d=`echo $$dd-1|bc`; ddd=`date +%Y-%m|tr -d '\n'`-$$d; \
+	ddd=`date -d yesterday +%Y-%m-%d | tr -d '\n'`; \
 	echo "release date=$$ddd"; \
 	sh download-seti $$ddd)
+
+.PHONY: get-orig-source




More information about the pkg-boinc-commits mailing list