[xorg-commit-diffs] xc/programs/Xserver/hw/xfree86/xf86cfg Imakefile, 1.1.4.2.4.2, 1.1.4.2.4.2.6.1 TODO, 1.1.10.1, 1.1.10.1.6.1 expert.c, 1.1.4.1.6.1, 1.1.4.1.6.1.6.1 interface.c, 1.1.10.1, 1.1.10.1.6.1 keyboard-cfg.c, 1.1.10.1, 1.1.10.1.6.1 loader.c, 1.1.4.1.4.2, 1.1.4.1.4.2.6.1 startx.c, 1.1.10.1, 1.1.10.1.6.1 text-mode.c, 1.1.4.1.6.1, 1.1.4.1.6.1.6.1 xf86config.c, 1.1.4.1.6.1, 1.1.4.1.6.1.6.1

Roland Mainz xorg-commit at pdx.freedesktop.org
Sat Apr 10 02:05:35 PDT 2004


Committed by: gisburn

Update of /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg
In directory pdx:/tmp/cvs-serv7662/xc/programs/Xserver/hw/xfree86/xf86cfg

Modified Files:
      Tag: XPRINT
	Imakefile TODO expert.c interface.c keyboard-cfg.c loader.c 
	startx.c text-mode.c xf86config.c 
Log Message:
Resync to 2004-04-10 XORG-RELEASE-1 branch

Index: Imakefile
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile,v
retrieving revision 1.1.4.2.4.2
retrieving revision 1.1.4.2.4.2.6.1
diff -u -d -r1.1.4.2.4.2 -r1.1.4.2.4.2.6.1
--- a/Imakefile	4 Mar 2004 20:16:50 -0000	1.1.4.2.4.2
+++ b/Imakefile	10 Apr 2004 09:05:30 -0000	1.1.4.2.4.2.6.1
@@ -1,6 +1,8 @@
 XCOMM $XdotOrg$
 XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile,v 1.25 2003/10/31 15:02:55 tsi Exp $
 
+#include <Server.tmpl>
+
 XCOMM CDEBUGFLAGS=-g -Wall -ansi -pedantic
 
 #if DoLoadableServer
@@ -69,7 +71,7 @@
 	vidmode.o\
 	xf86config.o
 
-PROG	= xf86cfg
+PROG	= xorgcfg
 
 XBMPICS =\
 	card.xbm\
@@ -118,7 +120,8 @@
 DEFINES        = -DXF86CONFIG=\"$(XF86CONFIGFILE)\" $(MODULEDEFINES) \
 		 $(CURSESDEFINES) \
 		 -DPROJECT_ROOT=\"$(PROJECTROOT)\" \
-		 -DXF86CONFIGDIR=\"$(XF86CONFIGDIR)\" $(XF86CONSOLEDEFS)
+		 -DXF86CONFIGDIR=\"$(XF86CONFIGDIR)\" $(XF86CONSOLEDEFS) \
+		 $(CONFIG_DEFINES) $(XKBDEFRULESDEFS)
 
 #if HasDlopen
 DLLIB = DlLibrary
@@ -133,9 +136,10 @@
 InstallProgramWithFlags($(PROG),$(BINDIR),NullParameter)
 InstallMultipleFlags($(XBMPICS),$(INCDIR)/X11/bitmaps,$(INSTINCFLAGS))
 InstallMultipleFlags($(XPMPICS),$(INCDIR)/X11/pixmaps,$(INSTINCFLAGS))
-InstallAppDefaults(XF86Cfg)
+CppRawFileTarget(XOrgCfg.ad,XOrgCfg.cpp,-D__VENDORNAME__="$(VENDORNAMESHORT)",NullParameter)
+InstallAppDefaults(XOrgCfg)
 
-InstallManPage(xf86cfg,$(MANDIR))
+InstallManPage(xorgcfg,$(MANDIR))
 
 NormalLibraryObjectRule()
 

