mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
make provision of dict path optional
This commit is contained in:
parent
d5e641ee52
commit
56ece4ee5f
1 changed files with 7 additions and 3 deletions
|
@ -10,9 +10,13 @@ my $userName = "Crosswords.exe";
|
||||||
sub main() {
|
sub main() {
|
||||||
my $provider = "\"Crosswords project\"";
|
my $provider = "\"Crosswords project\"";
|
||||||
|
|
||||||
usage() if 1 != @ARGV;
|
usage() if 1 > @ARGV;
|
||||||
|
|
||||||
my $path = shift @ARGV;
|
my $path = shift @ARGV;
|
||||||
|
my $dict = shift @ARGV;
|
||||||
|
if ( ! $dict ) {
|
||||||
|
$dict = "../../../dawg/English/BasEnglish2to8.xwd";
|
||||||
|
}
|
||||||
|
|
||||||
usage() unless $path =~ m|.exe$|;
|
usage() unless $path =~ m|.exe$|;
|
||||||
|
|
||||||
|
@ -46,7 +50,7 @@ sub main() {
|
||||||
print FILE "$tmpfile ";
|
print FILE "$tmpfile ";
|
||||||
print FILE '%CE1%\\\\Crosswords', "\n";
|
print FILE '%CE1%\\\\Crosswords', "\n";
|
||||||
|
|
||||||
print FILE "../../../dawg/English/BasEnglish2to8.xwd ";
|
print FILE "$dict ";
|
||||||
print FILE '%CE1%\\\\Crosswords', "\n";
|
print FILE '%CE1%\\\\Crosswords', "\n";
|
||||||
|
|
||||||
# print FILE "$ENV{'CEOPT_ROOT'}/opt/mingw32ce/arm-wince-mingw32ce/bin/mingwm10.dll ";
|
# print FILE "$ENV{'CEOPT_ROOT'}/opt/mingw32ce/arm-wince-mingw32ce/bin/mingwm10.dll ";
|
||||||
|
@ -69,7 +73,7 @@ sub main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub usage() {
|
sub usage() {
|
||||||
print STDERR "usage: $0 path/to/xwords4.exe\n";
|
print STDERR "usage: $0 path/to/xwords4.exe [path/to/dict.xwd]\n";
|
||||||
exit 2;
|
exit 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue