ctags/Tmain/json-output-to-file.d/run.sh
raw| 1 | # Copyright: 2017 Masatake YAMATO |
| 2 | # License: GPL-2 |
| 3 | |
| 4 | CTAGS=$1 |
| 5 | |
| 6 | . ../utils.sh |
| 7 | |
| 8 | O=/tmp/ctags-tmain-$$.json |
| 9 | |
| 10 | is_feature_available "${CTAGS}" json |
| 11 | |
| 12 | $CTAGS --quiet --options=NONE --extras=-p --output-format=json -f ${O} input.c > /dev/null && cat ${O} |
| 13 | s=$? |
| 14 | |
| 15 | rm -f ${O} |
| 16 | |
| 17 | exit $s |