view version.sh @ 18745:19cd9e0f8ac4

prevent buffer overflow in the STD; simplified fill_packet() (moving part of the code to get_packet_stats())
author nicodvb
date Sun, 18 Jun 2006 10:39:09 +0000
parents 06c236dd604b
children 04ed79acda15
line wrap: on
line source

#!/bin/sh

revision=r`grep committed-rev .svn/entries | sed 1q | cut -d '"' -f 2 2>/dev/null`

extra=""
if test "$1" ; then
  extra="-$1"
fi

echo "#define VERSION \"dev-SVN-${revision}${extra}\"" > version.h