r804 - /trunk/boinc-app-seti/debian/rules

fst at users.alioth.debian.org fst at users.alioth.debian.org
Tue Jan 1 13:20:28 UTC 2008


Author: fst
Date: Tue Jan  1 13:20:27 2008
New Revision: 804

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=804
Log:
cosmetic changes only

Modified:
    trunk/boinc-app-seti/debian/rules

Modified: trunk/boinc-app-seti/debian/rules
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc-app-seti/debian/rules?rev=804&op=diff
==============================================================================
--- trunk/boinc-app-seti/debian/rules (original)
+++ trunk/boinc-app-seti/debian/rules Tue Jan  1 13:20:27 2008
@@ -31,7 +31,7 @@
 # because it breaks some handwritten rules in client/Makefile.am which
 # require that $(DEPDIR) exists.
 DEB_CONFIGURE_NORMAL_ARGS := \
-  $(subst --disable-dependency-tracking,,$(DEB_CONFIGURE_NORMAL_ARGS))
+  $(DEB_CONFIGURE_NORMAL_ARGS:--disable-dependency-tracking=)
 
 DEB_CONFIGURE_EXTRA_FLAGS := \
   --enable-client \
@@ -48,7 +48,7 @@
 DEB_MAKE_CLEAN_TARGET = clean
 
 UPSTREAM_VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | cut -f 1 -d '+')
-APP_INFO_VERSION = $(shell echo $(UPSTREAM_VERSION) | sed -e 's/\.//g')
+APP_INFO_VERSION = $(subst .,,$(UPSTREAM_VERSION))
 
 post-patches::
 	aclocal-1.9 -I m4 && autoheader && automake-1.9 && autoconf
@@ -63,24 +63,24 @@
 	dh_clean client/setiathome-$(UPSTREAM_VERSION).*
 	dh_clean debian/extra/app_info.xml
 
-origDir="."
+origDir = .
 
 get-orig-source:
-	if [ ! -d "$(origDir)" ]; then echo "Destination directory '$(origDir)' is not existing."; exit; fi
-	curl=`which curl`; if [ -z "$$curl" ]; then echo curl needs to be installed; exit -1; fi; \
-	(\
+	if [ ! -d "$(origDir)" ]; then \
+	  echo "Destination directory '$(origDir)' does not exist."; \
+	  exit; \
+	fi
 	cd $(origDir); \
-	dls=/tmp/download-seti;\
-	svn export svn://svn.debian.org/pkg-boinc/scripts/download-seti $$dls; \
-	ddd=`date +%Y-%m-%d | tr -d '\n'`; \
-	echo "Attempting retrieval of today's nightly release version $$ddd"; \
-	sh $$dls $$ddd && echo "Download was successful to directory '$$destdir'." || ( \
-		echo "Release dated $$ddd could not be downloaded"; \
-		ddd=`date -d yesterday +%Y-%m-%d | tr -d '\n'`; \
-         	echo "Now attempting to rerieve yesterday's release from $$ddd"; \
-		sh $$dls $$ddd; \
-		) ; \
-	rm -f $$dls ; \
-	)
+	DLS=/tmp/download-seti; \
+	TODAY=`date +%Y-%m-%d | tr -d '\n'`; \
+	svn export svn://svn.debian.org/pkg-boinc/scripts/download-seti $$DLS; \
+	echo "Attempting to retrieve today's ($$TODAY) tarball."; \
+	$$DLS $$TODAY || ( \
+	  YESTERDAY=`date -d yesterday +%Y-%m-%d | tr -d '\n'`; \
+	  echo "Today's ($$TODAY) tarball could not be downloaded."; \
+	  echo "Now attempting to retrieve yesterday's ($$YESTERDAY) tarball."; \
+	  $$DLS $$YESTERDAY; \
+	); \
+	rm -f $$DLS
 
 DEB_PHONY_RULES += get-orig-source




More information about the pkg-boinc-commits mailing list