diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-05 12:06:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-05 12:06:00 +0000 |
commit | c05b1684a0bc104f7116b67d1dbdbfddceb4aec2 (patch) | |
tree | 7e49ac853ea04dd6a69f6dc09e480219f3f0375e /include | |
parent | 66d56c565e48a73309cca55e2d1a2225d9fcc8d9 (diff) | |
download | busybox-w32-c05b1684a0bc104f7116b67d1dbdbfddceb4aec2.tar.gz busybox-w32-c05b1684a0bc104f7116b67d1dbdbfddceb4aec2.tar.bz2 busybox-w32-c05b1684a0bc104f7116b67d1dbdbfddceb4aec2.zip |
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.h | 11 |
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 @@ | |||
2542 | #endif | 2542 | #endif |
2543 | 2543 | ||
2544 | #define mktemp_trivial_usage \ | 2544 | #define mktemp_trivial_usage \ |
2545 | "[-dt] [-p DIR] TEMPLATE" | 2545 | "[-dt] [-p DIR] [TEMPLATE]" |
2546 | #define mktemp_full_usage "\n\n" \ | 2546 | #define mktemp_full_usage "\n\n" \ |
2547 | "Create a temporary file with its name based on TEMPLATE.\n" \ | 2547 | "Create a temporary file with name based on TEMPLATE and print its name.\n" \ |
2548 | "TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX).\n" \ | 2548 | "TEMPLATE must end with XXXXXX (i.e., /tmp/temp.XXXXXX).\n" \ |
2549 | "\nOptions:" \ | 2549 | "\nOptions:" \ |
2550 | "\n -d Make a directory instead of a file" \ | 2550 | "\n -d Make a directory instead of a file" \ |
2551 | /* "\n -q Fail silently if an error occurs" - we ignore it */ \ | 2551 | /* "\n -q Fail silently if an error occurs" - we ignore it */ \ |
2552 | "\n -t Generate a path rooted in temporary directory" \ | 2552 | "\n -t Generate a path rooted in temporary directory" \ |
2553 | "\n -p DIR Use DIR as a temporary directory (implies -t)" \ | 2553 | "\n -p DIR Use DIR as a temporary directory (implies -t)" \ |
2554 | "\n" \ | 2554 | "\n" \ |
2555 | "\n" \ | 2555 | "\nFor -t or -p, directory is chosen as follows:" \ |
2556 | "For -t or -p, directory is chosen as follows:\n" \ | 2556 | "\n$TMPDIR if set, else -p DIR, else /tmp" \ |
2557 | "$TMPDIR if set, else -p DIR, else /tmp" \ | ||
2558 | 2557 | ||
2559 | #define mktemp_example_usage \ | 2558 | #define mktemp_example_usage \ |
2560 | "$ mktemp /tmp/temp.XXXXXX\n" \ | 2559 | "$ mktemp /tmp/temp.XXXXXX\n" \ |