summaryrefslogtreecommitdiffstats
path: root/debian/_buildscripts/local/generate_tags.sh
blob: d11ecdb10cdc3b3f9960164c27fcf5c591c10f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Load common code
. ./internals/_build_common.sh
init_common

#----------------------------
# Check for ctags existance
if hash ctags 2>/dev/null; then

	# Generate tags
	if [ ! -d "$TDE_TAGS_DIR" ]; then
		mkdir "$TDE_TAGS_DIR"
	fi

	echo "Generating all tags"
	ctags -f "$TDE_TAGS_DIR/tags.all" "$REPO_TDE_MAIN"

	echo "Generating core tags"
	ctags -f "$TDE_TAGS_DIR/tags.core" "$REPO_TDE_MAIN/dependencies/tqt3"
	ctags -a -f "$TDE_TAGS_DIR/tags.core" "$REPO_TDE_MAIN/tdelibs"
	ctags -a -f "$TDE_TAGS_DIR/tags.core" "$REPO_TDE_MAIN/tdebase"

fi