Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't print OS, compiler, or compilation date/time #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."