File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 1010
1111use strict;
1212use warnings;
13+ use Getopt::Long;
1314
1415use FindBin;
1516use lib " $FindBin::RealBin /../../tools/" ;
1617use PerfectHash;
1718
18- my $output_table_file = " unicode_norm_table.h" ;
19- my $output_func_file = " unicode_norm_hashfunc.h" ;
19+ my $output_path = ' .' ;
20+
21+ GetOptions(
22+ ' outdir:s' => \$output_path );
23+
24+ my $output_table_file = " $output_path /unicode_norm_table.h" ;
25+ my $output_func_file = " $output_path /unicode_norm_hashfunc.h" ;
26+
2027
2128my $FH ;
2229
2330# Read list of codes that should be excluded from re-composition.
2431my @composition_exclusion_codes = ();
25- open ($FH , ' <' , " CompositionExclusions.txt" )
26- or die " Could not open CompositionExclusions.txt: $! ." ;
32+ open ($FH , ' <' , " $output_path / CompositionExclusions.txt" )
33+ or die " Could not open $output_path / CompositionExclusions.txt: $! ." ;
2734while (my $line = <$FH >)
2835{
2936 if ($line =~ / ^([[:xdigit:]]+)/ )
3845# and character decomposition mapping
3946my @characters = ();
4047my %character_hash = ();
41- open ($FH , ' <' , " UnicodeData.txt" )
42- or die " Could not open UnicodeData.txt: $! ." ;
48+ open ($FH , ' <' , " $output_path / UnicodeData.txt" )
49+ or die " Could not open $output_path / UnicodeData.txt: $! ." ;
4350while (my $line = <$FH >)
4451{
4552
You can’t perform that action at this time.
0 commit comments