diff options
author | Junling Zheng <zhengjunling@huawei.com> | 2015-04-08 07:53:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-09 07:43:50 +0100 |
commit | f042708dc050eb56a050cc67834f2670c2f657ce (patch) | |
tree | 02d37cd482803395679e0722d59d9448958ccf02 /meta/recipes-devtools/file | |
parent | a6866222ef6feaa2112618f1442a8960840e394a (diff) | |
download | poky-f042708dc050eb56a050cc67834f2670c2f657ce.tar.gz |
file: add -P prompt into usage info
Currently, file's usage info doesn't contain -P prompt. So add it.
(From OE-Core rev: fa01893abc088b21b5b5f45927157c286b236dfd)
Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file')
-rw-r--r-- | meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch | 39 | ||||
-rw-r--r-- | meta/recipes-devtools/file/file_5.22.bb | 3 |
2 files changed, 41 insertions, 1 deletions
diff --git a/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch b/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch new file mode 100644 index 0000000000..95e1291f66 --- /dev/null +++ b/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 08abf944b2bff27b6dd325dd15b4861cebef113a Mon Sep 17 00:00:00 2001 | ||
2 | From: Junling Zheng <zhengjunling@huawei.com> | ||
3 | Date: Wed, 8 Apr 2015 03:26:57 +0000 | ||
4 | Subject: [PATCH] Add -P prompt into Usage info | ||
5 | |||
6 | Currently, Usage info doesn't include -P prompt, add it: | ||
7 | |||
8 | root@arma9el:~# file | ||
9 | Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type] | ||
10 | [-e testname] [-F separator] [-f namefile] [-m magicfiles] | ||
11 | [-P parameter=limits] file ... | ||
12 | file -C [-m magicfiles] | ||
13 | file [--help] | ||
14 | |||
15 | Upstream-Status: Submitted | ||
16 | |||
17 | Signed-off-by: Junling Zheng <zhengjunling@huawei.com> | ||
18 | --- | ||
19 | src/file.c | 4 ++-- | ||
20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/src/file.c b/src/file.c | ||
23 | index 546fd8b..beef868 100644 | ||
24 | --- a/src/file.c | ||
25 | +++ b/src/file.c | ||
26 | @@ -76,8 +76,8 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc | ||
27 | # define USAGE \ | ||
28 | "Usage: %s [" FILE_FLAGS \ | ||
29 | "] [--apple] [--mime-encoding] [--mime-type]\n" \ | ||
30 | - " [-e testname] [-F separator] [-f namefile] [-m magicfiles] " \ | ||
31 | - "file ...\n" \ | ||
32 | + " [-e testname] [-F separator] [-f namefile] [-m magicfiles]\n" \ | ||
33 | + " [-P parameter=limits] file ...\n" \ | ||
34 | " %s -C [-m magicfiles]\n" \ | ||
35 | " %s [--help]\n" | ||
36 | |||
37 | -- | ||
38 | 1.8.3.4 | ||
39 | |||
diff --git a/meta/recipes-devtools/file/file_5.22.bb b/meta/recipes-devtools/file/file_5.22.bb index 9c6bb38d71..e8d4dae4f8 100644 --- a/meta/recipes-devtools/file/file_5.22.bb +++ b/meta/recipes-devtools/file/file_5.22.bb | |||
@@ -12,7 +12,8 @@ DEPENDS = "zlib file-native" | |||
12 | DEPENDS_class-native = "zlib-native" | 12 | DEPENDS_class-native = "zlib-native" |
13 | 13 | ||
14 | SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \ | 14 | SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \ |
15 | file://debian-742262.patch \ | 15 | file://debian-742262.patch \ |
16 | file://0001-Add-P-prompt-into-Usage-info.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | SRC_URI[md5sum] = "8fb13e5259fe447e02c4a37bc7225add" | 19 | SRC_URI[md5sum] = "8fb13e5259fe447e02c4a37bc7225add" |