New file.
authorhanda <handa>
Tue, 24 Jul 2007 06:21:23 +0000 (06:21 +0000)
committerhanda <handa>
Tue, 24 Jul 2007 06:21:23 +0000 (06:21 +0000)
utils/ja_filter.sh [new file with mode: 0755]
utils/usr_filter.sh [new file with mode: 0755]

diff --git a/utils/ja_filter.sh b/utils/ja_filter.sh
new file mode 100755 (executable)
index 0000000..544d0ee
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+case $1 in
+*.[ch]) iconv -f EUC-JP -t UTF-8 < $1 | utils/ja_filter.rb;;
+*.txt) iconv -f EUC-JP -t UTF-8 < $1 | utils/ja_filter.rb;;
+*) utils/ja_filter.rb $1;;
+esac
diff --git a/utils/usr_filter.sh b/utils/usr_filter.sh
new file mode 100755 (executable)
index 0000000..152fcf7
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+case $1 in
+*.[ch]) iconv -f EUC-JP -t UTF-8 < $1 | utils/usr_filter.rb;;
+*) utils/usr_filter.rb $1;;
+esac