diff options
-rw-r--r-- | debian/clean | 2 | ||||
-rwxr-xr-x | debian/rules | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..3149236 --- /dev/null +++ b/debian/clean @@ -0,0 +1,2 @@ +debian/*.1 +*.egg-info/* diff --git a/debian/rules b/debian/rules index d68d172..32edce5 100755 --- a/debian/rules +++ b/debian/rules @@ -7,15 +7,7 @@ export PYBUILD_TEST_ARGS := --ignore=tests/end-to-end --ignore=tests/integration %: dh $@ --buildsystem=pybuild -override_dh_installman: +execute_before_dh_installman: for man in borgmatic generate-borgmatic-config upgrade-borgmatic-config validate-borgmatic-config ; do \ pandoc -s -t man $(CURDIR)/debian/man/$$man.md -o $(CURDIR)/debian/$$man.1 ; \ done - dh_installman - -override_dh_clean: - dh_clean - rm -rf borgmatic.egg-info - for man in borgmatic generate-borgmatic-config upgrade-borgmatic-config validate-borgmatic-config ; do \ - [ ! -f debian/$$man.1 ] || rm debian/$$man.1 ; \ - done |