#!/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
