From 47e651558afd476a7b62bfac580b164e470dcb3c Mon Sep 17 00:00:00 2001 From: Mark Wilkins Date: Mon, 3 Jul 2023 20:17:43 -0600 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- install/buildinst.sh | 2 +- install/updateversion.sh | 31 +++++++++++++++++++++++++++++++ src/AboutBox.cpp | 2 +- src/AboutBox.h | 2 +- src/ChordClipper.cpp | 2 +- src/ChordClipper.h | 2 +- src/ChordName.cpp | 2 +- src/ChordName.h | 2 +- src/ChordView.cpp | 2 +- src/ChordView.h | 2 +- src/MidiStore.cpp | 2 +- src/MidiStore.h | 2 +- src/OptionsComponent.cpp | 2 +- src/OptionsComponent.h | 2 +- 15 files changed, 45 insertions(+), 14 deletions(-) create mode 100755 install/updateversion.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c955b2..0c7f94a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/install/buildinst.sh b/install/buildinst.sh index d3321c2..86d54a6 100755 --- a/install/buildinst.sh +++ b/install/buildinst.sh @@ -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 diff --git a/install/updateversion.sh b/install/updateversion.sh new file mode 100755 index 0000000..5acc95d --- /dev/null +++ b/install/updateversion.sh @@ -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 diff --git a/src/AboutBox.cpp b/src/AboutBox.cpp index b1aabb4..95f03d5 100644 --- a/src/AboutBox.cpp +++ b/src/AboutBox.cpp @@ -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 * diff --git a/src/AboutBox.h b/src/AboutBox.h index 4198b05..6709901 100644 --- a/src/AboutBox.h +++ b/src/AboutBox.h @@ -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 * diff --git a/src/ChordClipper.cpp b/src/ChordClipper.cpp index 83aaf7a..4de9841 100644 --- a/src/ChordClipper.cpp +++ b/src/ChordClipper.cpp @@ -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 * diff --git a/src/ChordClipper.h b/src/ChordClipper.h index 297a7b3..ea5e777 100644 --- a/src/ChordClipper.h +++ b/src/ChordClipper.h @@ -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 * diff --git a/src/ChordName.cpp b/src/ChordName.cpp index ee563ef..c539ebc 100644 --- a/src/ChordName.cpp +++ b/src/ChordName.cpp @@ -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 * diff --git a/src/ChordName.h b/src/ChordName.h index 93f4b7b..ddd1c3a 100644 --- a/src/ChordName.h +++ b/src/ChordName.h @@ -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 * diff --git a/src/ChordView.cpp b/src/ChordView.cpp index 769ecbe..746a79e 100644 --- a/src/ChordView.cpp +++ b/src/ChordView.cpp @@ -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 * diff --git a/src/ChordView.h b/src/ChordView.h index 7b78bec..04b0523 100644 --- a/src/ChordView.h +++ b/src/ChordView.h @@ -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 * diff --git a/src/MidiStore.cpp b/src/MidiStore.cpp index 174338c..8fcecec 100644 --- a/src/MidiStore.cpp +++ b/src/MidiStore.cpp @@ -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 * diff --git a/src/MidiStore.h b/src/MidiStore.h index e2f42ee..802dbdf 100644 --- a/src/MidiStore.h +++ b/src/MidiStore.h @@ -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 * diff --git a/src/OptionsComponent.cpp b/src/OptionsComponent.cpp index 97579c9..5118d88 100644 --- a/src/OptionsComponent.cpp +++ b/src/OptionsComponent.cpp @@ -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 * diff --git a/src/OptionsComponent.h b/src/OptionsComponent.h index 8354a65..af19ca9 100644 --- a/src/OptionsComponent.h +++ b/src/OptionsComponent.h @@ -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 *