view version.sh @ 18753:45342b9b2789

Change integer to string comparison in hw.optional.altivec test since non-AltiVec machines return a blank instead of 0. patch by Tim Wojtulewicz timwoj**at**ieee**dot**org
author diego
date Mon, 19 Jun 2006 09:16:42 +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