[Pkg-voip-commits] [dahdi-tools] 280/285: Save/restore files modified by autoreconf
tzafrir at debian.org
tzafrir at debian.org
Thu Jul 7 19:19:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository dahdi-tools.
commit fe918dcc3ebce2554aa9128a536056d77aaafbd5
Author: Tzafrir Cohen <tzafrir at debian.org>
Date: Sun Jul 3 18:32:21 2016 +0200
Save/restore files modified by autoreconf
Hopefully this is needed and really works.
---
debian/.gitignore | 1 +
debian/control | 1 +
debian/rules | 21 +++++++++++++++++++++
debian/savedfiles.lst | 27 +++++++++++++++++++++++++++
4 files changed, 50 insertions(+)
diff --git a/debian/.gitignore b/debian/.gitignore
index 19918a3..97a2158 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -8,4 +8,5 @@ dahdi/
files
libtonezone-dev/
libtonezone2.0/
+savedfiles.cpio
tmp/
diff --git a/debian/control b/debian/control
index 154d584..e2c6ed1 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Uploaders: Tzafrir Cohen <tzafrir at debian.org>, Mark Purcell <msp at debian.org>
Build-Depends: debhelper (>= 9),
autoconf,
automake,
+ cpio,
dh-autoreconf,
pkg-config,
dahdi-source (>= 1:2.7), libnewt-dev, bzip2, libusb-dev, asciidoc, groff, man-db
diff --git a/debian/rules b/debian/rules
index 40f3691..566c982 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,9 +21,30 @@ UPFILENAME := $(PACKAGE_SRC)_$(UPVERSION).orig.tar.gz
FILENAME := $(PACKAGE_SRC)_$(DEB_BASE_VERSION).orig.tar.gz
URL := http://downloads.asterisk.org/pub/telephony/$(PACKAGE_SRC)/releases/$(PACKAGE_SRC)-$(UPVERSION).tar.gz
+CHANGED_FILES_LIST = debian/savedfiles.lst
+CHANGED_FILES_ARCHIVE = debian/savedfiles.cpio
+
%:
dh $@ --with autoreconf
+override_dh_autoreconf:
+ if [ ! -f "$(CHANGED_FILES_ARCHIVE)" -a -f Makefile.in ]; then \
+ cpio -o < $(CHANGED_FILES_LIST) > $(CHANGED_FILES_ARCHIVE); \
+ fi
+ dh_autoreconf
+
+override_dh_autoreconf_clean:
+ dh_autoreconf_clean
+ if [ -f "$(CHANGED_FILES_ARCHIVE)" ]; then \
+ cpio -idu < $(CHANGED_FILES_ARCHIVE) && \
+ rm -f $(CHANGED_FILES_ARCHIVE); \
+ fi
+
+# An ugly workaround because those files are included in the tarball
+override_dh_clean:
+ dh_clean -X autom4te.cache
+
+
override_dh_auto_build:
$(MAKE) all docs
# FIXME: xpp/README.Astribank.html
diff --git a/debian/savedfiles.lst b/debian/savedfiles.lst
new file mode 100644
index 0000000..712a520
--- /dev/null
+++ b/debian/savedfiles.lst
@@ -0,0 +1,27 @@
+Makefile.in
+aclocal.m4
+autoconfig.h.in
+autom4te.cache/output.0
+autom4te.cache/output.1
+autom4te.cache/output.2
+autom4te.cache/requests
+autom4te.cache/traces.0
+autom4te.cache/traces.1
+autom4te.cache/traces.2
+auxdir/config.guess
+auxdir/config.sub
+auxdir/install-sh
+auxdir/ltmain.sh
+configure
+doc/Makefile.in
+hotplug/Makefile.in
+m4/libtool.m4
+m4/ltoptions.m4
+m4/ltsugar.m4
+m4/ltversion.m4
+m4/lt~obsolete.m4
+ppp/Makefile.in
+xpp/Makefile.in
+xpp/oct612x/Makefile.in
+xpp/perl_modules/Makefile.in
+xpp/xtalk/Makefile.in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git
More information about the Pkg-voip-commits
mailing list