File: clean-files.patch

package info (click to toggle)
mbuffer 20250809%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,096 kB
  • sloc: ansic: 4,310; sh: 3,445; makefile: 163
file content (52 lines) | stat: -rw-r--r-- 1,695 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Description: Clean up more autogenerated files
 Make sure the mbuffer.1 manual page is recreated by also removing
 the autogenerated version.h file so that the mkversion.sh tool
 (which also generates the manual page) is also run the second time
 around.
 Remove some more test output files.
Bug-Debian: https://bugs.debian.org/1048349
Bug-Debian: https://bugs.debian.org/1049628
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2023-08-16

--- a/Makefile.in
+++ b/Makefile.in
@@ -79,7 +79,8 @@
 
 distclean: clean
 	-$(RM) $(TARGET) config.h config.log \
-	config.status Makefile mbuffer.1 core
+	config.status Makefile mbuffer.1 version.h core
+	$(RM) -rf build
 
 $(DESTDIR)$(etcdir)/mbuffer.rc:
 	-$(INSTALL) -d -m 755 $(DESTDIR)$(etcdir)
@@ -99,7 +100,8 @@
 testcleanup:
 	rm -f test0 test1 test2 test3 test4 test5 \
 		test0.md5 test1.md5 test2.md5 test3.md5 test4.md5 test5.md5 \
-		test.tar test.md5 mbuffer.md5 idev.so tapetest.so have-af
+		test.tar test.md5 mbuffer.md5 idev.so tapetest.so have-af \
+		mbuffer2 output-test*
 
 test.tar:
 	$(TAR) cf test.tar --ignore-failed-read $(TESTTREE)
@@ -172,7 +174,7 @@
 	rm -f output-$@.tar.*
 	cat mbuffer | LD_PRELOAD=./tapetest.so ./mbuffer -s10k -f -o output-$@ -H -A "echo '[$@] Replacing tape'"
 	cat output-$@* | openssl md5 > $@.md5
-	rm -f output-$@
+	rm -f output-$@ output-$@.*
 	sync
 	diff $@.md5 mbuffer.md5 > $@
 
@@ -181,7 +183,7 @@
 	rm -f output-$@.tar.*
 	cat mbuffer | LD_PRELOAD=./tapetest.so ./mbuffer -s10k -f -o output-$@ -H -A "echo '[$@] Replacing tape'" --tapeaware
 	cat output-$@* | openssl md5 > $@.md5
-	rm -f output-$@
+	rm -f output-$@ output-$@.*
 	sync
 	diff $@.md5 mbuffer.md5 > $@