Commit fe918dcc authored by Tzafrir Cohen's avatar Tzafrir Cohen

Save/restore files modified by autoreconf

Hopefully this is needed and really works.
parent c371dfa3
......@@ -8,4 +8,5 @@ dahdi/
files
libtonezone-dev/
libtonezone2.0/
savedfiles.cpio
tmp/
......@@ -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,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
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment