unzip/unzip-no-build-date.patch

99 lines
2.2 KiB
Diff

Index: cmsmvs/vmmvs.c
===================================================================
--- cmsmvs/vmmvs.c.orig
+++ cmsmvs/vmmvs.c
@@ -664,14 +664,6 @@ void version(__G)
/* Add compile environment */
platform,
-
- /* Add timestamp */
-#ifdef __DATE__
- " on " __DATE__
-#ifdef __TIME__
- " at " __TIME__
-#endif
-#endif
".\n", "",
liblvlmsg
);
Index: macos/source/sxunzip.c
===================================================================
--- macos/source/sxunzip.c.orig
+++ macos/source/sxunzip.c
@@ -123,7 +123,7 @@ static char UnZipVersionLocal[50];
memset(UnZipVersionLocal,0,sizeof(UnZipVersionLocal));
-sprintf(UnZipVersionLocal, "[%s %s]", __DATE__, __TIME__);
+sprintf(UnZipVersionLocal, "[Unknown]");
return UnZipVersionLocal;
}
Index: macos/source/macos.c
===================================================================
--- macos/source/macos.c.orig
+++ macos/source/macos.c
@@ -937,14 +937,11 @@ void version(__G)
ZCONST char Far CompiledWith[] =
"Compiled with %s%s for %s%s%s%s.\n\n"; */
-char DateTime[50];
-
#ifdef __MWERKS__
char CompVer[10];
sprintf(CompVer, "%x", __MWERKS__);
#endif
- sprintf(DateTime,"%s %s",__DATE__, __TIME__);
sprintf((char *)slide, LoadFarString(CompiledWith),
@@ -960,13 +957,7 @@ sprintf(CompVer, "%x", __MWERKS__);
#else
" PowerPC Processor",
#endif
-
-#ifdef __DATE__
-
- "\n compile time: ", DateTime, ""
-#else
"", "", ""
-#endif
);
(*G.message)((zvoid *)&G, slide, (ulg)strlen((char *)slide), 0);
Index: amiga/amiga.c
===================================================================
--- amiga/amiga.c.orig
+++ amiga/amiga.c
@@ -1002,12 +1002,7 @@ void version(__G)
sprintf(buf2,"unknown version");
# endif
#endif
-
-#ifdef __DATE__
- sprintf(buf4," on %s",__DATE__);
-#else
strcpy(buf4," unknown date");
-#endif
/******
#ifdef __TIME__
Index: unix/unix.c
===================================================================
--- unix/unix.c.orig
+++ unix/unix.c
@@ -1705,11 +1705,7 @@ void version(__G)
#endif /* Sun */
#endif /* SGI */
-#ifdef __DATE__
- " on ", __DATE__
-#else
"", ""
-#endif
);
(*G.message)((zvoid *)&G, slide, (ulg)strlen((char *)slide), 0);