From e0b0628804a1b66709200be4229f932bb79a36e0 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 15 Feb 2005 23:02:44 +0000 Subject: [PATCH] swig -version prints to stdout not stderr now (won't affect the autoconf macro version detection) swig -help prints to stdout not stderr now git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6963 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/main.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/SWIG/Source/Modules/main.cxx b/SWIG/Source/Modules/main.cxx index bb89b768a..b2776a7f3 100644 --- a/SWIG/Source/Modules/main.cxx +++ b/SWIG/Source/Modules/main.cxx @@ -393,13 +393,13 @@ void SWIG_getoptions(int argc, char *argv[]) Swig_arg_error(); } } else if (strcmp(argv[i],"-version") == 0) { - fprintf(stderr,"\nSWIG Version %s\n", PACKAGE_VERSION); - fprintf(stderr,"Copyright (c) 1995-1998\n"); - fprintf(stderr,"University of Utah and the Regents of the University of California\n"); - fprintf(stderr,"Copyright (c) 1998-2004\n"); - fprintf(stderr,"University of Chicago\n"); - fprintf(stderr,"Compiled with %s [%s]\n", SWIG_CXX, SWIG_PLATFORM); - fprintf(stderr,"\nPlease see %s for reporting bugs and further information\n", PACKAGE_BUGREPORT); + fprintf(stdout,"\nSWIG Version %s\n", PACKAGE_VERSION); + fprintf(stdout,"Copyright (c) 1995-1998\n"); + fprintf(stdout,"University of Utah and the Regents of the University of California\n"); + fprintf(stdout,"Copyright (c) 1998-2004\n"); + fprintf(stdout,"University of Chicago\n"); + fprintf(stdout,"Compiled with %s [%s]\n", SWIG_CXX, SWIG_PLATFORM); + fprintf(stdout,"\nPlease see %s for reporting bugs and further information\n", PACKAGE_BUGREPORT); SWIG_exit (EXIT_SUCCESS); } else if (strncmp(argv[i],"-l",2) == 0) { // Add a new directory search path @@ -521,8 +521,8 @@ void SWIG_getoptions(int argc, char *argv[]) Swig_error_msg_format(EMF_MICROSOFT); Swig_mark_arg(i); } else if (strcmp(argv[i],"-help") == 0) { - fputs(usage1,stderr); - fputs(usage2,stderr); + fputs(usage1,stdout); + fputs(usage2,stdout); Swig_mark_arg(i); help = 1; } @@ -640,7 +640,7 @@ int SWIG_main(int argc, char *argv[], Language *l) { if (help) { - Printf(stderr,"\nNote: 'swig - -help' displays options for a specific target language.\n\n"); + Printf(stdout,"\nNote: 'swig - -help' displays options for a specific target language.\n\n"); SWIG_exit (EXIT_SUCCESS); // Exit if we're in help mode }