[Pkg-symfony-commits] [SCM] Doctrine repository under the pkg-symfony Debian group branch, master, updated. upstream/1.2.2-11-g266b554

Federico Gimenez Nieto fgimenez at coit.es
Tue May 4 17:12:57 UTC 2010


The following commit has been merged in the master branch:
commit 266b55429f7e2e9a748dbc3cc795962aa4415d21
Author: Federico Gimenez Nieto <fgimenez at coit.es>
Date:   Tue May 4 19:10:11 2010 +0200

    Placed the permission related command in the override_dh_fixperms target; added code to run tests, aborting if any of them don't pass

diff --git a/debian/rules b/debian/rules
index 00aadf0..6afa932 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,14 +2,27 @@
 
 PACKAGE_VER :=  Doctrine-1.2.2
 
+test_stamp = debian/test-stamp
+
 %:
 	dh $@
 
 override_dh_installchangelogs:
 	dh_installchangelogs $(PACKAGE_VER)/CHANGELOG
 
-override_dh_install:
-	dh_install
+override_dh_fixperms:
+	dh_fixperms
 
 	#fix mode for executable files  
 	find debian/doctrine -perm -a=x -type f | xargs chmod -c a-x
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+build binary:: $(test_stamp)
+$(test_stamp):
+	cd $(PACKAGE_VER) && php ./tests/run.php
+	touch $@
+
+override_dh_clean:
+	dh_clean
+	$(RM) $(test_stamp)
+endif
\ No newline at end of file

-- 
Doctrine repository under the pkg-symfony Debian group



More information about the Pkg-symfony-commits mailing list