[pulseaudio-discuss] [PATCH 2/3] man: Install man page symlinks to pacat for paplay, parec, parecord, pamon

Peter Meerwald pmeerw at pmeerw.net
Mon Nov 17 02:46:25 PST 2014


From: Peter Meerwald <p.meerwald at bct-electronic.com>

see https://bugs.freedesktop.org/show_bug.cgi?id=68135

Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 man/Makefile.am |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/man/Makefile.am b/man/Makefile.am
index 2fe477f..7dec003 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -81,3 +81,20 @@ EXTRA_DIST = \
 	xmltoman.css \
 	xmltoman.xsl \
 	xmltoman.dtd
+
+if OS_IS_WIN32
+SYMLINK_PROGRAM=cd $(DESTDIR)$(bindir) && cp
+else
+SYMLINK_PROGRAM=ln -sf
+endif
+install-data-hook:
+	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/paplay.1
+	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/parec.1
+	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/parecord.1
+	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/pamon.1
+
+uninstall-hook:
+	rm -f $(DESTDIR)$(man1dir)/paplay.1
+	rm -f $(DESTDIR)$(man1dir)/parec.1
+	rm -f $(DESTDIR)$(man1dir)/parecord.1
+	rm -f $(DESTDIR)$(man1dir)/pamon.1
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list