summaryrefslogtreecommitdiff
path: root/src/base/genheader.sh
blob: 2091f7781dc325a635a01052aba821b250f6863a (plain)
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.h/Trace_tags.h header files.
#
# Usage: genheader.sh <directory-mktags> Debug|Trace

path="$1"
shift
tags_type="$1" # Debug/Trace
tags_file="${tags_type}_tags"

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

[ ! -e "${tags_file}" ] && echo "$0: ${tags_file} does not exist" && exit 1

"${path}/mktagheaders" "${tags_file}" "${tags_file}" > "${tags_file}.h"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback