[med-svn] [Git][med-team/dicom3tools][master] Fix clean target

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Feb 7 13:53:19 GMT 2024



Andreas Tille pushed to branch master at Debian Med / dicom3tools


Commits:
cd6a2cf2 by Andreas Tille at 2024-02-07T14:52:36+01:00
Fix clean target

- - - - -


3 changed files:

- debian/changelog
- + debian/clean
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,13 @@
 dicom3tools (1.00~20220618093127-3) UNRELEASED; urgency=medium
 
+  [ Mohammed Bilal ]
   * Add hardening buildflags
   * skip line that causes blhc failure
 
+  [ Andreas Tille ]
+  * Fix clean target
+    Closes: #1044253
+
  -- Mohammed Bilal <mdbilal at disroot.org>  Mon, 04 Jul 2022 07:29:06 +0000
 
 dicom3tools (1.00~20220618093127-2) unstable; urgency=medium


=====================================
debian/clean
=====================================
@@ -0,0 +1,2 @@
+config/generic.cf
+libsrc/src/generic/platform.cc


=====================================
debian/rules
=====================================
@@ -28,7 +28,16 @@ endif
 %:
 	dh $@
 
+override_dh_clean:
+	dh_clean
+	find . -mindepth 2 -name Makefile -delete
+	# Use the name Makefile.backup since Makefile.bak is removed somehow magickally
+	if [ -f Makefile.backup ] ; then mv Makefile.backup Makefile ; fi
+	if [ -d libsrc/support.bak ] ; then rm -rf libsrc/support; mv libsrc/support.bak libsrc/support ; fi
+
 override_dh_auto_configure:
+	cp -a Makefile Makefile.backup
+	cp -a libsrc/support libsrc/support.bak
 	# http://www.gnu.org/manual/gawk/html_node/Special-FD.html
 	find . -name \*.awk -exec sed -i -e 's@/dev/tty@/dev/stderr at g' {} \;
 	sh Configure



View it on GitLab: https://salsa.debian.org/med-team/dicom3tools/-/commit/cd6a2cf2bfcb972891eb0a8eea1b7fb969cb06bd

-- 
View it on GitLab: https://salsa.debian.org/med-team/dicom3tools/-/commit/cd6a2cf2bfcb972891eb0a8eea1b7fb969cb06bd
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240207/015bcfc7/attachment-0001.htm>


More information about the debian-med-commit mailing list