Ticket #47: mythsvnversions.patch

File mythsvnversions.patch, 922 bytes (added by Dibblahmythml0015@…, 15 years ago)

This is the first part of the implementation. It adds getting the version string from the svn information into mythconfig.h

  • configure

     
    25942594  echo "#define MYTH_BUILD_CONFIG \"$CCONFIG\"" >>$TMPH
    25952595fi
    25962596
     2597if test -f .svn/entries ; then
     2598  MYTH_BINARY_VERSION=`grep "url=" .svn/entries  |sed -e 's/.*branches\/\([^/]*\).*/branch-\1/' -e 's/.*tags\/\([^/]*\).*/\1/'  -e 's/.*\(trunk\)\/.*/\1/'`
     2599  MYTH_BINARY_VERSION=$MYTH_BINARY_VERSION.`grep "committed-date" .svn/entries | head -n 1 | sed -e 's/^ *committed-date=\"//' -e 's/T.*//'`
     2600  MYTH_BINARY_VERSION=$MYTH_BINARY_VERSION.`grep "committed-rev" .svn/entries | head -n 1 | sed -e 's/^ *committed-rev=\"//' -e 's/\"//'`
     2601else
     2602  MYTH_BINARY_VERSION="Unknown"
     2603fi
     2604echo "#define MYTH_BINARY_VERSION \"$MYTH_BINARY_VERSION\"" >>$TMPH
     2605
    25972606if test x"$CONFIG_DEFINES" != x"" ; then
    25982607  echo "CONFIG_DEFINES=$CONFIG_DEFINES" >> $MYTH_CONFIG_MAK
    25992608fi