Commit bb85bec7 authored by Emmanuel Bouthenot's avatar Emmanuel Bouthenot

Prevent dh_autoreconf to break upstream sources

parent cd798736
......@@ -6,6 +6,18 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -fPIE -pie
DEB_DH_INSTALL_DIR=$(CURDIR)/debian/tmp
UPSTREAMSTUFF = INSTALL configure aclocal.m4 install-sh ltmain.sh missing
UPSTREAMSTUFF += $(shell find -iname '*.in' -o -iname '*.in.upstream' | sed 's/\.upstream//')
override_dh_autoreconf:
# Backup upstream stuff
for file in $(UPSTREAMSTUFF); do \
if [ -e $$file ] && [ ! -e $$file.upstream ] ; then \
cp $$file $$file.upstream ; \
fi \
done
dh_autoreconf
libpuzzle-build-stamp:
dh_auto_build
touch $@
......@@ -23,5 +35,15 @@ override_dh_auto_clean:
rm -f debian/puzzle-diff.1 debian/libpuzzle.3 debian/puzzle_set.3
find $(CURDIR) -name Makefile | xargs rm -f
override_dh_clean:
dh_clean
# Restore upstream stuff
for file in $(UPSTREAMSTUFF); do \
if [ -e $$file.upstream ] ; then \
rm -f $$file; \
mv $$file.upstream $$file; \
fi \
done
%:
dh $@ --with autoreconf
dh $@
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