-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update version to 0.8.1, add version script (#17)
A little bit out of order, but bumping version. Included a script to make this a bit more consistent the next time. Fix coming next to remove the concurrency unsafe debug code. --------- Co-authored-by: Mark Wilkins <markwilkins@github.com>
- Loading branch information
1 parent
321045b
commit 47e6515
Showing
15 changed files
with
45 additions
and
14 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
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
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,31 @@ | ||
#!/bin/bash | ||
|
||
usage="usage: updateversion oldver newver" | ||
|
||
[[ -z "$1" ]] && { echo "$usage" ; exit 1; } | ||
[[ -z "$2" ]] && { echo "$usage" ; exit 1; } | ||
|
||
# escape the period separators on the input | ||
oldversion=$(echo "$1" | sed -e "s/\./\\\./g") | ||
newversion=$2 | ||
|
||
# Do the source files | ||
sedscript="s/^\( *\* *@version *\)$oldversion *$/\1$newversion/" | ||
# echo "$sedscript" | ||
pushd . | ||
cd ../src | ||
sed -i.bak -e "$sedscript" *.cpp | ||
sed -i.bak -e "$sedscript" *.h | ||
rm *.bak | ||
popd | ||
|
||
# cmakefile | ||
sedscript="s/^\(project(MidiChords VERSION \)$oldversion) *$/\1$newversion)/" | ||
sed -i.bak -e "$sedscript" ../CMakeLists.txt | ||
rm ../CMakeLists.txt.bak | ||
|
||
# build script | ||
#version="0.8.0" | ||
sedscript="s/^version=\"$oldversion\"/version=\"$newversion\"/" | ||
sed -i.bak -e "$sedscript" buildinst.sh | ||
rm buildinst.sh.bak |
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
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
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
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
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
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
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
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
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
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
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
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