From c05b1684a0bc104f7116b67d1dbdbfddceb4aec2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 5 Jun 2008 12:06:00 +0000 Subject: mktemp: make argument optional (coreutil 6.12 compat) function old new delta mktemp_main 157 174 +17 packed_usage 24508 24504 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 17/-4) Total: 13 bytes --- include/usage.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 2e5321306..f9a831e85 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2542,19 +2542,18 @@ #endif #define mktemp_trivial_usage \ - "[-dt] [-p DIR] TEMPLATE" + "[-dt] [-p DIR] [TEMPLATE]" #define mktemp_full_usage "\n\n" \ - "Create a temporary file with its name based on TEMPLATE.\n" \ - "TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX).\n" \ + "Create a temporary file with name based on TEMPLATE and print its name.\n" \ + "TEMPLATE must end with XXXXXX (i.e., /tmp/temp.XXXXXX).\n" \ "\nOptions:" \ "\n -d Make a directory instead of a file" \ /* "\n -q Fail silently if an error occurs" - we ignore it */ \ "\n -t Generate a path rooted in temporary directory" \ "\n -p DIR Use DIR as a temporary directory (implies -t)" \ "\n" \ - "\n" \ - "For -t or -p, directory is chosen as follows:\n" \ - "$TMPDIR if set, else -p DIR, else /tmp" \ + "\nFor -t or -p, directory is chosen as follows:" \ + "\n$TMPDIR if set, else -p DIR, else /tmp" \ #define mktemp_example_usage \ "$ mktemp /tmp/temp.XXXXXX\n" \ -- cgit v1.2.3