File: make_version_c

package info (click to toggle)
libss7 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 544 kB
  • sloc: ansic: 5,493; makefile: 98; sh: 60
file content (24 lines) | stat: -rwxr-xr-x 366 bytes parent folder | download | duplicates (6)
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/sh
if [ ! -f ../.flavor ]; then
    EXTRA=""
else
    aadkver=`cat ../.version`
    aadkflavor=`cat ../.flavor`
    EXTRA=" (${aadkflavor} ${aadkver})"
fi
cat << END
/*
 * version.c
 * Automatically generated
 */

#include "libss7.h"

static const char ss7_version[] = "${SS7VERSION}${EXTRA}";

const char *ss7_get_version(void)
{
	return ss7_version;
}

END