diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-04 19:31:47 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-04 19:32:35 -0700 |
commit | 7b1b8a1cbbedc2764d4a8ab0d992f9f2ef73d9b7 (patch) | |
tree | f1cb7d2c665d3920594bf63ad1514503469d683a | |
parent | 33368c839dc8c63489591bda6e60c78025be8852 (diff) | |
download | ruby_posix_mq-7b1b8a1cbbedc2764d4a8ab0d992f9f2ef73d9b7.tar.gz |
".rb" in the executable name is discouraged by the {Ruby packaging standard}[http://github.com/chneukirchen/rps] and probably confusing. If I ever get around to it, a non-Ruby version of this executable is planned, and that will be called "posix-mq"
-rw-r--r-- | .document | 2 | ||||
-rw-r--r-- | Documentation/GNUmakefile | 2 | ||||
-rw-r--r-- | Documentation/posix-mq-rb.1.txt (renamed from Documentation/posix-mq.rb.1.txt) | 14 | ||||
-rw-r--r-- | GNUmakefile | 2 | ||||
-rw-r--r-- | README | 2 | ||||
-rwxr-xr-x | bin/posix-mq-rb (renamed from bin/posix-mq.rb) | 2 | ||||
-rw-r--r-- | posix_mq.gemspec | 2 |
7 files changed, 13 insertions, 13 deletions
@@ -4,4 +4,4 @@ NEWS ChangeLog lib ext/posix_mq/posix_mq.c -posix-mq.rb.1 +posix-mq-rb.1 diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 8aea6ae..5a68884 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -5,7 +5,7 @@ PANDOC_OPTS = -f markdown --email-obfuscation=none --sanitize-html pandoc = $(PANDOC) $(PANDOC_OPTS) pandoc_html = $(pandoc) --toc -t html --no-wrap -man1 := $(addsuffix .1,posix-mq.rb) +man1 := $(addsuffix .1,posix-mq-rb) html1 := $(addsuffix .html,$(man1)) all:: html man diff --git a/Documentation/posix-mq.rb.1.txt b/Documentation/posix-mq-rb.1.txt index 0cf0bc3..2972a96 100644 --- a/Documentation/posix-mq.rb.1.txt +++ b/Documentation/posix-mq-rb.1.txt @@ -1,14 +1,14 @@ -% posix-mq.rb(1) posix-mq.rb User Manual +% posix-mq-rb(1) posix-mq-rb User Manual % Ruby POSIX MQ hackers <ruby.posix.mq@librelist.com> % Jan 1, 2010 # NAME -posix-mq.rb - command-line interface for POSIX message queues +posix-mq-rb - command-line interface for POSIX message queues # SYNOPSIS -MQUEUE=/name posix-mq.rb COMMAND [*OPTIONS*] [*ARGUMENTS*] +MQUEUE=/name posix-mq-rb COMMAND [*OPTIONS*] [*ARGUMENTS*] # DESCRIPTION @@ -75,7 +75,7 @@ The following command-line arguments are accepted: -n, \--nonblock : Exit immediately with error if the message queue is full. - Normally posix-mq.rb(1) will block until the queue is writable or + Normally posix-mq-rb(1) will block until the queue is writable or interrupted. This may not be used in conjunction with \--timeout . -t, \--timeout SECONDS : Timeout and exit with error after SECONDS if the message queue is full. @@ -96,7 +96,7 @@ The following command-line arguments are accepted: -n, \--nonblock : Exit immediately with error if the message queue is empty. - Normally posix-mq.rb(1) will block until the queue is readable or + Normally posix-mq-rb(1) will block until the queue is readable or interrupted. This may not be used in conjunction with \--timeout . -t, \--timeout SECONDS : Timeout and exit with error after SECONDS if the message queue is empty. @@ -111,9 +111,9 @@ The following command-line arguments are accepted: # WAIT USAGE -The *wait* command will cause posix-mq.rb(1) to sleep until a message is +The *wait* command will cause posix-mq-rb(1) to sleep until a message is available in the queue. Only one process may wait on an empty queue, -posix-mq.rb(1) will exit with an error if there is another waiting process. +posix-mq-rb(1) will exit with an error if there is another waiting process. It takes no arguments and accepts the following options: diff --git a/GNUmakefile b/GNUmakefile index 10e81e9..cd485a0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -15,7 +15,7 @@ ifeq ($(RUBY_VERSION),) RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION') endif -base_bins := posix-mq.rb +base_bins := posix-mq-rb bins := $(addprefix bin/, $(base_bins)) man1_bins := $(addsuffix .1, $(base_bins)) man1_paths := $(addprefix man/man1/, $(man1_bins)) @@ -28,7 +28,7 @@ network-aware message queue implementations. * Documented library API -* Includes a generic "posix-mq.rb" command-line tool with manpage. +* Includes a generic "posix-mq-rb" command-line tool with manpage. == Install diff --git a/bin/posix-mq.rb b/bin/posix-mq-rb index fa44b94..aab0b61 100755 --- a/bin/posix-mq.rb +++ b/bin/posix-mq-rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # -*- encoding: binary -*- Encoding.default_external = Encoding::BINARY if defined?(Encoding) $stderr.sync = $stdout.sync = true diff --git a/posix_mq.gemspec b/posix_mq.gemspec index 73c0a53..d4cf30e 100644 --- a/posix_mq.gemspec +++ b/posix_mq.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.date = Time.now.utc.strftime('%Y-%m-%d') s.description = File.read("README").split(/\n\n/)[1] s.email = %q{ruby.posix.mq@librelist.com} - s.executables = %w(posix-mq.rb) + s.executables = %w(posix-mq-rb) s.extensions = %w(ext/posix_mq/extconf.rb) s.extra_rdoc_files = File.readlines('.document').map! do |x| |