| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# Copyright: 2017 Masatake YAMATO |
| 4 |
# License: GPL-2 |
| 5 |
|
| 6 |
CTAGS=$1 |
| 7 |
|
| 8 |
. ../utils.sh |
| 9 |
is_feature_available $CTAGS sandbox |
| 10 |
is_feature_available ${CTAGS} interactive |
| 11 |
is_feature_available ${CTAGS} '!' gcov |
| 12 |
|
| 13 |
{ |
| 14 |
echo '{"command":"generate-tags", "filename":"input.unknown", "size": 44}' |
| 15 |
echo '/* -*- c -*- */ int main(void) { return 0; }' |
| 16 |
} | $CTAGS --quiet --options=NONE -G --_interactive=sandbox > /tmp/ctags-Tmain-$$ |
| 17 |
r=$? |
| 18 |
jdropver < /tmp/ctags-Tmain-$$ |
| 19 |
rm /tmp/ctags-Tmain-$$ |
| 20 |
exit $r |