Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37748646
en ru br
Репозитории ALT
S:4.00-alt1
5.1: 3.50-alt1
4.1: 3.44-alt2
4.0: 3.44-alt2
3.0: 3.40-alt3.2
www.altlinux.org/Changes

Группа :: Графика
Пакет: pstoedit

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: pstoedit-3.45-quiet.patch
Скачать


--- pstoedit-3.45/src/pstoedit.cpp.orig	2007-07-22 13:27:38.000000000 +0200
+++ pstoedit-3.45/src/pstoedit.cpp	2007-09-20 11:08:32.000000000 +0200
@@ -352,14 +352,16 @@
 	#endif
 #endif
 
+	const unsigned int remaining = options.parseoptions(errstream,argc,argv);
+
+	if (!options.quiet) {
 	errstream << "pstoedit: version " << version << " / DLL interface " <<
 		drvbaseVersion << " (build " << __DATE__ << " - " << buildtype << " - " << compversion << ")" 
 		" : Copyright (C) 1993 - 2007 Wolfgang Glunz\n";
+	}
 	// int arg = 1;
 	drvbase::SetVerbose( false );	// init
 
-
-	const unsigned int remaining = options.parseoptions(errstream,argc,argv);
 	//  handling of derived parameters
 	drvbase::SetVerbose(options.verbose);
 	closerObject.fromgui = (bool) options.fromgui;
--- pstoedit-3.45/src/pstoeditoptions.h.orig	2007-09-20 11:07:14.000000000 +0200
+++ pstoedit-3.45/src/pstoeditoptions.h	2007-09-20 11:06:49.000000000 +0200
@@ -156,6 +156,7 @@
 
 	Option < bool, BoolTrueExtractor > splitpages ;//= false;
 	Option < bool, BoolTrueExtractor > verbose ;//= false;
+	Option < bool, BoolTrueExtractor > quiet ;//= false;
 	Option < bool, BoolTrueExtractor > useBBfrominput; //= false;
 	Option < bool, BoolTrueExtractor > simulateSubPaths ;//= false;
 	Option < RSString, RSStringValueExtractor> unmappablecharstring ;//= 0;
@@ -333,6 +334,9 @@
 		"Switch on verbose mode. Some additional information is shown "
 		"during processing. ",
 		false),
+	quiet				(true, "-quiet",noArgument,b_t,"turns on quiet mode", 
+		"Switch on quiet mode. Version information is not shown. ",
+		false),
 	useBBfrominput		(true, "-usebbfrominput",noArgument,g_t,"extract BoundingBox from input file rather than determining it during processing", 
 		"If specified, pstoedit uses the BoundingBox as is (hopefully) found in the input file instead of one that is calculated by its own. ",
 		false),
@@ -573,6 +577,7 @@
 
 	ADD(splitpages);
 	ADD(verbose );
+	ADD(quiet);
 	ADD(useBBfrominput);
 	ADD(simulateSubPaths);
 	ADD(unmappablecharstring);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin