summaryrefslogtreecommitdiff
path: root/solenv/bin/create-tags
blob: 55847f2e5d546de48fc007fff52b66b308584fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

if [ -z "$INPATH" ] ; then
   INPATH=$(grep "INPATH=" ./config_host.mk | sed -e "s/export INPATH=//")
fi
if [ -z "$INPATH" ] ; then
    echo "could not determine INPATH" >&2
    exit 1
fi

omnicppoptions="--c++-kinds=+p --fields=+iaS --extra=+q"
ctags -h "+.hdl.hrc" --langmap=c:+.hdl.hrc.src $omnicppoptions \
      --languages=-HTML,Java,JavaScript \
      -R --exclude=`echo ${INPATH} | sed 's/\./\\\./g'` --exclude=workdir \
      --exclude=clone --totals=yes *