SHA256
1
0
forked from pool/nedit
Files
nedit/nedit-5.6_builddate_fix.patch

52 lines
1.7 KiB
Diff
Raw Normal View History

diff --git a/source/help.c b/source/help.c
index 7da0d4b..09dbf6c 100644
--- a/source/help.c
+++ b/source/help.c
@@ -229,8 +229,7 @@ static const char *getBuildInfo(void)
{
static const char *bldFormat =
"%s\n"
- " Built on: %s, %s, %s\n"
- " Built at: %s, %s\n"
+ " Built on: openSUSE BuildService\n"
" With Motif: %s%d.%d.%d [%s]\n"
"Running Motif: %d.%d [%s]\n"
" Server: %s %d\n"
@@ -269,8 +268,6 @@ static const char *getBuildInfo(void)
sprintf(bldInfoString, bldFormat,
NEditVersion,
- COMPILE_OS, COMPILE_MACHINE, COMPILE_COMPILER,
- linkdate, linktime,
stabilities[stab], XmVERSION, XmREVISION, XmUPDATE_LEVEL,
XmVERSION_STRING,
xmUseVersion/1000, xmUseVersion%1000,
diff --git a/source/linkdate.c b/source/linkdate.c
index 6ead1db..7711943 100644
--- a/source/linkdate.c
+++ b/source/linkdate.c
@@ -33,6 +33,3 @@
#ifdef HAVE_DEBUG_H
#include "../debug.h"
#endif
-
-const char linkdate[] = __DATE__;
-const char linktime[] = __TIME__;
diff --git a/source/nc.c b/source/nc.c
index db2ed5a..59476aa 100644
--- a/source/nc.c
+++ b/source/nc.c
@@ -1002,10 +1002,7 @@ static void copyCommandLineArg(CommandLine *commandLine, const char *arg)
static void printNcVersion(void ) {
static const char *const ncHelpText = \
"nc (NEdit) Version 5.6 (November 2009)\n\n\
- Built on: %s, %s, %s\n\
- Built at: %s, %s\n";
+ Built on: openSUSE BuildService\n";
- fprintf(stdout, ncHelpText,
- COMPILE_OS, COMPILE_MACHINE, COMPILE_COMPILER,
- __DATE__, __TIME__);
+ fprintf(stdout, ncHelpText);
}