Bump API version for new plugin entry points (oops)
[geany-mirror.git] / scripts / create_c_tags.sh
blob06134c4ccc4b5451ec5a55450ea59bfd21bcbd05
1 #!/bin/sh
3 # Author: Enrico Tröger
4 # License: GPL v2 or later
6 # Create a C tags file for Geany from C header files
9 tmpfile="tmp.c.tags"
10 tagfile="data/c99.tags"
12 headers="\
13 assert.h \
14 complex.h \
15 ctype.h \
16 errno.h \
17 fenv.h \
18 float.h \
19 inttypes.h \
20 iso646.h \
21 limits.h \
22 locale.h \
23 math.h \
24 setjmp.h \
25 signal.h \
26 stdarg.h \
27 stdbool.h \
28 stddef.h \
29 stdint.h \
30 stdio.h \
31 stdlib.h \
32 string.h \
33 time.h \
34 wchar.h \
35 wctype.h"
38 # generate the tags file with Geany
39 geany -g "$tmpfile" $headers || exit 1
41 # remove any tags beginning with an underscrore
42 grep -v '^_' "$tmpfile" > "$tagfile"
44 rm "$tmpfile"