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