Skip to content

Commit 2b8a336

Browse files
committed
Adding git tag and extra oracle instructions
1 parent 96cd7cf commit 2b8a336

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

code2pg

+40-38
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ my %LANGUAGE_COMMENTS_END = (
6666
);
6767

6868
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
7070
$REGEX_SEARCH{'plain'}{'after'} = '';
7171
$REGEX_SEARCH{'tags'}{'before'} = '>(?s:.*?)'; # inside <tag> SQL STRING <tag>
7272
$REGEX_SEARCH{'tags'}{'after'} = '(?s:.*?)<';
@@ -2359,6 +2359,8 @@ sub conf_file_handling {
23592359
exit(2);
23602360
}
23612361

2362+
return (1);
2363+
23622364
}
23632365

23642366
################################################################################
@@ -2504,43 +2506,43 @@ Usage: code2pg [--option value]
25042506

25052507
A source code analyzer that estimates an Oracle to PostgreSQL migration.
25062508

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
25312533
-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
25442546

25452547
Examples:
25462548

@@ -3297,7 +3299,7 @@ sub get_file_list {
32973299
my @f; # will output the list of files with full path
32983300
my @cur; # the list of files in our working directory
32993301
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);
33013303

33023304
for my $cur_dir (@dir_to_analyze) {
33033305
# print STDERR "cur_dir= $cur_dir \n" if ($DEBUG);

0 commit comments

Comments
 (0)