You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
347B

  1. #!/bin/sh
  2. svn_revision=`svn info | grep Revision | cut -d' ' -f2 || echo UNKNOWN`
  3. NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
  4. OLD_REVISION=`cat version.h 2> /dev/null`
  5. # Update version.h only on revision changes to avoid spurious rebuilds
  6. if test "$NEW_REVISION" != "$OLD_REVISION"; then
  7. echo "$NEW_REVISION" > version.h
  8. fi