[Lxr-general] [PATCH] genxref lxr conf arguement
Brought to you by:
ajlittoz
|
From: Charles H. <ch...@2w...> - 2006-04-07 18:14:35
|
Happened to need the conf in a seperate location for our config.
Index: genxref
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/lxr/lxr/genxref,v
retrieving revision 1.37
diff -u -r1.37 genxref
--- genxref 2 Nov 2005 23:39:55 -0000 1.37
+++ genxref 7 Apr 2006 16:00:36 -0000
@@ -29,7 +29,8 @@
use LXR::Common;
=20
my %option;
-GetOptions(\%option, "help!", "url=3Ds", "version=3Ds", "allurls!", =
"allversions!",
"reindexall!");
+GetOptions(\%option, "help!", "url=3Ds", "version=3Ds", "conf=3Ds",
+ "allurls!", "allversions!", "reindexall!");
=20
if ($option{'help'}) {
=20
@@ -47,6 +48,7 @@
Valid options are:
--help Print a summary of the options.
--url=3DURL Generate tokens for the given URL configuration =
block.
+ --conf=3DCONF Use this configuration file.
--allurls Generate tokens for all URL configuration blocks.
--version=3DVERSION Generate tokens for the given version of the =
code.
--allversions Generate tokens for all versions of the code =
(default).
@@ -64,7 +66,7 @@
die("URL must be specified. Try \"genxref --help\".\n")
unless $option{'url'};
=20
-$config =3D new LXR::Config($option{'url'});
+$config =3D new LXR::Config($option{'url'}, $option{'conf'});
=20
die("No matching configuration") unless $config->sourceroot;
=20
|