Package: debianutils
Version: 3.4.1
Severity: wishlist

Attached is a small patch to order tempfile(1) options alphabetically
similarly to that of e.g. touch(1).

The patch is against Git 378c8d6 2010-09-19

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debianutils depends on:
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib
ii  sensible-utils                0.0.4      Utilities for sensible alternative

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information
>From 9adcc3f346b2d636eb43f8fc4c994491b8305bfc Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aa...@cante.net>
Date: Mon, 18 Oct 2010 01:23:07 +0300
Subject: [PATCH] tempfile: Order options alphabetically
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Jari Aalto <jari.aa...@cante.net>
---
 tempfile.1 |   12 ++++++------
 tempfile.c |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tempfile.1 b/tempfile.1
index 762edbf..dfbd22b 100644
--- a/tempfile.1
+++ b/tempfile.1
@@ -48,12 +48,6 @@ may be used.
 .BI "-d, --directory " DIR
 Place the file in DIR.
 .TP
-.BI "-p, --prefix " STRING
-Use up to five letters of STRING to generate the name.
-.TP
-.BI "-s, --suffix " STRING
-Generate the file with STRING as the suffix.
-.TP
 .BI "-m, --mode " MODE
 Open the file with MODE instead of 0600.
 .TP
@@ -62,6 +56,12 @@ Use FILE for the name instead of
 .BR tempnam (3) .
 The options -d, -p, and -s are ignored if this option is given.
 .TP
+.BI "-p, --prefix " STRING
+Use up to five letters of STRING to generate the name.
+.TP
+.BI "-s, --suffix " STRING
+Generate the file with STRING as the suffix.
+.TP
 .B "--help"
 Print a usage message on standard output and exit successfully.
 .TP
diff --git a/tempfile.c b/tempfile.c
index 1029629..5740c61 100644
--- a/tempfile.c
+++ b/tempfile.c
@@ -25,10 +25,10 @@ usage (int status)
     printf("Usage: %s [OPTION]\n\n"
 "Create a temporary file in a safe manner.\n\n"
 "-d, --directory=DIR  place temporary file in DIR\n"
-"-p, --prefix=STRING  set temporary file's prefix to STRING\n"
-"-s, --suffix=STRING  set temporary file's suffix to STRING\n"
 "-m, --mode=MODE      open with MODE instead of 0600\n"
 "-n, --name=FILE      use FILE instead of tempnam(3)\n"
+"-p, --prefix=STRING  set temporary file's prefix to STRING\n"
+"-s, --suffix=STRING  set temporary file's suffix to STRING\n"
 "    --help           display this help and exit\n"
 "    --version        output version information and exit\n", progname);
   exit(status);
-- 
1.7.1

Reply via email to