summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-11-27 23:25:35 +0530
committerpranavk <pranavk@collabora.co.uk>2017-11-29 09:10:39 +0100
commit3ece8264b4c0b41f480e77980b987db4540e49e7 (patch)
tree1878fd76b11f830260b3ae9fda06e4613a1c5a76 /solenv
parent76f28863e7974da5a7280b3efa8a157c114ca03c (diff)
etags: pass the "-e" flag directly to ctag binary
'man ctags' says that emacs mode will be enabled if the ctags binary is renamed as etags or '-e' flag is provided to ctags binary. Before this patch, the script assumes that host system has an 'etags' binary renamed from 'ctags' program. This is not always the case in all hosts. Eg: In Fedora, 'etags' binary is provided by emacs-common package which doesn't understand the flags given later in the script. It is safe to just explicitly enable the emacs mode via '-e' flag to the ctags binary. Change-Id: Ic7ded56cff32683fc5e9d3fcc7405e79da4c23b7 Reviewed-on: https://gerrit.libreoffice.org/45358 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/create-tags6
1 files changed, 1 insertions, 5 deletions
diff --git a/solenv/bin/create-tags b/solenv/bin/create-tags
index dd4c1d3e46c0..c9fd565b823f 100755
--- a/solenv/bin/create-tags
+++ b/solenv/bin/create-tags
@@ -7,11 +7,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-ctags=ctags
-if test "$1" = "-e"; then
- ctags=etags
-fi
-
+ctags="ctags $@"
saloptions="-ISAL_DELETED_FUNCTION -ISAL_OVERRIDE -ISAL_FINAL"
omnicppoptions="--c++-kinds=+p --fields=+iaS --extra=+q"