about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-25 00:47:13 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-25 00:47:13 +0000
commitf468d58468b224ea3fb468c9543d8631164f8c55 (patch)
tree8870411e6e8a9aebca82d3175ba71cb808c013f8
parentfbe1dbf48bc0573935e410013da86bda03426af4 (diff)
downloaddtas-f468d58468b224ea3fb468c9543d8631164f8c55.tar.gz
We should be compatible with "gem-man", as well as allowing
installation to prefix ($HOME by default) via:

	make -C Documentation install-man
-rw-r--r--Documentation/GNUmakefile28
-rw-r--r--Documentation/dtas-console.txt (renamed from Documentation/dtas-console.1.txt)0
-rw-r--r--Documentation/dtas-ctl.txt (renamed from Documentation/dtas-ctl.1.txt)0
-rw-r--r--Documentation/dtas-cueedit.txt (renamed from Documentation/dtas-cueedit.1.txt)0
-rw-r--r--Documentation/dtas-enq.txt (renamed from Documentation/dtas-enq.1.txt)0
-rw-r--r--Documentation/dtas-msinkctl.txt (renamed from Documentation/dtas-msinkctl.1.txt)0
-rw-r--r--Documentation/dtas-player.txt (renamed from Documentation/dtas-player.1.txt)0
-rw-r--r--Documentation/dtas-player_protocol.txt (renamed from Documentation/dtas-player_protocol.7.txt)0
-rw-r--r--Documentation/dtas-sinkedit.txt (renamed from Documentation/dtas-sinkedit.1.txt)0
-rw-r--r--Documentation/dtas-sourceedit.txt (renamed from Documentation/dtas-sourceedit.1.txt)0
-rw-r--r--Documentation/dtas-xdelay.txt (renamed from Documentation/dtas-xdelay.1.txt)0
-rw-r--r--README7
-rw-r--r--Rakefile2
13 files changed, 27 insertions, 10 deletions
diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile
index 9144949..94c81d5 100644
--- a/Documentation/GNUmakefile
+++ b/Documentation/GNUmakefile
@@ -21,16 +21,26 @@ all:: man
 
 man: $(man1) $(man7)
 
-install-man: man
-        mkdir -p ../man/man1
-        mkdir -p ../man/man7
-        install -m 644 $(man1) ../man/man1
-        install -m 644 $(man7) ../man/man7
+prefix?=$(HOME)
+mandir?=$(prefix)/share/man
+man1dir=$(mandir)/man1
+man5dir=$(mandir)/man5
+man7dir=$(mandir)/man7
 
-%.1: %.1.txt
-        $(pandoc) -s -t man < $< > $@+ && mv $@+ $@
-%.7: %.7.txt
+INSTALL = install
+
+gem-man: man
+        $(INSTALL) -d -m 755 ../man
+        $(INSTALL) -m 644 $(man1) ../man
+        $(INSTALL) -m 644 $(man7) ../man
+
+install-man: man
+        $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
+        $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
+        $(INSTALL) -m 644 $(man1) $(DESTDIR)$(man1dir)
+        $(INSTALL) -m 644 $(man7) $(DESTDIR)$(man7dir)
+%.1 %.7 : %.txt
         $(pandoc) -s -t man < $< > $@+ && mv $@+ $@
 
 clean::
-        $(RM) $(man1)
+        $(RM) $(man1) $(man7)
diff --git a/Documentation/dtas-console.1.txt b/Documentation/dtas-console.txt
index e41ee87..e41ee87 100644
--- a/Documentation/dtas-console.1.txt
+++ b/Documentation/dtas-console.txt
diff --git a/Documentation/dtas-ctl.1.txt b/Documentation/dtas-ctl.txt
index 68b6c74..68b6c74 100644
--- a/Documentation/dtas-ctl.1.txt
+++ b/Documentation/dtas-ctl.txt
diff --git a/Documentation/dtas-cueedit.1.txt b/Documentation/dtas-cueedit.txt
index 4d73721..4d73721 100644
--- a/Documentation/dtas-cueedit.1.txt
+++ b/Documentation/dtas-cueedit.txt
diff --git a/Documentation/dtas-enq.1.txt b/Documentation/dtas-enq.txt
index 1ef636c..1ef636c 100644
--- a/Documentation/dtas-enq.1.txt
+++ b/Documentation/dtas-enq.txt
diff --git a/Documentation/dtas-msinkctl.1.txt b/Documentation/dtas-msinkctl.txt
index d6acb4c..d6acb4c 100644
--- a/Documentation/dtas-msinkctl.1.txt
+++ b/Documentation/dtas-msinkctl.txt
diff --git a/Documentation/dtas-player.1.txt b/Documentation/dtas-player.txt
index 7e8fbe4..7e8fbe4 100644
--- a/Documentation/dtas-player.1.txt
+++ b/Documentation/dtas-player.txt
diff --git a/Documentation/dtas-player_protocol.7.txt b/Documentation/dtas-player_protocol.txt
index 7c5d57f..7c5d57f 100644
--- a/Documentation/dtas-player_protocol.7.txt
+++ b/Documentation/dtas-player_protocol.txt
diff --git a/Documentation/dtas-sinkedit.1.txt b/Documentation/dtas-sinkedit.txt
index 892320a..892320a 100644
--- a/Documentation/dtas-sinkedit.1.txt
+++ b/Documentation/dtas-sinkedit.txt
diff --git a/Documentation/dtas-sourceedit.1.txt b/Documentation/dtas-sourceedit.txt
index 1f5101b..1f5101b 100644
--- a/Documentation/dtas-sourceedit.1.txt
+++ b/Documentation/dtas-sourceedit.txt
diff --git a/Documentation/dtas-xdelay.1.txt b/Documentation/dtas-xdelay.txt
index e6544f1..e6544f1 100644
--- a/Documentation/dtas-xdelay.1.txt
+++ b/Documentation/dtas-xdelay.txt
diff --git a/README b/README
index 7a76eb5..4783f5c 100644
--- a/README
+++ b/README
@@ -33,9 +33,16 @@ Users of dtas-player will also be interested in the following scripts:
 
 * dtas-ctl - "raw" command-line scripting interface for dtas-player
 * dtas-enq - enqueue files/commands for dtas-player
+* dtas-msinkctl - enable/disable multiple sinks with one command
+* dtas-console - rudimentary curses interface for dtas-player
 * dtas-sinkedit - edit sinks (playback targets) for dtas-player
+* dtas-sourceedit - edit source (decoder process parameters) for dtas-player
 * dtas-xdelay - alternative sink for dtas-player
 
+All scripts have some documentation in the Documention/ directory or
+manpages distributed with the gem.  dtas exposes no public APIs outside
+of command-line interfaces.
+
 Coming:
 
 * MPRIS/MPRIS 2.0 bridge for partial dtas-player control
diff --git a/Rakefile b/Rakefile
index 660b194..0774a09 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,7 +10,7 @@ if ! File.exist?(manifest) || File.stat(manifest).mtime < gitidx.mtime
     if system("make -C Documentation")
       require 'fileutils'
       FileUtils.rm_rf 'man'
-      if system("make -C Documentation install-man")
+      if system("make -C Documentation gem-man")
         `git ls-files -o man`.split(/\n/).each do |man|
           fp.puts man
         end