Skip to content

Commit

Permalink
Don't print OS, compiler, or compilation date/time
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Nov 26, 2023
1 parent b7d180f commit 22281ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
15 changes: 1 addition & 14 deletions agrephlp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
25 changes: 1 addition & 24 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 22281ee

Please sign in to comment.