]> sourceware.org Git - automake.git/commitdiff
* lib/am/mans.am (uninstall-man%SECTION%): Change the extension of
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 4 Dec 2002 17:37:11 +0000 (17:37 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 4 Dec 2002 17:37:11 +0000 (17:37 +0000)
the man pages being uninstalled, if needed.

ChangeLog
lib/am/mans.am

index eb9407a91363edca574ea3d5986331000e500e0a..3631d16b3bafd1a6e391819795ba5bf7f115d6c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-03  Nicolas Joly  <njoly@pasteur.fr>
+
+       * lib/am/mans.am (uninstall-man%SECTION%): Change the extension of
+       the man pages being uninstalled, if needed.
+
 2002-12-03  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * automake.in (macro_define): Do not strip escaped new lines
index 9be711a9f437c793ce5cdad3066a3e6a7415f574..7e3b5ed68106432a44f3e8a6314dea7819786481 100644 (file)
@@ -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; \
This page took 0.032869 seconds and 5 git commands to generate.