Skip to content

Commit

Permalink
update version to 0.8.1, add version script (#17)
Browse files Browse the repository at this point in the history
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
markwilkins and Mark Wilkins committed Jul 4, 2023
1 parent 321045b commit 47e6515
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15)

project(MidiChords VERSION 0.8.0)
project(MidiChords VERSION 0.8.1)

# Generate the config file that contains the version info
configure_file(src/MidiChordsConfig.h.in MidiChordsConfig.h)
Expand Down
2 changes: 1 addition & 1 deletion install/buildinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# https://forum.juce.com/t/vst-installer/16654/15?page=2

name="MidiChords"
version="0.8.0"
version="0.8.1"

mkdir au
cp -R ~/Library/Audio/Plug-Ins/Components/$name.component au
Expand Down
31 changes: 31 additions & 0 deletions install/updateversion.sh
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
2 changes: 1 addition & 1 deletion src/AboutBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file AboutBox.cpp
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/AboutBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @file AboutBox.h
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/ChordClipper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file ChordClipper.cpp
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/ChordClipper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file ChordClipper.h
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/ChordName.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file ChordName.cpp
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/ChordName.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file ChordName.h
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/ChordView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file ChordView.cpp
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/ChordView.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file ChordView.h
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/MidiStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file MidiStore.cpp
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/MidiStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file MidiStore.h
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/OptionsComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file OptionsComponent.cpp
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/OptionsComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file OptionsComponent.h
* @author Mark Wilkins
* @brief Part of MidiChords project (plugin to display chord names from a MIDI track on playback)
* @version 0.1
* @version 0.8.1
*
* @copyright Copyright (c) 2023
*
Expand Down

0 comments on commit 47e6515

Please sign in to comment.