-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
if [ -z $1 ]; then | ||
echo "USAGE: $0 <new_patch_version>" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
NEWVERSION="$1" | ||
echo "Updating version to '2.0.$NEWVERSION' ..." | ||
|
||
# !!! FIXME: update all of these. | ||
|
||
perl -w -pi -e 's/(SDLSOUND_VERSION 2\.0\.)\d+/${1}'$NEWVERSION'/;' CMakeLists.txt | ||
perl -w -pi -e 's/(VERSION = 2\.0\.)\d+/${1}'$NEWVERSION'/;' src/Makefile.os2 | ||
perl -w -pi -e 's/(\#define SOUND_VER_PATCH )\d+/${1}'$NEWVERSION'/;' src/SDL_sound.h | ||
perl -w -pi -e 's/(FILEVERSION 2,0,)\d+/${1}'$NEWVERSION'/;' src/version.rc | ||
perl -w -pi -e 's/(PRODUCTVERSION 2,0,)\d+/${1}'$NEWVERSION'/;' src/version.rc | ||
perl -w -pi -e 's/(VALUE "FileVersion", "2, 0, )\d+/${1}'$NEWVERSION'/;' src/version.rc | ||
perl -w -pi -e 's/(VALUE "ProductVersion", "2, 0, )\d+/${1}'$NEWVERSION'/;' src/version.rc | ||
|
||
echo "All done." | ||
echo "Run 'git diff' and make sure this looks correct before 'git commit'." | ||
|
||
exit 0 | ||
|