gdb/testsuite: Make clean mostlyclean should not delete *.py.
authorJoel Brobecker <brobecker@adacore.com>
Tue, 13 Jan 2015 14:59:32 +0000 (18:59 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 13 Jan 2015 15:24:54 +0000 (19:24 +0400)
A sanity-check in my release scripts caught something: After having
created the tarballs, I verify that no checked-in file disappeared
in the process, and lo and behod, it found that the following file
got wiped:

    - gdb/testsuite/dg-extract-results.py:

And it's not part of the tarball either.

I don't understand while we delete all *.py files in gdb/testsuite,
since I don't see a rule that expected to create one. A run of the
testsuite also doesn't seem to be creating .py files there.
I traced this to the following commit, which unfortunately provided
no explanation. Perhaps we used to run some tests in the gdb/testsuite
directory and caused files to be left behind there. Perhaps we still
do today?

In the meantime, Executive Decision: In order to allow me to create
tarballs without losing files, I removed it. It's easy to put something
back if we find out why it might still be needed.

gdb/testsuite/ChangeLog:

        * Makefile.in (clean mostlyclean): Do not delete *.py.

Tested on x86_64-linux by running the src-release.sh script again,
and this time, dg-extract-results.py no longer gets wiped.

gdb/testsuite/ChangeLog
gdb/testsuite/Makefile.in

index 868339c1a1fa2ec3f949ef04c1bfe92831c0f1a5..4a903bccb1b68d111713e305468e63db798772b5 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * Makefile.in (clean mostlyclean): Do not delete *.py.
+
 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.python/py-lookup-type.exp: New file.
index b319409f5edb8f337b23268244eb39471ba98c45..53cb7547d4c26dd9e02970d5f381f4ceec0ff8c1 100644 (file)
@@ -242,7 +242,7 @@ force:;
 
 clean mostlyclean:
        -rm -f *~ core *.o a.out xgdb *.x *.grt bigcore.corefile .gdb_history
-       -rm -f core.* *.tf *.cl *.py tracecommandsscript copy1.txt zzz-gdbscript
+       -rm -f core.* *.tf *.cl tracecommandsscript copy1.txt zzz-gdbscript
        -rm -f *.dwo *.dwp
        -rm -rf outputs temp cache
        -rm -f read1.so expect-read1