Lines 39-46
use Getopt::Long;
Link Here
|
39 |
use Getopt::Std; |
39 |
use Getopt::Std; |
40 |
use File::Copy; |
40 |
use File::Copy; |
41 |
|
41 |
|
42 |
my @doxygendirs = ("$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", ""); |
42 |
#my @doxygendirs = ("$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", ""); |
43 |
|
43 |
my @doxygendirs = ("/usr/bin/", "$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", ""); |
44 |
my $dotexe=".exe" if($^O=~/.*win32.*/i); |
44 |
my $dotexe=".exe" if($^O=~/.*win32.*/i); |
45 |
my $doxygen; |
45 |
my $doxygen; |
46 |
my $doxyver="1.3-rc2"; |
46 |
my $doxyver="1.3-rc2"; |
Lines 62-74
if (-d "$opt_dir") {
Link Here
|
62 |
my $found=0; |
62 |
my $found=0; |
63 |
my $versionok=0; |
63 |
my $versionok=0; |
64 |
foreach my $dir (@doxygendirs) { |
64 |
foreach my $dir (@doxygendirs) { |
65 |
$doxygen="${dir}doxygen$dotexe"; |
65 |
# $doxygen="${dir}doxygen$dotexe"; |
|
|
66 |
$doxygen="${dir}doxygen"; |
66 |
if (-x "$doxygen") { |
67 |
if (-x "$doxygen") { |
67 |
$found=1; |
68 |
$found=1; |
68 |
if (checkDoxygenVersion($doxygen, $doxyver)) { |
69 |
# if (checkDoxygenVersion($doxygen, $doxyver)) { |
69 |
$versionok=1; |
70 |
$versionok=1; |
70 |
last; |
71 |
last; |
71 |
} |
72 |
# } |
72 |
} |
73 |
} |
73 |
} |
74 |
} |
74 |
if (!$found) { |
75 |
if (!$found) { |
Lines 95-135
if(system($cmd)) {
Link Here
|
95 |
exit 1; |
96 |
exit 1; |
96 |
} |
97 |
} |
97 |
|
98 |
|
98 |
my $infile = "$opt_dir/tree.js"; |
99 |
#my $infile = "$opt_dir/tree.js"; |
99 |
my $outfile = "$opt_dir/tree.js.tmp"; |
100 |
#my $outfile = "$opt_dir/tree.js.tmp"; |
100 |
open(FILE_IN, "<$infile") || die "Can't open '$infile' (input): $!"; |
101 |
#open(FILE_IN, "<$infile") || die "Can't open '$infile' (input): $!"; |
101 |
open(FILE_OUT, ">$outfile") || die "Can't open '$outfile' (output): $!"; |
102 |
#open(FILE_OUT, ">$outfile") || die "Can't open '$outfile' (output): $!"; |
102 |
my $firstline=1; |
103 |
#my $firstline=1; |
103 |
while(<FILE_IN>) { |
104 |
#while(<FILE_IN>) { |
104 |
# |
105 |
## |
105 |
# Skip if already modified |
106 |
## Skip if already modified |
106 |
# |
107 |
## |
107 |
if ($_=~/\/\/ tree.js modified by genSQLDBCdoc/) { |
108 |
# if ($_=~/\/\/ tree.js modified by genSQLDBCdoc/) { |
108 |
exit 0; |
109 |
# exit 0; |
109 |
} |
110 |
# } |
110 |
if ($firstline) { |
111 |
# if ($firstline) { |
111 |
print FILE_OUT "// tree.js modified by genSQLDBCdoc\n"; |
112 |
# print FILE_OUT "// tree.js modified by genSQLDBCdoc\n"; |
112 |
$firstline=0; |
113 |
# $firstline=0; |
113 |
} |
114 |
# } |
114 |
# |
115 |
## |
115 |
# Insert link for Native C Reference |
116 |
## Insert link for Native C Reference |
116 |
# |
117 |
## |
117 |
if ($_=~/\s+insDoc\(.*\"SQLDBC_C.h\".*\"(SQLDBC__C.*)\".*/){ |
118 |
# if ($_=~/\s+insDoc\(.*\"SQLDBC_C.h\".*\"(SQLDBC__C.*)\".*/){ |
118 |
$sqldbc_c_ref = $1; |
119 |
# $sqldbc_c_ref = $1; |
119 |
} |
120 |
# } |
120 |
if ($_=~/\s+insDoc\(.*\"Compound Members\".*/){ |
121 |
# if ($_=~/\s+insDoc\(.*\"Compound Members\".*/){ |
121 |
print FILE_OUT "insDoc(foldersTree, gLnk(\"Native C Reference\", \"\", \"$sqldbc_c_ref\"))\n"; |
122 |
# print FILE_OUT "insDoc(foldersTree, gLnk(\"Native C Reference\", \"\", \"$sqldbc_c_ref\"))\n"; |
122 |
} |
123 |
# } |
123 |
# |
124 |
## |
124 |
# Insert Installation chapter |
125 |
## Insert Installation chapter |
125 |
# |
126 |
## |
126 |
if ($_=~/\s+insDoc\(.*\"SQL Database Connectivity.*\".*/){ |
127 |
# if ($_=~/\s+insDoc\(.*\"SQL Database Connectivity.*\".*/){ |
127 |
print FILE_OUT $_; |
128 |
# print FILE_OUT $_; |
128 |
print FILE_OUT "insDoc(foldersTree, gLnk(\"Installation\", \"\", \"install.html\"))\n"; |
129 |
# print FILE_OUT "insDoc(foldersTree, gLnk(\"Installation\", \"\", \"install.html\"))\n"; |
129 |
next; |
130 |
# next; |
130 |
} |
131 |
# } |
131 |
print FILE_OUT $_; |
132 |
# print FILE_OUT $_; |
132 |
} |
133 |
#} |
133 |
|
134 |
|
134 |
chdir("$ENV{OWN}/usr"); |
135 |
chdir("$ENV{OWN}/usr"); |
135 |
|
136 |
|