[SCM] Debian packaging for sketch 3D line drawing software branch, master, updated. debian/0.2.183-1-16-g5ad45c6

David Bremner bremner at unb.ca
Sun Dec 19 03:37:49 UTC 2010


The following commit has been merged in the master branch:
commit 5ad45c634f66e98b2f0f85705be78198b850f945
Author: David Bremner <bremner at unb.ca>
Date:   Sat Dec 18 23:24:43 2010 -0400

    add check-patches rule and depend on it to configure.  This is not
    completely satifactory, since it causes the build to fail, when what
    we really want is making the source package fail. I hesitate to make
    clean depend on this target, since having the clean target break is
    pretty annoying.

diff --git a/debian/rules b/debian/rules
index 88ff6f2..d949eb4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ endif
 %: 
 	dh $@
 
-override_dh_auto_configure:
+override_dh_auto_configure: check-patches
 	perl makever.pl
 
 override_dh_auto_build:
@@ -33,9 +33,17 @@ override_dh_auto_clean:
 
 PATCH_EXPORT_SCRIPT=/usr/share/gitpkg/hooks/quilt-patches-deb-export-hook
 
+.PHONY: export-patches check-patches
+
 export-patches: 
 	[ ! -r debian/patches ] || \
 	case  "$$(head -1 debian/patches/series)" in \
 	\#*$(notdir $(PATCH_EXPORT_SCRIPT))) ;; *) exit 1;; esac
 	rm -rf debian/patches
-	sh $(PATCH_EXPORT_SCRIPT)
\ No newline at end of file
+	sh $(PATCH_EXPORT_SCRIPT)
+
+check-patches:
+	@[ ! -r debian/source/git-patches ] || \
+	case  "$$(head -1 debian/patches/series)" in \
+	\#*$(notdir $(PATCH_EXPORT_SCRIPT))) ;; \
+	*) echo Missing patches: see debian/README.source; exit 1;; esac

-- 
Debian packaging for sketch 3D line drawing software



More information about the debian-science-commits mailing list