script.sh: Adapt to universal-ctags Kconfig parser

The parser has been modified before being merged so we adapt to the
changes.

See : https://github.com/universal-ctags/ctags/pull/2553

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
Maxime Chretien 2020-05-26 09:45:33 +02:00
parent d3ba0cea3b
commit 0f1f7139bd

View file

@ -173,7 +173,7 @@ parse_defs_K()
tmp=`mktemp -d` tmp=`mktemp -d`
full_path=$tmp/$opt2 full_path=$tmp/$opt2
git cat-file blob "$opt1" > "$full_path" git cat-file blob "$opt1" > "$full_path"
ctags -x --language-force=kconfig "$full_path" | ctags -x --language-force=kconfig --kinds-kconfig=c --extras-kconfig=-{configPrefixed} "$full_path" |
awk '{print "CONFIG_"$1" "$2" "$3}' awk '{print "CONFIG_"$1" "$2" "$3}'
rm "$full_path" rm "$full_path"
rmdir $tmp rmdir $tmp