From: Maik Fischer Date: Sat, 12 Nov 2011 00:51:18 +0000 (+0100) Subject: testsuite: Makefile.PL: do not rename Makefile while running make clean X-Git-Tag: 4.2~235 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f2b1c3a66a3f3e5ad051c5f956e7cddf8432ee3;p=i3%2Fi3 testsuite: Makefile.PL: do not rename Makefile while running make clean --- diff --git a/testcases/Makefile.PL b/testcases/Makefile.PL index 11385f76..fd7b5e0d 100755 --- a/testcases/Makefile.PL +++ b/testcases/Makefile.PL @@ -15,11 +15,19 @@ WriteMakefile( 'EV' => 0, 'Inline' => 0, }, - # don't install any files from this directory - PM => {}, + PM => {}, # do not install any files from this directory clean => { - FILES => 'testsuite-* latest' + FILES => 'testsuite-* latest i3-cfg-for-*', } ); -# and don't run the tests while installing -sub MY::test { } + +package MY; +sub test { } # do not run the tests while installing + +# do not rename the Makefile +sub clean { + my $section = shift->SUPER::clean(@_); + $section =~ s/^\t\Q$_\E\n$//m for + '- $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)'; + $section; +}