From 437cf8124553187b485a6d15a7069da0fbdf8bdc Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 6 Jun 1999 21:50:00 +0000 Subject: [PATCH] * mans.am: Strip dirname from given filename. --- ChangeLog | 4 ++++ lib/am/mans.am | 2 ++ mans.am | 2 ++ 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index ae6c66ca..11a08aa6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-06-07 Shuhei Amakawa + + * mans.am: Strip dirname from given filename. + 1999-06-07 Jim Meyering * automake.in (handle_dist): Change emitted rules so that a failure diff --git a/lib/am/mans.am b/lib/am/mans.am index 6c2401b0..a5090922 100644 --- a/lib/am/mans.am +++ b/lib/am/mans.am @@ -34,6 +34,7 @@ install-man@SECTION@: ## 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; \ echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man@SECTION@dir)/$$inst"; \ $(INSTALL_DATA) $$file $(DESTDIR)$(man@SECTION@dir)/$$inst; \ @@ -55,6 +56,7 @@ uninstall-man@SECTION@: ## 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; \ echo " rm -f $(DESTDIR)$(man@SECTION@dir)/$$inst"; \ rm -f $(DESTDIR)$(man@SECTION@dir)/$$inst; \ diff --git a/mans.am b/mans.am index 6c2401b0..a5090922 100644 --- a/mans.am +++ b/mans.am @@ -34,6 +34,7 @@ install-man@SECTION@: ## 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; \ echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man@SECTION@dir)/$$inst"; \ $(INSTALL_DATA) $$file $(DESTDIR)$(man@SECTION@dir)/$$inst; \ @@ -55,6 +56,7 @@ uninstall-man@SECTION@: ## 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; \ echo " rm -f $(DESTDIR)$(man@SECTION@dir)/$$inst"; \ rm -f $(DESTDIR)$(man@SECTION@dir)/$$inst; \ -- 2.43.5