aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-05 12:06:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-05 12:06:00 +0000
commitc05b1684a0bc104f7116b67d1dbdbfddceb4aec2 (patch)
tree7e49ac853ea04dd6a69f6dc09e480219f3f0375e /include
parent66d56c565e48a73309cca55e2d1a2225d9fcc8d9 (diff)
downloadbusybox-c05b1684a0bc104f7116b67d1dbdbfddceb4aec2.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/usage.h11
1 files changed, 5 insertions, 6 deletions
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" \