From: Bruno Haible Date: Tue, 28 Jan 2025 20:54:52 +0000 (+0100) Subject: examples: Improve autoclean.sh. X-Git-Tag: v0.24~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8efbe5bd47726d8440f3b9bb01a1f1a6a3f999fb;p=thirdparty%2Fgettext.git 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. --- 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.