Added a '-inifile' option to specify the location of the wine.ini file

used in the building of the new wine.ini file.
This commit is contained in:
Lionel Ulmer 2000-10-29 18:04:09 +00:00 committed by Alexandre Julliard
parent 7493eada13
commit d654f94f21
1 changed files with 7 additions and 2 deletions

View File

@ -47,7 +47,7 @@ use File::Basename;
use strict;
use Carp;
GetOptions('windir=s', 'sysdir=s', 'thorough', 'debug:s') || &Usage;
GetOptions('windir=s', 'sysdir=s', 'thorough', 'debug:s', 'inifile=s') || &Usage;
&ReadFSTAB();
&FindWindowsDir();
@ -60,6 +60,7 @@ sub Usage {
print "-windir <filename> Location of windows dir in DOS space\n";
print "-thorough Do careful analysis (default)\n";
print "-sysdir <filename> Location of systems dir in DOS space\n";
print "-inifile <filename> Path to the wine.ini file (by default './wine.ini')\n";
# print "-tmpdir <filename> Location of tmp directory\n";
print "Generates (to STDOUT) a wine configuration file based on\n";
print "/etc/fstab and searching around in DOS directories\n";
@ -425,7 +426,11 @@ sub InsertDefaultFile {
}
sub StandardStuff {
&InsertDefaultFile("./wine.ini", "wineconf");
if (!$::opt_inifile) {
&InsertDefaultFile("./wine.ini", "wineconf");
} else {
&InsertDefaultFile($::opt_inifile, "wineconf");
}
}
sub byFileAge {