Save/restore files modified by autoreconf

Hopefully this is needed and really works.
This commit is contained in:
Tzafrir Cohen 2016-07-03 18:32:21 +02:00
parent c371dfa38e
commit fe918dcc3e
4 changed files with 50 additions and 0 deletions

1
debian/.gitignore vendored
View File

@ -8,4 +8,5 @@ dahdi/
files
libtonezone-dev/
libtonezone2.0/
savedfiles.cpio
tmp/

1
debian/control vendored
View File

@ -7,6 +7,7 @@ Uploaders: Tzafrir Cohen <tzafrir@debian.org>, Mark Purcell <msp@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

21
debian/rules vendored
View File

@ -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

27
debian/savedfiles.lst vendored Normal file
View File

@ -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