dee4c9ae0f
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@552 2fbb986a-6c06-0410-b554-c9c1f0a7f128
25 lines
366 B
Bash
Executable File
25 lines
366 B
Bash
Executable File
#!/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 "libpri.h"
|
|
|
|
static const char pri_version[] = "${PRIVERSION}${EXTRA}";
|
|
|
|
const char *pri_get_version(void)
|
|
{
|
|
return pri_version;
|
|
}
|
|
|
|
END
|