shithub: sox

Download patch

ref: 07c9e25d46d23088cff6daa5c5bcbb60f7a9e478
parent: 2ac9477a08faf867d002d80cf7cf1c1206935200
author: cbagwell <cbagwell>
date: Tue Jun 8 23:36:15 EDT 1999

Fixing rec manual

--- a/Changelog
+++ b/Changelog
@@ -42,7 +42,7 @@
     off by a factor of 2.
   o Added an effect that swaps stereo channels.  cbagwell
   o Combined play and rec scripts to a single program to ease mantaince.
-    Also added GNU style long-options (--help).  Carely, some options have
+    Also added GNU style long-options (--help).  Careful, some options have
     change (but more logical).
 
 sox-12.15
--- a/Makefile.unx
+++ b/Makefile.unx
@@ -243,11 +243,12 @@
 	nroff -man libst.3 | col -b > libst.txt
 
 install: sox
-	if [ -f $(BINDIR)/rec ] ; then $(RM) $(BINDIR)/rec; fi
+	if [ -f $(BINDIR)/rec ] ; then $(RM) $(BINDIR)/rec ; fi
+	if [ -f $(MANDIR)/man1/rec.1 ] ; then $(RM) $(MANDIR)/man1/rec.1 ; fi
 	install -c -m 755 sox play $(BINDIR)
 	install -c -m 644 sox.1 play.1 $(MANDIR)/man1
 	ln -s $(BINDIR)/play $(BINDIR)/rec
-	ln -s $(MANDIR)/play.1 $(MANDIR)/rec.1
+	ln -s $(MANDIR)/man1/play.1 $(MANDIR)/man1/rec.1
 
 install-lib: libst.a
 	install -c -m 644 libst.a $(LIBDIR)
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -101,10 +101,11 @@
 
 install: sox
 	if [ -f $(BINDIR)/rec ] ; then $(RM) $(BINDIR)/rec; fi
+        if [ -f $(MANDIR)/man1/rec.1 ]; then $(RM) $(MANDIR)/man1/rec.1; fi
 	$(INSTALL) -c -m 755 sox play $(BINDIR)
 	$(INSTALL) -c -m 644 sox.1 play.1 $(MANDIR)/man1
 	ln -s $(BINDIR)/play $(BINDIR)/rec
-	ln -s $(MANDIR)/play.1 $(MANDIR)/rec.1
+	ln -s $(MANDIR)/man1/play.1 $(MANDIR)/man1/rec.1
 
 install-lib: libst.a
 	$(INSTALL) -c -m 644 libst.a $(LIBDIR)