diff options
author | Étienne Mollier <emollier@debian.org> | 2022-06-02 22:30:54 +0200 |
---|---|---|
committer | Étienne Mollier <emollier@debian.org> | 2022-06-02 22:30:54 +0200 |
commit | 51ea9bd13e574504df8e0541b7823b8a909d5be2 (patch) | |
tree | 6b01b385b2cc6eaca776f60ffe8bc45943fe7580 | |
parent | 79c238aff30b3ef4d48c54f7b50141a9ed46c5a2 (diff) |
d/rules: dynamically adjust version number of directory in cleanup command.
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 194bd4a..ec67574 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +VERS = $(shell sed -n '1s/.*(\([0-9.]\+\)-.*).*/\1/p' debian/changelog) + %: dh $@ --with python3 --buildsystem=pybuild @@ -11,5 +13,5 @@ override_dh_auto_clean: rm -rf Kaptive.egg-info override_dh_missing: - find debian/tmp -type d -name Kaptive-0.7.3.egg-info | xargs rm -rf + find debian/tmp -type d -name Kaptive-$(VERS).egg-info | xargs rm -rf dh_missing |