[DRE-commits] [ruby-fcgi] 01/01: Move dummy Makefile away during build

Antonio Terceiro terceiro at moszumanska.debian.org
Mon Dec 30 20:13:14 UTC 2013


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-fcgi.

commit 49ab93af0561e31b4933ced511cf02d8b29e0eb0
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Dec 30 11:58:15 2013 -0300

    Move dummy Makefile away during build
    
    and restore it on clean so that `git buildpackage` always finds a clean
    build environment.
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index f06426d..ea334e6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,12 @@
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
+override_dh_auto_install:
+	if grep '# Use ruby extconf.rb to generate makefile' ext/fcgi/Makefile; then mv ext/fcgi/Makefile ext/fcgi/Makefile.dummy; fi
+	dh_auto_install -O--buildsystem=ruby
+
 override_dh_auto_clean:
-	# remove included dummy makefile
-	$(shell test -e ext/fcgi/Makefile && grep "# Use ruby extconf.rb to generate makefile" ext/fcgi/Makefile && rm -f  ext/fcgi/Makefile)
+	# restore included dummy makefile
+	if grep '# Use ruby extconf.rb to generate makefile' ext/fcgi/Makefile; then mv ext/fcgi/Makefile ext/fcgi/Makefile.dummy; fi
 	dh_auto_clean -O--buildsystem=ruby
+	if test -f ext/fcgi/Makefile.dummy; then mv ext/fcgi/Makefile.dummy ext/fcgi/Makefile; fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fcgi.git



More information about the Pkg-ruby-extras-commits mailing list