Save/restore files modified by autoreconf
Hopefully this is needed and really works.
This commit is contained in:
parent
c371dfa38e
commit
fe918dcc3e
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue