From 8efbe5bd47726d8440f3b9bb01a1f1a6a3f999fb Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 28 Jan 2025 21:54:52 +0100 Subject: [PATCH] examples: Improve autoclean.sh. * gettext-tools/examples/hello-c-gnome3/autoclean.sh: Do also the equivalent of "make maintainer-clean". * gettext-tools/examples/hello-c++-gnome3/autoclean.sh: Likewise. * gettext-tools/examples/hello-c++-kde/autoclean.sh: Likewise. * gettext-tools/examples/hello-csharp/autoclean.sh: Likewise. * gettext-tools/examples/hello-csharp-forms/autoclean.sh: Likewise. * gettext-tools/examples/hello-pascal/autoclean.sh: Likewise. --- gettext-tools/examples/hello-c++-gnome3/autoclean.sh | 2 ++ gettext-tools/examples/hello-c++-kde/autoclean.sh | 2 ++ gettext-tools/examples/hello-c-gnome3/autoclean.sh | 2 ++ gettext-tools/examples/hello-csharp-forms/autoclean.sh | 2 ++ gettext-tools/examples/hello-csharp/autoclean.sh | 2 ++ gettext-tools/examples/hello-pascal/autoclean.sh | 2 ++ 6 files changed, 12 insertions(+) diff --git a/gettext-tools/examples/hello-c++-gnome3/autoclean.sh b/gettext-tools/examples/hello-c++-gnome3/autoclean.sh index cca8992a1..330be19d7 100755 --- a/gettext-tools/examples/hello-c++-gnome3/autoclean.sh +++ b/gettext-tools/examples/hello-c++-gnome3/autoclean.sh @@ -5,6 +5,8 @@ # Script for cleaning all autogenerated files. test ! -f Makefile || make distclean +# Do the equivalent of "make maintainer-clean", even without the Makefile. +rm -f hello-resources.c hello.desktop.in rm -rf autom4te.cache # Files generated by "make" and distributed (see MAINTAINERCLEANFILES). diff --git a/gettext-tools/examples/hello-c++-kde/autoclean.sh b/gettext-tools/examples/hello-c++-kde/autoclean.sh index 99f538a4a..3468274bd 100755 --- a/gettext-tools/examples/hello-c++-kde/autoclean.sh +++ b/gettext-tools/examples/hello-c++-kde/autoclean.sh @@ -5,6 +5,8 @@ # Script for cleaning all autogenerated files. test ! -f Makefile || make distclean +# Do the equivalent of "make maintainer-clean", even without the Makefile. +rm -f subdirs configure.in acinclude.m4 configure.files rm -rf autom4te.cache if test "$1" = fromscratch; then diff --git a/gettext-tools/examples/hello-c-gnome3/autoclean.sh b/gettext-tools/examples/hello-c-gnome3/autoclean.sh index 5a41da459..2f812ed5e 100755 --- a/gettext-tools/examples/hello-c-gnome3/autoclean.sh +++ b/gettext-tools/examples/hello-c-gnome3/autoclean.sh @@ -5,6 +5,8 @@ # Script for cleaning all autogenerated files. test ! -f Makefile || make distclean +# Do the equivalent of "make maintainer-clean", even without the Makefile. +rm -f hello-resources.c hello2-resources.c hello.desktop.in hello2.desktop.in rm -rf autom4te.cache # Files generated by "make" and distributed (see MAINTAINERCLEANFILES). diff --git a/gettext-tools/examples/hello-csharp-forms/autoclean.sh b/gettext-tools/examples/hello-csharp-forms/autoclean.sh index a4867f409..4d1bda1d9 100755 --- a/gettext-tools/examples/hello-csharp-forms/autoclean.sh +++ b/gettext-tools/examples/hello-csharp-forms/autoclean.sh @@ -5,6 +5,8 @@ # Script for cleaning all autogenerated files. test ! -f Makefile || make distclean +# Do the equivalent of "make maintainer-clean", even without the Makefile. +rm -f */*.resources.dll rm -rf autom4te.cache # Brought in by explicit copy. diff --git a/gettext-tools/examples/hello-csharp/autoclean.sh b/gettext-tools/examples/hello-csharp/autoclean.sh index a4867f409..4d1bda1d9 100755 --- a/gettext-tools/examples/hello-csharp/autoclean.sh +++ b/gettext-tools/examples/hello-csharp/autoclean.sh @@ -5,6 +5,8 @@ # Script for cleaning all autogenerated files. test ! -f Makefile || make distclean +# Do the equivalent of "make maintainer-clean", even without the Makefile. +rm -f */*.resources.dll rm -rf autom4te.cache # Brought in by explicit copy. diff --git a/gettext-tools/examples/hello-pascal/autoclean.sh b/gettext-tools/examples/hello-pascal/autoclean.sh index c4313e60a..ca8714450 100755 --- a/gettext-tools/examples/hello-pascal/autoclean.sh +++ b/gettext-tools/examples/hello-pascal/autoclean.sh @@ -5,6 +5,8 @@ # Script for cleaning all autogenerated files. test ! -f Makefile || make distclean +# Do the equivalent of "make maintainer-clean", even without the Makefile. +rm -f hello.rsj rm -rf autom4te.cache # Brought in by explicit copy. -- 2.47.3