From b79f540f9dec91ba6cfe082fded2a378d73c83ba Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 2 Aug 2013 00:16:44 +0900 Subject: Backup and restore entity.h on build time --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian') diff --git a/debian/rules b/debian/rules index d4fb3ba..f2d23b2 100755 --- a/debian/rules +++ b/debian/rules @@ -31,6 +31,7 @@ build-indep: build-arch: build-stamp build-stamp: dh_testdir + test ! -f entity.h || test -f entity.h.debian-bak || cp entity.h entity.h.debian-bak cd $(builddir) && CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure $(confargs) cd $(builddir) && LC_ALL=C $(MAKE) OPTS="-Wall -g -DDEBIAN" cd $(builddir)/po && LC_ALL=C $(MAKE) update-gmo @@ -40,6 +41,7 @@ clean: dh_testdir dh_testroot if test -f $(builddir)/Makefile; then cd $(builddir) && $(MAKE) distclean; fi + test ! -f entity.h.debian-bak || mv -f entity.h.debian-bak entity.h rm -f $(builddir)/po/*.gmo rm -f $(builddir)/po/stamp-po rm -f extract-stamp patch-stamp configure-stamp build-stamp install-stamp -- cgit v1.2.3