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