Commit 3cbd54ac authored by Axel Beckert's avatar Axel Beckert

Use tar archives instead of subdirectories of debian for backup copies

parent 2ba8ba1a
......@@ -35,14 +35,10 @@ GETTEXT_PO_FILES= Makefile.in.in Rules-quot boldquot.sed \
configure-stamp: $(QUILT_STAMPFN)
# Move everything we don't need away
mkdir -pv debian/not-needed-for-build/src/
# Not needed, B-D on getext, likely should be removed
mv -vi intl ABOUT-NLS Makefile.in aclocal.m4 config.guess config.sub \
tar cvf debian/not-needed-for-build.tar \
intl ABOUT-NLS Makefile.in aclocal.m4 config.guess config.sub \
config.h.in configure depcomp install-sh ltmain.sh missing \
mkinstalldirs \
debian/not-needed-for-build/
# Why this?
mv -vi src/ltdl.* debian/not-needed-for-build/src/
mkinstalldirs src/ltdl.*
# In the future, an external PCRE should be used if possible
#mv -vi pcre debian/not-needed-for-build/
......@@ -69,23 +65,30 @@ clean:
dh_testroot
# Generated stuff
rm -rf autom4te.cache m4
# Generated stuff, should be replaced by dh-reconf or so
ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 dh_autoreconf_clean
-tar cvf debian/needed-after-clean.tar ABOUT-NLS po/Makefile.in.in
# PO stuff
cd po && rm -f ${GETTEXT_PO_FILES} stamp-po POTFILES Makefile.in
rm -f ${GETTEXT_TOP_FILES}
# Generated stuff, should be replaced by dh-reconf or so
dh_autoreconf_clean
[ ! -f Makefile ] || $(MAKE) clean
#[ ! -f Makefile ] || $(MAKE) distclean
# Restore as much as possible for easy VCS usage
[ ! -d debian/not-needed-for-build/src/ ] || mv -vi debian/not-needed-for-build/src/* src/
[ ! -d debian/not-needed-for-build/src/ ] || rmdir -v debian/not-needed-for-build/src
[ ! -d debian/not-needed-for-build/ ] || mv -vi debian/not-needed-for-build/* ./
[ ! -d debian/not-needed-for-build/ ] || rmdir -v debian/not-needed-for-build/
[ ! -f debian/not-needed-for-build.tar ] || tar xvf debian/not-needed-for-build.tar
#[ ! -f Makefile ] || $(MAKE) clean
[ ! -f debian/needed-after-clean.tar ] || tar xvf debian/needed-after-clean.tar
#[ ! -f Makefile ] || $(MAKE) distclean
#rm -f \
# aclocal.m4 config.guess config.h.in config.sub configure depcomp \
# install-sh ltmain.sh missing mkinstalldirs
rm -vf config.h config.log config.status libtool stamp-h1
rm -vf config.h config.log config.status libtool stamp-h1 debian/*.tar \
doc/mp4h.html doc/mp4h.pod modules/intl/gettext.mp4hp src/mp4h \
pcre/chartables.c pcre/dftables
#find . -name Makefile.in | xargs -r rm
find . -name .deps -o -name Makefile | xargs -r rm -rv
find . -name .deps -o -name .libs | xargs -r rm -rv
find . -not -path './debian/*' \
-name '*.[ao13]' \
-o -name '*.l[ao]' \
-o -name Makefile \
| xargs -r rm -v
dh_clean build-stamp configure-stamp
$(MAKE) -f debian/rules unpatch
......
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