1# Copyright: 2020 Masatake YAMATO 2# License: GPL-2 3 4CTAGS=$1 5 6. ../utils.sh 7 8# It seems that the output format is slightly different between libjansson versions 9s() 10{ 11 sed -e s/':"'/': "'/g 12} 13 14if is_feature_available ${CTAGS} json; then 15 echo '{"command":"generate-tags", "filename":"input.cst"}' | $CTAGS --options=NONE --map-CTagsSelfTest=.cst --_interactive |s 16 echo '{"command":"generate-tags", "filename":"input.cst"}' | $CTAGS --quiet --options=NONE --map-CTagsSelfTest=.cst --_interactive |s 17fi 18