Index: TODO
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/TODO,v
retrieving revision 1.1.10.1
retrieving revision 1.1.10.1.6.1
diff -u -d -r1.1.10.1 -r1.1.10.1.6.1
--- a/TODO	4 Mar 2004 17:48:16 -0000	1.1.10.1
+++ b/TODO	10 Apr 2004 09:05:30 -0000	1.1.10.1.6.1
@@ -5,7 +5,7 @@
   Cards file "uptodate" state can also be verified.
 	Probably it is better to forgot about the Cards file, and
 	either parse the output of scanpci, or link libscanpci.a
-	(and whatever else be required) in xf86cfg.
+	(and whatever else be required) in xorgcfg.
 
 o Check if a module is "certified", there was some talk about a
   certification process in the past.
@@ -15,7 +15,7 @@
   This would also require rewriting all existing input device modules.
   (Probably most of this can be made with cpp macros).
 
-o Create a protocol to allow 3rd part xf86cfg modules.
+o Create a protocol to allow 3rd part xorgcfg modules.
 
 o Write an interface for testing extensions/accel, maybe a frontend to
   xdpyinfo, x11perf, glxinfo, etc.
@@ -26,8 +26,8 @@
 o Write code to use a Monitors database, either update the old Monitors
   file or use RedHat MonitorsDB.
 	Chris Morgan is writting code to use MonitorsDB.
-  If xf86cfg could be changed to ddcprobe (in all supported platforms),
+  If xorgcfg could be changed to ddcprobe (in all supported platforms),
   it would be even be a better solution than using a database.
 
 o Add interface to allow changing comments without the need of editing
-  XF86Config with a text editor.
+  config file with a text editor.

Index: expert.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/expert.c,v
retrieving revision 1.1.4.1.6.1
retrieving revision 1.1.4.1.6.1.6.1
diff -u -d -r1.1.4.1.6.1 -r1.1.4.1.6.1.6.1
--- a/expert.c	4 Mar 2004 17:48:16 -0000	1.1.4.1.6.1
+++ b/expert.c	10 Apr 2004 09:05:30 -0000	1.1.4.1.6.1.6.1
@@ -4742,7 +4742,7 @@
     XtAddCallback(panner, XtNreportCallback, PannerCallback, NULL);
     tree = XtCreateManagedWidget("tree", treeWidgetClass, expert, NULL, 0);
 
