do_libopenmpt_release.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env bash
  2. set -e
  3. svn up
  4. #build/update_openmpt_version.sh bumpbuild
  5. #VER_MAJOR=$(cat common/versionNumber.h | grep "VER_MAJORMAJOR " | awk '{print $3;}')
  6. #VER_MINOR=$(cat common/versionNumber.h | grep "VER_MAJOR " | awk '{print $3;}')
  7. #VER_PATCH=$(cat common/versionNumber.h | grep "VER_MINOR " | awk '{print $3;}')
  8. #VER_BUILD=$(cat common/versionNumber.h | grep "VER_MINORMINOR " | awk '{print $3;}')
  9. #svn ci -m "[Mod] OpenMPT: Version is now ${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}.${VER_BUILD}"
  10. build/update_libopenmpt_version.sh release
  11. svn ci -m "[Mod] libopenmpt: Prepare for release."
  12. svn up
  13. NEWVER=$(make distversion-pure)
  14. NEWREV=$(svn info --xml . | xpath -e '/info/entry/commit/@revision' -q | sed 's/revision//g' | tr '"' ' ' | tr '=' ' ' | sed 's/ //g')
  15. svn cp -m "tag libopenmpt-${NEWVER}" -r ${NEWREV} https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30 https://source.openmpt.org/svn/openmpt/tags/libopenmpt-${NEWVER}
  16. build/update_libopenmpt_version.sh bumppatch
  17. build/update_libopenmpt_version.sh bumpltrev
  18. svn ci -m "[Mod] libopenmpt: Bump patch version."
  19. #build/update_openmpt_version.sh bumpbuild
  20. #VER_MAJOR=$(cat common/versionNumber.h | grep "VER_MAJORMAJOR " | awk '{print $3;}')
  21. #VER_MINOR=$(cat common/versionNumber.h | grep "VER_MAJOR " | awk '{print $3;}')
  22. #VER_PATCH=$(cat common/versionNumber.h | grep "VER_MINOR " | awk '{print $3;}')
  23. #VER_BUILD=$(cat common/versionNumber.h | grep "VER_MINORMINOR " | awk '{print $3;}')
  24. #svn ci -m "[Mod] OpenMPT: Version is now ${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}.${VER_BUILD}"
  25. echo "ALL DONE."
  26. echo "run './release-0.6.sh $NEWVER +release' in a website checkout after buildbot has finished."