From 22281eeb7927a6c110f21643524be31bf1e19e9e Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Sat, 25 Nov 2023 18:59:07 -0600 Subject: [PATCH] Don't print OS, compiler, or compilation date/time Fixes #24 --- agrephlp.c | 15 +-------------- version.h | 25 +------------------------ 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/agrephlp.c b/agrephlp.c index d3df89c..db07dd7 100644 --- a/agrephlp.c +++ b/agrephlp.c @@ -105,19 +105,6 @@ unsigned int userwants; PAGE1: -/* -#ifdef __EMX__ -fprintf(stderr,"\nAGREP %s for %s compiled with EMX 0.9c. Manber/Wu/Gries et al.(%s)\n",AGREP_VERSION,AGREP_OS,AGREP_DATE); -#else -#ifdef _WIN32 -fprintf(stderr,"\nAGREP %s for %s compiled with %s (%s)\n", AGREP_VERSION, AGREP_OS, myccc, AGREP_DATE ); -#endif -#endif -*/ - -/* -fprintf(stderr,"\nAGREP %s for %s compiled with %s (%s). Manber/Wu/Gries et al.\n", AGREP_VERSION, AGREP_OS, __VERSION__, AGREP_DATE ); -*/ fprintf(stderr, "%s\n", AGREP_VERSION_STRING ); fprintf(stderr,"\n Approximate Pattern Matching GREP -- Get Regular Expression\n"); @@ -275,7 +262,7 @@ fprintf(stderr,"AGREP is the search engine and part of the GLIMPSE tool for sear fprintf(stderr,"indexing whole file systems. GLIMPSE stands for GLobal IMPlicit SEarch and is\n"); fprintf(stderr,"part of the HARVEST Information Discovery and Access System."); -fprintf(stderr,"\n\nAGREP as of %s:\n",AGREP_DATE); +fprintf(stderr,"\n\n%s\n",AGREP_VERSION_STRING); fprintf(stderr,"===============================================\n"); fprintf(stderr,"The home page for AGREP and GLIMPSE in general http://webglimpse.net\n"); fprintf(stderr,"Home page AGREP http://www.tgries.de/agrep\n\n"); diff --git a/version.h b/version.h index 039e09f..4b12ebf 100644 --- a/version.h +++ b/version.h @@ -47,27 +47,4 @@ #define AGREP_VERSION "3.41.5/TG" -#ifdef __DOS -#define AGREP_OS "DOS" -#endif - -#ifdef __OS2 -#define AGREP_OS "OS/2" -#endif - -#ifdef __RSX -#define AGREP_OS "VPMI" -#endif - -#ifdef _WIN32 -#define AGREP_OS "WIN32" -#endif - -#ifndef AGREP_OS -#define AGREP_OS "NATIVE LINUX" -#endif - - -#define AGREP_DATE __DATE__ - -#define AGREP_VERSION_STRING "AGREP "AGREP_VERSION" for "AGREP_OS" compiled with GCC "__VERSION__" ("__DATE__" "__TIME__"). Manber/Wu/Gries et al." +#define AGREP_VERSION_STRING "AGREP "AGREP_VERSION". Manber/Wu/Gries et al."