From aea41a804f9d5c6fe91de2a83ceb0e6fff735f40 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 24 Jul 2007 06:21:23 +0000 Subject: [PATCH] New file. --- utils/ja_filter.sh | 7 +++++++ utils/usr_filter.sh | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100755 utils/ja_filter.sh create mode 100755 utils/usr_filter.sh diff --git a/utils/ja_filter.sh b/utils/ja_filter.sh new file mode 100755 index 0000000..544d0ee --- /dev/null +++ b/utils/ja_filter.sh @@ -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 index 0000000..152fcf7 --- /dev/null +++ b/utils/usr_filter.sh @@ -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 -- 1.7.10.4