build-scripts: Added update-version.sh

Fixes #6171.
This commit is contained in:
Ryan C. Gordon
2022-09-27 22:03:26 -04:00
parent a2c5757356
commit 8e14647759
2 changed files with 97 additions and 46 deletions

View File

@@ -4,27 +4,10 @@
* Update `WhatsNew.txt`
* Bump version number to 2.EVEN.0 in all these locations:
* Bump version number to 2.EVEN.0:
* `configure.ac`, `CMakeLists.txt`: `SDL_*_VERSION`
* `Xcode/SDL/Info-Framework.plist`: `CFBundleShortVersionString`,
`CFBundleVersion`
* `Makefile.os2`: `VERSION`
* `Makefile.w32`: `*_VERSION`
* `include/SDL_version.h`: `SDL_*_VERSION`, `SDL_PATCHLEVEL`
* `src/main/windows/version.rc`: `FILEVERSION`, `PRODUCTVERSION`,
`FileVersion`, `ProductVersion`
* Bump ABI version information
* `Xcode/SDL/SDL.xcodeproj/project.pbxproj`:
`DYLIB_CURRENT_VERSION`, `DYLIB_COMPATIBILITY_VERSION`
* set first number in `DYLIB_CURRENT_VERSION` to
(100 * *minor*) + 1
* set second number in `DYLIB_CURRENT_VERSION` to 0
* set `DYLIB_COMPATIBILITY_VERSION` to the same value
* Regenerate `configure`
* `./build-scripts/update-version.sh 2 EVEN 0`
* (spaces between each component of the version, and `EVEN` will be a real number in real life.
* Run test/versioning.sh to verify that everything is consistent
@@ -38,16 +21,8 @@
* Bump version number from 2.Y.Z to 2.Y.(Z+1) (Y is even)
* Same places as listed above
* Bump ABI version information
* `Xcode/SDL/SDL.xcodeproj/project.pbxproj`:
`DYLIB_CURRENT_VERSION`, `DYLIB_COMPATIBILITY_VERSION`
* set second number in `DYLIB_CURRENT_VERSION` to *patchlevel*
* Leave `DYLIB_COMPATIBILITY_VERSION` unchanged
* Regenerate `configure`
* `./build-scripts/update-version.sh 2 Y Z+1`
* (spaces between each component of the version, and `Y` and `Z+1` will be real numbers in real life.
* Run test/versioning.sh to verify that everything is consistent
@@ -59,12 +34,8 @@
* Bump version number to 2.ODD.0 for next development branch
* Same places as listed above
* Bump ABI version information
* Same places as listed above
* Assume that the next feature release will contain new API/ABI
* `./build-scripts/update-version.sh 2 ODD 0`
* (spaces between each component of the version, and `ODD` will be a real number in real life.
* Run test/versioning.sh to verify that everything is consistent
@@ -72,16 +43,8 @@
* Bump version number from 2.Y.Z to 2.Y.(Z+1) (Y is odd)
* Same places as listed above
* Bump ABI version information
* `Xcode/SDL/SDL.xcodeproj/project.pbxproj`:
`DYLIB_CURRENT_VERSION`, `DYLIB_COMPATIBILITY_VERSION`
* set first number in `DYLIB_CURRENT_VERSION` to
(100 * *minor*) + *patchlevel* + 1
* set second number in `DYLIB_CURRENT_VERSION` to 0
* set `DYLIB_COMPATIBILITY_VERSION` to the same value
* `./build-scripts/update-version.sh 2 Y Z+1`
* (spaces between each component of the version, and `Y` and `Z+1` will be real numbers in real life.
* Regenerate `configure`