File: gentmptags.sh

package info (click to toggle)
cvc4 1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 69,876 kB
  • sloc: cpp: 274,686; sh: 5,833; python: 1,893; java: 929; lisp: 763; ansic: 275; perl: 214; makefile: 22; awk: 2
file content (21 lines) | stat: -rwxr-xr-x 546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# Convenience wrapper for cmake in src/base/CMakeLists.txt
#
# Create Debug_tags.tmp/Trace_tags.tmp files from given source files.
#
# Usage: gentmptags.sh <directory-mktags> Debug|Trace <source files ...>

path="$1"
shift
tags_type="$1"
tags_file="${tags_type}_tags"
shift
source_files_list="$*"

if [ "${tags_type}" != "Debug" ] && [ "${tags_type}" != "Trace" ]; then
  echo "$0: Invalid tags type '${tags_type}' (must be 'Debug' or 'Trace')"
  exit 1
fi

"${path}/mktags" "${tags_type}" "${source_files_list}" > "${tags_file}.tmp"