Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small fix for tools/

  • Loading branch information...
commit cc2d9574fb7fb3db0ac6aef2a978150dd5018295 1 parent c97e621
tomi-ru authored
View
4 Rakefile
@@ -6,7 +6,7 @@ perl='/usr/bin/perl'
task :default => ['test']
-task 'test' => ['dat', 'ucm'] do
+task 'test' => ['dat', 'ucm', 'Makefile'] do
sh 'make test'
end
@@ -17,7 +17,7 @@ end
# -------------------------------------------------------------------------
# dat/
-dat_files = [carriers.map{|x| "dat/#{x}-table.yaml"}, carriers.map{|x| "dat/#{x}-table.pl"}, 'dat/convert-map-utf8.yaml'].flatten
+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
task 'dat' => dat_files
file 'dat/docomo-table.yaml' do
View
22 tools/BUILD
@@ -1,11 +1,13 @@
# Build softbank-unicode2sjisauto.yaml
./tools/softbank-scrape-autosjis.pl 103-111-HTML_2.0.0.txt > dat/softbank-unicode2sjis_auto.yaml
+# NOTE
+# You can use `rake' instead of all the following commands.
+
# Build YAML files
./tools/docomo-scrape.pl > dat/docomo-table.yaml
./tools/softbank-scrape.pl > dat/softbank-table.yaml
-./tools/softbank-scrape-name.pl > tmp
-mv tmp dat/softbank-table.yaml
+./tools/softbank-scrape-name.pl
./tools/kddi-extract.pl typeD.pdf > dat/kddi-table.yaml
# Update kddi/softbank yaml English names
@@ -15,13 +17,17 @@ mv tmp dat/softbank-table.yaml
# Make dat/*-table.pl for Charnames.pm
./tools/make-charnames-map.pl
-# Make x-sjis-*.ucm
-./tools/make-kddi-ucm.pl unicode unicode_auto > ucm/x-sjis-kddi.ucm
-./tools/make-kddi-ucm.pl unicode_auto unicode > ucm/x-sjis-kddi-auto.ucm
-./tools/make-softbank-ucm.pl > ucm/x-sjis-softbank-auto.ucm
+# Build convert-utf8-map.yaml
+./tools/convert-map-scrape.pl > dat/convert-map-utf8.yaml
-# Optional: build convert-utf8-map.yaml
-# ./tools/convert-map-scrape.pl
+# .yaml to .pl
+./tools/yaml2perl.pl dat/docomo-table.pl dat/docomo-table.yaml
+./tools/yaml2perl.pl dat/kddi-table.pl dat/kddi-table.yaml
+./tools/yaml2perl.pl dat/softbank-table.pl dat/softbank-table.yaml
+./tools/yaml2perl.pl dat/convert-map-utf8.pl dat/convert-map-utf8.yaml
+
+# Make x-sjis-*.ucm
+./tools/make-sjis-ucm.pl
# Make x-utf8-*.ucm
./tools/make-utf8-ucm.pl
View
1  tools/add-names-by-mapping.pl
@@ -1,7 +1,6 @@
#!/usr/bin/perl
use strict;
use lib "lib";
-use blib;
use warnings;
use YAML;
View
0  tools/make-airh-test-html.pl 100644 → 100755
File mode changed
View
0  tools/make-sjis-ucm.pl 100644 → 100755
File mode changed
Please sign in to comment.
Something went wrong with that request. Please try again.