#!/bin/sh -e svnversion() { svnrevision=`LC_ALL=C svn info | awk '/^Revision:/ {print $2}'` svndate=`LC_ALL=C svn info | awk '/^Last Changed Date:/ {print $4,$5}'` now=`date` cat < svnversion.h // Do not edit! This file was autogenerated // by $0 // on $now // // svnrevision and svndate are as reported by svn at that point in time, // compiledate and compiletime are being filled gcc at compilation #include static const char* svnrevision = "$svnrevision"; static const char* svndate = "$svndate"; static const char* compiletime = __TIME__; static const char* compiledate = __DATE__; EOF } if [ "$#" -ge 0 ]; then if [ "$1" = "--svnversion" ]; then svnversion exit fi fi test -f svnversion.h || svnversion aclocal autoheader automake autoconf ./configure make