1#!/bin/sh 2# Copyright: 2015 Yasuhiro MATSUMOTO 3# License: GPL-2 4 5CTAGS=$1 6BUILDDIR=$2 7 8. ../utils.sh 9 10if ${CTAGS} --quiet --options=NONE --list-features | grep -q iconv; then 11 check_encoding shift_jis 12 check_encoding utf-8 13 check_encoding euc-jp 14 if ${CTAGS} --quiet --options=NONE \ 15 --pseudo-tags=-TAG_PROC_CWD \ 16 --output-encoding=shift_jis --input-encoding=utf-8 --input-encoding-javascript=euc-jp \ 17 -o ${BUILDDIR}/tags \ 18 input.js input.java ; then 19 remove_commit_id ${BUILDDIR}/tags 20 fi 21 exit $? 22else 23 skip "iconv feature is not available" 24fi 25