From: Alexandre Duret-Lutz Date: Wed, 4 Dec 2002 17:37:11 +0000 (+0000) Subject: * lib/am/mans.am (uninstall-man%SECTION%): Change the extension of X-Git-Tag: Release-1-7b~339 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=d3111612d198a28ba64213dc41c39ca72493ef39;p=automake.git * lib/am/mans.am (uninstall-man%SECTION%): Change the extension of the man pages being uninstalled, if needed. --- diff --git a/ChangeLog b/ChangeLog index eb9407a9..3631d16b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-12-03 Nicolas Joly + + * lib/am/mans.am (uninstall-man%SECTION%): Change the extension of + the man pages being uninstalled, if needed. + 2002-12-03 Alexandre Duret-Lutz * automake.in (macro_define): Do not strip escaped new lines diff --git a/lib/am/mans.am b/lib/am/mans.am index 9be711a9..7e3b5ed6 100644 --- a/lib/am/mans.am +++ b/lib/am/mans.am @@ -83,9 +83,14 @@ uninstall-man%SECTION%: esac; \ done; \ for i in $$list; do \ +## Change the extension if needed. + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + %SECTION%*) ;; \ + *) ext='%SECTION%' ;; \ + esac; \ ## Extract basename of man page and run it through the program rename ## transform. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \