@@ -66,7 +66,7 @@ my %LANGUAGE_COMMENTS_END = (
66
66
);
67
67
68
68
my %REGEX_SEARCH; # how we identify keywords
69
- $REGEX_SEARCH {'plain'}{'before'} = ''; # directly as in sql files
69
+ $RGEX_SEARCH {'plain'}{'before'} = ''; # directly as in sql files
70
70
$REGEX_SEARCH{'plain'}{'after'} = '';
71
71
$REGEX_SEARCH{'tags'}{'before'} = '>(?s:.*?)'; # inside <tag> SQL STRING <tag>
72
72
$REGEX_SEARCH{'tags'}{'after'} = '(?s:.*?)<';
@@ -2359,6 +2359,8 @@ sub conf_file_handling {
2359
2359
exit(2);
2360
2360
}
2361
2361
2362
+ return (1);
2363
+
2362
2364
}
2363
2365
2364
2366
################################################################################
@@ -2504,43 +2506,43 @@ Usage: code2pg [--option value]
2504
2506
2505
2507
A source code analyzer that estimates an Oracle to PostgreSQL migration.
2506
2508
2507
- -c, --config-file file : a global code2pg configuration file
2508
- if command line parameters are given, they take
2509
- precedence over those in this file
2510
- -C, --csv-output file : Oracle keywords will be redirected to this csv file
2511
- -d, --directory dir : the source code directory to analyze.
2512
- Can be used multiple times (-d dir1 -d dir2)
2513
- -D, --directorytype type : the type of directory to analyze (svn|file)
2514
- -e, --extension ext : extensions of files to analyze.
2515
- Can be used multiple times (-e ext1 -e ext2)
2516
- -f, --format form : report will be generated in the specified format
2517
- form = [txt|html|minimal]. Will be html by default
2518
- -h, --help [instr] : print this help.
2519
- With a parameter, will print help on this
2520
- specific RDBMS instruction in markdown format.
2521
- instr can also be set to "all_instructions"
2522
- -l, --language lang : Where the SQL instructions will be looked for.
2523
- lang = [plain|comma-strings|tags]
2524
- --level1-minutes m : minutes for a level1 instruction (1 by default)
2525
- --level2-minutes m : minutes for a level2 instruction (4 by default)
2526
- --level3-minutes m : minutes for a level3 instruction (8 by default)
2527
- --level4-minutes m : minutes for a level4 instruction (20 by default)
2528
- --minutes-per-workday m : number of minutes per workday (360 by default)
2529
- -o, --output-file file : this will be the generated report filename
2530
- For html, will be estimation.html by default
2509
+ -c, --config-file file : a global code2pg configuration file
2510
+ if command line parameters are given, they take
2511
+ precedence over those in this file
2512
+ -C, --csv-output file : Oracle keywords will be redirected to this csv file
2513
+ -d, --directory dir : the source code directory to analyze.
2514
+ Can be used multiple times (-d dir1 -d dir2)
2515
+ -D, --directorytype type : the type of directory to analyze (svn|file)
2516
+ -e, --extension ext : extensions of files to analyze.
2517
+ Can be used multiple times (-e ext1 -e ext2)
2518
+ -f, --format form : report will be generated in the specified format
2519
+ form = [txt|html|minimal]. Will be html by default
2520
+ -h, --help [instr] : print this help.
2521
+ With a parameter, will print help on this
2522
+ specific RDBMS instruction in markdown format.
2523
+ instr can also be set to "all_instructions"
2524
+ -l, --language lang : Where the SQL instructions will be looked for.
2525
+ lang = [plain|comma-strings|tags]
2526
+ --level1-minutes m : minutes for a level1 instruction (1 by default)
2527
+ --level2-minutes m : minutes for a level2 instruction (4 by default)
2528
+ --level3-minutes m : minutes for a level3 instruction (8 by default)
2529
+ --level4-minutes m : minutes for a level4 instruction (20 by default)
2530
+ --minutes-per-workday m : number of minutes per workday (360 by default)
2531
+ -o, --output-file file : this will be the generated report filename
2532
+ For html, will be estimation.html by default
2531
2533
-O, --output-directory dir: the report will be stored in this directory
2532
- -p, --password pwd : password for SVN access
2533
- -q, --quiet : do not output progress to stdout. Useful for batch
2534
- processing and redirection.
2535
- -R, --rdbms rdbms : from which RDBMS the migration will take place.
2536
- rdbms = [oracle|db2|mssql].
2537
- Will be oracle by default.
2538
- -r, --orafce : will the migration use orafce compatibility layer
2539
- -T, --tagfiles : if enabled, local source files will be tagged
2540
- directly for Oracle instructions.
2541
- Important: use on a copy of your files.
2542
- -u, --username user : username for SVN access
2543
- -v, --version : show script version and exit
2534
+ -p, --password pwd : password for SVN access
2535
+ -q, --quiet : do not output progress to stdout. Useful for batch
2536
+ processing and redirection.
2537
+ -R, --rdbms rdbms : from which RDBMS the migration will take place.
2538
+ rdbms = [oracle|db2|mssql].
2539
+ Will be oracle by default.
2540
+ -r, --orafce : will the migration use orafce compatibility layer
2541
+ -T, --tagfiles : if enabled, local source files will be tagged
2542
+ directly for Oracle instructions.
2543
+ Important: use on a copy of your files.
2544
+ -u, --username user : username for SVN access
2545
+ -v, --version : show script version and exit
2544
2546
2545
2547
Examples:
2546
2548
@@ -3297,7 +3299,7 @@ sub get_file_list {
3297
3299
my @f; # will output the list of files with full path
3298
3300
my @cur; # the list of files in our working directory
3299
3301
print STDERR "Now parsing $directory_type type files\n" if ($DEBUG);
3300
- print STDERR "Extensions =\n" . join(",", @extensions_to_analyze) if ($DEBUG);
3302
+ print STDERR "Extensions =\n" . join(",", @extensions_to_analyze) . "\n" if ($DEBUG);
3301
3303
3302
3304
for my $cur_dir (@dir_to_analyze) {
3303
3305
# print STDERR "cur_dir= $cur_dir \n" if ($DEBUG);
0 commit comments