Ticket #5159: version.diff

File version.diff, 883 bytes (added by anonymous, 12 years ago)

version.sh need to be modified too, in order to build properly. this patch modify version.pro and version.sh

  • version.pro

     
    1313
    1414version.target = version.cpp
    1515
    16 version.commands = sh $$SVNTREEDIR/version.sh \"$$SVNTREEDIR\" \"$$SVNREPOPATH\"
     16version.commands = sh \"$$SVNTREEDIR/version.sh\" \"$$SVNTREEDIR\" \"$$SVNREPOPATH\"
    1717
    1818!mingw: version.depends = FORCE
    1919
  • version.sh

     
    1919
    2020# Get a string like "0.21.20071125-1"
    2121BINARY_VERSION=$(grep MYTH_BINARY_VERSION \
    22     ${SVNTREEDIR}/libs/libmyth/mythcontext.h \
     22    "${SVNTREEDIR}/libs/libmyth/mythcontext.h" \
    2323    | sed -e 's/.*MYTH_BINARY_VERSION //')
    2424
    2525echo "const char *myth_source_version = \"${SOURCE_VERSION}\";" > .vers.new