git.iko.soy/typeable/pandoc
on master help sign in
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

commit8d0fcce06a4e3892c1a122445af13be7271d10be authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 16 Jul 2007, 08:24 (19 years ago) parent0cba4f2
1 file changed+2
Makefile+2
Makefile+2
@@ -348,6 +348,7 @@ deb: debian
348348 echo "*** Please install dpkg-dev package. ***"; \
349349 exit 1; \
350350 }
351+ -mv $(BUILDVARS) $(BUILDVARS).old # backup settings
351352 if [ -x /usr/bin/debuild ]; then \
352353 debuild -uc -us -i.svn -I.svn -i_darcs -I_darcs --lintian-opts -i; \
353354 else \
@@ -355,6 +356,7 @@ deb: debian
355356 echo "*** Using dpkg-buildpackage for package building. ***"; \
356357 dpkg-buildpackage -rfakeroot -uc -us -i.svn -I.svn -i_darcs -I_darcs; \
357358 fi
359+ -mv $(BUILDVARS).old $(BUILDVARS) # restore
358360
359361.PHONY: website
360362web_src:=web