diff options
author | Matt Kraai <kraai@debian.org> | 2001-04-12 20:11:55 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-04-12 20:11:55 +0000 |
commit | 6ba1a80c260b671ae7b6b5be13e0b74857058c63 (patch) | |
tree | 9b4f388c414879a9f4507a8feef6e45886b186d5 | |
parent | 5a65413c042e2538eda94b2efebd1bf4680ca986 (diff) | |
download | busybox-w32-6ba1a80c260b671ae7b6b5be13e0b74857058c63.tar.gz busybox-w32-6ba1a80c260b671ae7b6b5be13e0b74857058c63.tar.bz2 busybox-w32-6ba1a80c260b671ae7b6b5be13e0b74857058c63.zip |
Use date -u instead of date --utc and consolidate version string.
Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov>.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | busybox.h | 2 | ||||
-rw-r--r-- | include/busybox.h | 2 | ||||
-rw-r--r-- | klogd.c | 2 | ||||
-rw-r--r-- | messages.c | 3 | ||||
-rw-r--r-- | sysklogd/klogd.c | 2 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 2 | ||||
-rw-r--r-- | syslogd.c | 2 |
8 files changed, 10 insertions, 7 deletions
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | PROG := busybox | 20 | PROG := busybox |
21 | VERSION := 0.51 | 21 | VERSION := 0.51 |
22 | BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z") | 22 | BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") |
23 | export VERSION | 23 | export VERSION |
24 | 24 | ||
25 | # With a modern GNU make(1) (highly recommended, that's what all the | 25 | # With a modern GNU make(1) (highly recommended, that's what all the |
@@ -31,6 +31,8 @@ | |||
31 | #include <sys/stat.h> | 31 | #include <sys/stat.h> |
32 | #include <sys/types.h> | 32 | #include <sys/types.h> |
33 | 33 | ||
34 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" | ||
35 | |||
34 | #ifdef DMALLOC | 36 | #ifdef DMALLOC |
35 | #include "dmalloc.h" | 37 | #include "dmalloc.h" |
36 | #endif | 38 | #endif |
diff --git a/include/busybox.h b/include/busybox.h index d4a57732d..ebbe759e2 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <sys/stat.h> | 31 | #include <sys/stat.h> |
32 | #include <sys/types.h> | 32 | #include <sys/types.h> |
33 | 33 | ||
34 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" | ||
35 | |||
34 | #ifdef DMALLOC | 36 | #ifdef DMALLOC |
35 | #include "dmalloc.h" | 37 | #include "dmalloc.h" |
36 | #endif | 38 | #endif |
@@ -76,7 +76,7 @@ static void doKlogd (void) | |||
76 | /* "Open the log. Currently a NOP." */ | 76 | /* "Open the log. Currently a NOP." */ |
77 | klogctl(1, NULL, 0); | 77 | klogctl(1, NULL, 0); |
78 | 78 | ||
79 | syslog_msg(LOG_DAEMON, 0, "klogd started: BusyBox v" BB_VER " (" BB_BT ")"); | 79 | syslog_msg(LOG_DAEMON, 0, "klogd started: " BB_BANNER); |
80 | 80 | ||
81 | while (1) { | 81 | while (1) { |
82 | /* Use kernel syscalls */ | 82 | /* Use kernel syscalls */ |
diff --git a/messages.c b/messages.c index 65f387578..57630a802 100644 --- a/messages.c +++ b/messages.c | |||
@@ -48,8 +48,7 @@ | |||
48 | 48 | ||
49 | 49 | ||
50 | #if defined bb_need_full_version || ! defined BB_DECLARE_EXTERN | 50 | #if defined bb_need_full_version || ! defined BB_DECLARE_EXTERN |
51 | BB_DEF_MESSAGE(full_version, | 51 | BB_DEF_MESSAGE(full_version, BB_BANNER " multi-call binary") |
52 | "BusyBox v" BB_VER " (" BB_BT ") multi-call binary") | ||
53 | #endif | 52 | #endif |
54 | #if defined bb_need_name_too_long || ! defined BB_DECLARE_EXTERN | 53 | #if defined bb_need_name_too_long || ! defined BB_DECLARE_EXTERN |
55 | BB_DEF_MESSAGE(name_too_long, "file name too long") | 54 | BB_DEF_MESSAGE(name_too_long, "file name too long") |
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 241a99175..d7b54e9c8 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -76,7 +76,7 @@ static void doKlogd (void) | |||
76 | /* "Open the log. Currently a NOP." */ | 76 | /* "Open the log. Currently a NOP." */ |
77 | klogctl(1, NULL, 0); | 77 | klogctl(1, NULL, 0); |
78 | 78 | ||
79 | syslog_msg(LOG_DAEMON, 0, "klogd started: BusyBox v" BB_VER " (" BB_BT ")"); | 79 | syslog_msg(LOG_DAEMON, 0, "klogd started: " BB_BANNER); |
80 | 80 | ||
81 | while (1) { | 81 | while (1) { |
82 | /* Use kernel syscalls */ | 82 | /* Use kernel syscalls */ |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 6aec78b4e..9f5fc93b1 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -528,7 +528,7 @@ static void doSyslogd (void) | |||
528 | } | 528 | } |
529 | #endif | 529 | #endif |
530 | 530 | ||
531 | logMessage (0, "syslogd started: BusyBox v" BB_VER " (" BB_BT ")"); | 531 | logMessage (0, "syslogd started: " BB_BANNER); |
532 | 532 | ||
533 | for (;;) { | 533 | for (;;) { |
534 | 534 | ||
@@ -528,7 +528,7 @@ static void doSyslogd (void) | |||
528 | } | 528 | } |
529 | #endif | 529 | #endif |
530 | 530 | ||
531 | logMessage (0, "syslogd started: BusyBox v" BB_VER " (" BB_BT ")"); | 531 | logMessage (0, "syslogd started: " BB_BANNER); |
532 | 532 | ||
533 | for (;;) { | 533 | for (;;) { |
534 | 534 | ||