diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
commit | af3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch) | |
tree | 125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/date.c | |
parent | 5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff) | |
download | busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.bz2 busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip |
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index ff3214d85..9d4a7dfea 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -8,8 +8,7 @@ | |||
8 | * bugfixes and cleanup by Bernhard Reutner-Fischer | 8 | * bugfixes and cleanup by Bernhard Reutner-Fischer |
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | /* This 'date' command supports only 2 time setting formats, | 12 | /* This 'date' command supports only 2 time setting formats, |
14 | all the GNU strftime stuff (its in libc, lets use it), | 13 | all the GNU strftime stuff (its in libc, lets use it), |
15 | setting time using UTC and displaying it, as well as | 14 | setting time using UTC and displaying it, as well as |
@@ -19,10 +18,6 @@ | |||
19 | /* Input parsing code is always bulky - used heavy duty libc stuff as | 18 | /* Input parsing code is always bulky - used heavy duty libc stuff as |
20 | much as possible, missed out a lot of bounds checking */ | 19 | much as possible, missed out a lot of bounds checking */ |
21 | 20 | ||
22 | //applet:IF_DATE(APPLET(date, BB_DIR_BIN, BB_SUID_DROP)) | ||
23 | |||
24 | //kbuild:lib-$(CONFIG_DATE) += date.o | ||
25 | |||
26 | //config:config DATE | 21 | //config:config DATE |
27 | //config: bool "date" | 22 | //config: bool "date" |
28 | //config: default y | 23 | //config: default y |
@@ -63,6 +58,10 @@ | |||
63 | //config: the same format. With it on, 'date DATE' additionally supports | 58 | //config: the same format. With it on, 'date DATE' additionally supports |
64 | //config: MMDDhhmm[[YY]YY][.ss] format. | 59 | //config: MMDDhhmm[[YY]YY][.ss] format. |
65 | 60 | ||
61 | //applet:IF_DATE(APPLET(date, BB_DIR_BIN, BB_SUID_DROP)) | ||
62 | |||
63 | //kbuild:lib-$(CONFIG_DATE) += date.o | ||
64 | |||
66 | /* GNU coreutils 6.9 man page: | 65 | /* GNU coreutils 6.9 man page: |
67 | * date [OPTION]... [+FORMAT] | 66 | * date [OPTION]... [+FORMAT] |
68 | * date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] | 67 | * date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] |