[sagemath] 01/01: Clean debian/build when cleaning
Ximin Luo
infinity0 at debian.org
Wed Nov 16 13:14:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit 614a025ce777a6e5f7c19db5e77f0bdf3ead0852
Author: Ximin Luo <infinity0 at debian.org>
Date: Wed Nov 16 14:14:05 2016 +0100
Clean debian/build when cleaning
---
debian/rules | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/debian/rules b/debian/rules
index a1e9df8..d9f1969 100755
--- a/debian/rules
+++ b/debian/rules
@@ -108,6 +108,17 @@ ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
else
dh_clean
endif
+ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+# Don't delete my precious docs debhelper! They took a whole fucking hour to build!
+ if [ -d debian/build/usr/share/doc ]; then \
+ mkdir -p debian/build-tmp/usr/share; \
+ mv -t debian/build-tmp/usr/share/ debian/build/usr/share/doc; \
+ fi
+ rm -rf debian/build/*
+ mv -t debian/build/usr/share/ debian/build-tmp/usr/share/doc
+else
+ rm -rf debian/build/*
+endif
get-orig-source:
cd sage && git archive --prefix=sagemath_$(DEB_VERSION_UPSTREAM)/sage/ \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list