Ignore files generated in the dependency checks.
[libpri-bristuff.git] / build_tools / make_version_c
blobf39f722a54cbdbd0ff938f62c95d2143ca59530e
1 #!/bin/sh
2 if [ ! -f ../.flavor ]; then
3 EXTRA=""
4 else
5 aadkver=`cat ../.version`
6 aadkflavor=`cat ../.flavor`
7 EXTRA=" (${aadkflavor} ${aadkver})"
8 fi
9 cat << END
11 * version.c
12 * Automatically generated
15 #include "libpri.h"
17 static const char pri_version[] = "${PRIVERSION}${EXTRA}";
19 const char *pri_get_version(void)
21 return pri_version;
24 END