-    config = XtVaCreateManagedWidget("XF86Config", toggleWidgetClass, tree,
+    config = XtVaCreateManagedWidget(__XCONFIGFILE__, toggleWidgetClass, tree,
 				     XtNstate, True, NULL, 0);
     mainNode = NewNode(NULL, config, config, NULL, NULL);
 

Index: interface.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/interface.c,v
retrieving revision 1.1.10.1
retrieving revision 1.1.10.1.6.1
diff -u -d -r1.1.10.1 -r1.1.10.1.6.1
--- a/interface.c	4 Mar 2004 17:48:16 -0000	1.1.10.1
+++ b/interface.c	10 Apr 2004 09:05:30 -0000	1.1.10.1.6.1
@@ -193,8 +193,8 @@
 
 static XtResource appResources[] = {
 #if 0
-    {"xf86config",  "XF86Config",  XtRString, sizeof(char*),
-      0, XtRString, "/etc/X11/XF86Config"},
+    {"config",  __XCONFIGFILE__,  XtRString, sizeof(char*),
+      0, XtRString, "/etc/X11/"__XCONFIGFILE__},
 #endif
     {"menuBitmap",  "MenuBitmap",  XtRString, sizeof(char*),
       0, XtRString, "menu10"},
@@ -205,11 +205,11 @@
 {
     fprintf(stderr,
 "Usage:\n"
-"   xf86cfg [-option ...]\n"
+"   xorgcfg [-option ...]\n"
 "\n"
 "Options:\n"
-"   -xf86config <XF86Config>   Alternate configuration file.\n"
-"   -modulepath <module-path>  XFree86 modules location.\n"
+"   -config <"__XCONFIGFILE__">   Alternate configuration file.\n"
+"   -modulepath <module-path>  "__XSERVERNAME__" modules location.\n"
 "   -serverpath <server-path>  X server to start (if $DISPLAY is not defined).\n"
 "   -fontpath   <font-path>    Font path for fonts.\n"
 "   -rgbpath    <rgb-path>     Where the rgb.txt file is located.\n"
@@ -217,7 +217,7 @@
 "   -textmode                  Use this option for the text only interface.\n"
 #endif
 #ifdef USE_MODULES
-"   -nomodules                 Use this option if xf86cfg is slow to start.\n"
+"   -nomodules                 Use this option if xorgcfg is slow to start.\n"
 "   -verbose <number>          Verbosity used in the loader (default 1).\n"
 #endif
 "   -verify                    Verify modules/options integrity.\n"
@@ -253,7 +253,9 @@
     noverify = True;
 
     for (i = 1; i < argc; i++) {
-	if (strcmp(argv[i], "-xf86config") == 0) {
+	if (strcmp(argv[i], "-config") == 0 ||
+	    strcmp(argv[i], "-xorgconfig") == 0 ||
+	    strcmp(argv[i], "-xf86config") == 0) {
 	    if (i + 1 < argc) {
 		XF86Config_path = argv[++i];
 		config_set = True;
@@ -298,13 +300,13 @@
     
     startedx = startx();
     if (XF86Config_path == NULL)
-	XF86Config_path = XtNewString("XF86Config-4");
+	XF86Config_path = XtNewString(__XCONFIGFILE__"-4");
     if (XkbConfig_path == NULL) {
 	XmuSnprintf(XkbConfig_path_static, sizeof(XkbConfig_path_static),
 		    "%s/%s%s", XFree86Dir, XkbConfigDir, XkbConfigFile);
 	XkbConfig_path = XkbConfig_path_static;
     }
-    toplevel = XtAppInitialize(&appcon, "XF86Cfg",
+    toplevel = XtAppInitialize(&appcon, "XOrgCfg",
 		    	       NULL, 0,
 			       &argc, argv,
 			       NULL, NULL, 0);
@@ -534,9 +536,9 @@
 # endif
 #else
 # ifdef XF86CONFIGDIR
-	XF86Config_path = XtNewString(XF86CONFIGDIR "/XF86Config-4");
+	XF86Config_path = XtNewString(XF86CONFIGDIR "/"__XCONFIGFILE__"-4");
 # else
-	XF86Config_path = XtNewString("/etc/X11/XF86Config-4");
+	XF86Config_path = XtNewString("/etc/X11/"__XCONFIGFILE__"-4");
 # endif
 #endif
     }

Index: keyboard-cfg.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/keyboard-cfg.c,v
retrieving revision 1.1.10.1
retrieving revision 1.1.10.1.6.1
diff -u -d -r1.1.10.1 -r1.1.10.1.6.1
--- a/keyboard-cfg.c	4 Mar 2004 17:48:16 -0000	1.1.10.1
+++ b/keyboard-cfg.c	10 Apr 2004 09:05:30 -0000	1.1.10.1.6.1
@@ -73,7 +73,7 @@
 #ifdef XFREE98_XKB
 static char *XkbRulesFile = "xfree98";
 #else
-static char *XkbRulesFile = "xfree86";
+static char *XkbRulesFile = __XKBDEFRULES__;
 #endif
 static XF86ConfInputPtr current_input;
 

Index: loader.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/loader.c,v
retrieving revision 1.1.4.1.4.2
retrieving revision 1.1.4.1.4.2.6.1
diff -u -d -r1.1.4.1.4.2 -r1.1.4.1.4.2.6.1
--- a/loader.c	4 Mar 2004 20:16:50 -0000	1.1.4.1.4.2
+++ b/loader.c	10 Apr 2004 09:05:30 -0000	1.1.4.1.4.2.6.1
@@ -188,8 +188,7 @@
 	first = 0;
 
 	checkerLegend[CHECKER_OPTIONS_FILE_MISSING] =
-	"The Options file, normally /usr/X11R6/lib/X11/Options was not found.\n"
-	"In the sources, it is at xc/programs/Xserver/hw/xfree86/Options.";
+	"The Options file, normally /usr/X11R6/lib/X11/Options was not found.\n";
 	checkerLegend[CHECKER_OPTION_DESCRIPTION_MISSING] =
 	"No description for the module option. The description should be in\n"
 	"in the Options file, and using the sintax:\n"
@@ -207,7 +206,7 @@
 	checkerLegend[CHECKER_NO_OPTIONS_AVAILABLE] =
 	"The driver does not have an AvailableOptions function, or that\n"
 	"function is returning NULL. If the driver is returning NULL, and\n"
-	"really does not need any options from XF86Config, than the message\n"
+	"really does not need any options from "__XCONFIGFILE__", than the message\n"
 	"can be ignored.";
 	checkerLegend[CHECKER_NO_VENDOR_CHIPSET] =
 	"The checker could not fetch the PCI chipset/vendor information from\n"

Index: startx.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/startx.c,v
retrieving revision 1.1.10.1
retrieving revision 1.1.10.1.6.1
diff -u -d -r1.1.10.1 -r1.1.10.1.6.1
--- a/startx.c	4 Mar 2004 17:48:17 -0000	1.1.10.1
+++ b/startx.c	10 Apr 2004 09:05:30 -0000	1.1.10.1.6.1
@@ -64,10 +64,10 @@
 	 */
 	if (XFree86_path)
 	    c_pos = XmuSnprintf(commandline, sizeof(commandline),
-				"%s/XFree86 :8 -configure ",XFree86_path);
+				"%s/"__XSERVERNAME__" :8 -configure ",XFree86_path);
 	else
 	    c_pos = XmuSnprintf(commandline, sizeof(commandline), 
-				"%s/bin/XFree86 :8 -configure ", XFree86Dir);
+				"%s/bin/"__XSERVERNAME__" :8 -configure ", XFree86Dir);
 	if (XF86Module_path && ((len = sizeof(commandline) - c_pos) > 0))
 	    c_pos += XmuSnprintf(commandline + c_pos,len,
 				 " -modulepath %s",XF86Module_path);
@@ -87,9 +87,9 @@
 	    home = "/";
 
 #ifndef QNX4
-	XmuSnprintf(filename, sizeof(filename), "%s/XF86Config.new", home);
+	XmuSnprintf(filename, sizeof(filename), "%s/"__XCONFIGFILE__".new", home);
 #else
-	XmuSnprintf(filename, sizeof(filename), "//%d%s/XF86Config.new",
+	XmuSnprintf(filename, sizeof(filename), "//%d%s/"__XCONFIGFILE__".new",
 		    getnid(), home);
 #endif
 
@@ -106,9 +106,9 @@
 	    char path[PATH_MAX];
 	    /* Don't change to X! see above */
 	    if (XFree86_path)
-	        XmuSnprintf(path, sizeof(path), "%s/XFree86", XFree86_path);
+	        XmuSnprintf(path, sizeof(path), "%s/"__XSERVERNAME__, XFree86_path);
 	    else
-	        XmuSnprintf(path, sizeof(path), "%s/bin/XFree86", XFree86Dir);
+	        XmuSnprintf(path, sizeof(path), "%s/bin/"__XSERVERNAME__, XFree86Dir);
 	    execl(path, "X", ":8", /*"+xinerama",*/ "+accessx","-allowMouseOpenFail",
 		  "-xf86config", XF86Config_path, (void *)NULL);
 	    exit(-127);

Index: text-mode.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/text-mode.c,v
retrieving revision 1.1.4.1.6.1
retrieving revision 1.1.4.1.6.1.6.1
diff -u -d -r1.1.4.1.6.1 -r1.1.4.1.6.1.6.1
--- a/text-mode.c	4 Mar 2004 17:48:17 -0000	1.1.4.1.6.1
+++ b/text-mode.c	10 Apr 2004 09:05:30 -0000	1.1.4.1.6.1.6.1
@@ -124,7 +124,7 @@
 #define	CONF_LAYOUT	5
     "Configure layout",
 #define	CONF_FINISH	6
-    "Write XF86Config and quit",
+    "Write "__XCONFIGFILE__" and quit",
 #define	CONF_QUIT	7
     "Quit",
 };
@@ -200,23 +200,23 @@
 
 	ClearScreen();
 	refresh();
-	if (Dialog("XFree86 Configuration",
-		   "This program will create the XF86Config file, based on "
+	if (Dialog( __XSERVERNAME__"Configuration",
+		   "This program will create the "__XCONFIGFILE__" file, based on "
 		   "menu selections you make.\n"
 		   "\n"
 #ifndef __UNIXOS2__
-		   "The XF86Config file usually resides in /usr/X11R6/etc/X11 "
+		   "The "__XCONFIGFILE__" file usually resides in /usr/X11R6/etc/X11 "
 #else
-		   "The XF86Config file usually resides in "XF86CONFIGDIR" "
+		   "The "__XCONFIGFILE__" file usually resides in "XF86CONFIGDIR" "
 #endif
-		   "or /etc/X11. A sample XF86Config file is supplied with "
-		   "XFree86; it is configured for a standard VGA card and "
+		   "or /etc/X11. A sample "__XCONFIGFILE__" file is supplied with "
+		   __XSERVERNAME__"; it is configured for a standard VGA card and "
 		   "monitor with 640x480 resolution. This program will ask for "
 		   "a pathname when it is ready to write the file.\n"
 		   "\n"
-		   "You can either take the sample XF86Config as a base and "
+		   "You can either take the sample "__XCONFIGFILE__" as a base and "
 		   "edit it for your configuration, or let this program "
-		   "produce a base XF86Config file for your configuration and "
+		   "produce a base "__XCONFIGFILE__" file for your configuration and "
 		   "fine-tune it.",
 		   20, 60, "   Ok   ", " Cancel ", 0) != 0)
 	    break;
@@ -295,12 +295,12 @@
 
     ClearScreen();
     refresh();
-    xf86config = DialogInput("Write XF86Config", "Write configuration to file:",
+    xf86config = DialogInput("Write "__XCONFIGFILE__, "Write configuration to file:",
 			     10, 60, XF86Config_path ? XF86Config_path :
 #ifndef __UNIXOS2__
-			     "/etc/X11/XF86Config", "  Ok  ", " Cancel ", 0);
+			     "/etc/X11/"__XCONFIGFILE__, "  Ok  ", " Cancel ", 0);
 #else
-			     XF86CONFIGDIR"/XF86Config", "  Ok  ", " Cancel ", 0);
+			     XF86CONFIGDIR"/"__XCONFIGFILE__, "  Ok  ", " Cancel ", 0);
 #endif
 
     if (xf86config == NULL)
@@ -711,7 +711,7 @@
 #ifdef XFREE98_XKB
 	rulesfile = XKB_RULES_DIR "/xfree98";
 #else
-	rulesfile = XKB_RULES_DIR "/xfree86";
+	rulesfile = XKB_RULES_DIR "/"__XKBDEFRULES__;
 #endif
 	rules = XkbRF_Load(rulesfile, "", True, False);
 	if (rules == NULL) {

Index: xf86config.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/xf86config.c,v
retrieving revision 1.1.4.1.6.1
retrieving revision 1.1.4.1.6.1.6.1
diff -u -d -r1.1.4.1.6.1 -r1.1.4.1.6.1.6.1
--- a/xf86config.c	4 Mar 2004 17:48:17 -0000	1.1.4.1.6.1
+++ b/xf86config.c	10 Apr 2004 09:05:30 -0000	1.1.4.1.6.1.6.1
@@ -24,7 +24,7 @@
  * dealings in this Software without prior written authorization from
  * Conectiva Linux.
  *
- * Author: Paulo César Pereira de Andrade <pcpa at conectiva.com.br>
+ * Author: Paulo César Pereira de Andrade <pcpa at conectiva.com.br>
  *
  * $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/xf86config.c,v 1.5tsi Exp $
  */




More information about the xorg-commit-diffs mailing list