From 8d0fcce06a4e3892c1a122445af13be7271d10be Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Mon, 16 Jul 2007 08:24:39 +0000 Subject: Backup 'var' before making deb and restore after. Reason: In because in the process of making the debian package, 'var' gets overwritten with the local debian build directory as DESTDIR. This will break future 'make uninstall's, which will try to delete files from there instead of /usr/local (or wherever). git-svn-id: https://pandoc.googlecode.com/svn/trunk@735 788f1e2b-df1e-0410-8736-df70ead52e1b --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 93c2bc130..ea69e785a 100644 --- a/Makefile +++ b/Makefile @@ -348,6 +348,7 @@ deb: debian echo "*** Please install dpkg-dev package. ***"; \ exit 1; \ } + -mv $(BUILDVARS) $(BUILDVARS).old # backup settings if [ -x /usr/bin/debuild ]; then \ debuild -uc -us -i.svn -I.svn -i_darcs -I_darcs --lintian-opts -i; \ else \ @@ -355,6 +356,7 @@ deb: debian echo "*** Using dpkg-buildpackage for package building. ***"; \ dpkg-buildpackage -rfakeroot -uc -us -i.svn -I.svn -i_darcs -I_darcs; \ fi + -mv $(BUILDVARS).old $(BUILDVARS) # restore .PHONY: website web_src:=web -- cgit v1.2.3