[xiph-commits] r3776 - liboggz/trunk/src/tools

conrad at svn.annodex.net conrad at svn.annodex.net
Thu Nov 13 01:37:29 PST 2008


Author: conrad
Date: 2008-11-13 01:37:29 -0800 (Thu, 13 Nov 2008)
New Revision: 3776

Modified:
   liboggz/trunk/src/tools/Makefile.am
Log:
Add symlinks for deprecated tool names, if they are already installed;
see http://lists.xiph.org/pipermail/ogg-dev/2008-July/001083.html
On 'make uninstall', remove each deprecated tool -- but only if it is a
symlink, to keep to the policy of only uninstalling what we installed.


Modified: liboggz/trunk/src/tools/Makefile.am
===================================================================
--- liboggz/trunk/src/tools/Makefile.am	2008-11-10 02:42:02 UTC (rev 3775)
+++ liboggz/trunk/src/tools/Makefile.am	2008-11-13 09:37:29 UTC (rev 3776)
@@ -66,3 +66,21 @@
 oggz_sort_SOURCES = oggz-sort.c oggz_tools.c
 oggz_sort_LDADD = $(OGGZ_LIBS)
 
+# Add symlinks for deprecated tool names, if they are already installed;
+# see http://lists.xiph.org/pipermail/ogg-dev/2008-July/001083.html
+install-exec-local:
+	for p in dump diff info merge rip ; do \
+	  if test -e $(exec_prefix)/bin/oggz$$p ; then \
+	    rm $(exec_prefix)/bin/oggz$$p ; \
+	    ln -s $(exec_prefix)/bin/oggz-$$p $(exec_prefix)/bin/oggz$$p ; \
+	  fi ; \
+	done
+
+# On 'make uninstall', remove the deprecated tool -- but only if it is a
+# symlink, to keep to the policy of only uninstalling what we installed.
+uninstall-local:
+	for p in dump diff info merge rip ; do \
+	  if test -L $(exec_prefix)/bin/oggz$$p ; then \
+	    rm $(exec_prefix)/bin/oggz$$p ; \
+	  fi ; \
+	done



More information about the commits mailing list