mkver.in revision 54359
154359Sroberto#!@PATH_SH@ 254359SrobertoPROG=${1-UNKNOWN} 354359Sroberto 454359SrobertoConfStr="$PROG" 554359Sroberto 654359Srobertocase "@LIBRSAREF@" in 754359Sroberto '') ;; 854359Sroberto *) ConfStr="$ConfStr RSAREF" ;; 954359Srobertoesac 1054359Sroberto 1154359SrobertoConfStr="$ConfStr @VERSION@ `date`" 1254359Sroberto 1354359Srobertoif [ ! -f .version ]; then 1454359Sroberto echo 0 > .version 1554359Srobertofi 1654359SrobertoRUN="`cat .version`" 1754359SrobertoRUN="`expr $RUN + 1`" 1854359Srobertoecho $RUN > .version 1954359Sroberto 2054359SrobertoConfStr="$ConfStr (${RUN})" 2154359Sroberto 2254359Srobertoecho "Version <${ConfStr}>"; 2354359Sroberto 2454359Srobertorm -f version.c 2554359Srobertocat > version.c << -EoF- 2654359Sroberto/* 2754359Sroberto * version file for $PROG 2854359Sroberto */ 2954359Sroberto#include <config.h> 3054359Srobertoconst char * Version = "${ConfStr}"; 3154359Sroberto-EoF- 32