Skip to content
This repository
Browse code

small fix for tools/

  • Loading branch information...
commit cc2d9574fb7fb3db0ac6aef2a978150dd5018295 1 parent c97e621
authored
4  Rakefile
@@ -6,7 +6,7 @@ perl='/usr/bin/perl'
6 6
 
7 7
 task :default => ['test']
8 8
 
9  
-task 'test' => ['dat', 'ucm'] do
  9
+task 'test' => ['dat', 'ucm', 'Makefile'] do
10 10
     sh 'make test'
11 11
 end
12 12
 
@@ -17,7 +17,7 @@ end
17 17
 # -------------------------------------------------------------------------
18 18
 # dat/
19 19
 
20  
-dat_files = [carriers.map{|x| "dat/#{x}-table.yaml"}, carriers.map{|x| "dat/#{x}-table.pl"}, 'dat/convert-map-utf8.yaml'].flatten
  20
+dat_files = [carriers.map{|x| "dat/#{x}-table.yaml"}, carriers.map{|x| "dat/#{x}-table.pl"}, 'dat/convert-map-utf8.yaml', 'dat/convert-map-utf8.yaml'].flatten
21 21
 task 'dat' => dat_files
22 22
 
23 23
 file 'dat/docomo-table.yaml' do
22  tools/BUILD
... ...
@@ -1,11 +1,13 @@
1 1
 # Build softbank-unicode2sjisauto.yaml
2 2
 ./tools/softbank-scrape-autosjis.pl 103-111-HTML_2.0.0.txt > dat/softbank-unicode2sjis_auto.yaml
3 3
 
  4
+# NOTE
  5
+# You can use `rake' instead of all the following commands.
  6
+
4 7
 # Build YAML files
5 8
 ./tools/docomo-scrape.pl > dat/docomo-table.yaml
6 9
 ./tools/softbank-scrape.pl > dat/softbank-table.yaml
7  
-./tools/softbank-scrape-name.pl > tmp
8  
-mv tmp dat/softbank-table.yaml
  10
+./tools/softbank-scrape-name.pl
9 11
 ./tools/kddi-extract.pl typeD.pdf > dat/kddi-table.yaml
10 12
 
11 13
 # Update kddi/softbank yaml English names
@@ -15,13 +17,17 @@ mv tmp dat/softbank-table.yaml
15 17
 # Make dat/*-table.pl for Charnames.pm
16 18
 ./tools/make-charnames-map.pl
17 19
 
18  
-# Make x-sjis-*.ucm
19  
-./tools/make-kddi-ucm.pl unicode unicode_auto > ucm/x-sjis-kddi.ucm
20  
-./tools/make-kddi-ucm.pl unicode_auto unicode > ucm/x-sjis-kddi-auto.ucm
21  
-./tools/make-softbank-ucm.pl > ucm/x-sjis-softbank-auto.ucm
  20
+# Build convert-utf8-map.yaml
  21
+./tools/convert-map-scrape.pl > dat/convert-map-utf8.yaml
22 22
 
23  
-# Optional: build convert-utf8-map.yaml
24  
-# ./tools/convert-map-scrape.pl
  23
+# .yaml to .pl
  24
+./tools/yaml2perl.pl dat/docomo-table.pl dat/docomo-table.yaml
  25
+./tools/yaml2perl.pl dat/kddi-table.pl dat/kddi-table.yaml
  26
+./tools/yaml2perl.pl dat/softbank-table.pl dat/softbank-table.yaml
  27
+./tools/yaml2perl.pl dat/convert-map-utf8.pl dat/convert-map-utf8.yaml
  28
+
  29
+# Make x-sjis-*.ucm
  30
+./tools/make-sjis-ucm.pl
25 31
 
26 32
 # Make x-utf8-*.ucm
27 33
 ./tools/make-utf8-ucm.pl
1  tools/add-names-by-mapping.pl
... ...
@@ -1,7 +1,6 @@
1 1
 #!/usr/bin/perl
2 2
 use strict;
3 3
 use lib "lib";
4  
-use blib;
5 4
 
6 5
 use warnings;
7 6
 use YAML;
0  tools/make-airh-test-html.pl 100644 → 100755
File mode changed
0  tools/make-sjis-ucm.pl 100644 → 100755
File mode changed

0 notes on commit cc2d957

Please sign in to comment.
Something went wrong with that request. Please try again.