#!/bin/sh
# Copyright: 2015 Yasuhiro MATSUMOTO
# License: GPL-2

CTAGS=$1
BUILDDIR=$2

. ../utils.sh

if ${CTAGS} --quiet --options=NONE --list-features | grep -q iconv; then
  if ${CTAGS}  --quiet --options=NONE \
	       --output-encoding=cp932 --input-encoding=utf-8 --input-encoding-javascript=euc-jp \
	       -o ${BUILDDIR}/tags \
	       input.js input.java ; then
      remove_commit_id ${BUILDDIR}/tags
  fi
  exit $?
else
	skip "iconv feature is not available"
fi
