Skip to content

Commit

Permalink
Make the version number a simple variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joergboe committed Dec 13, 2024
1 parent 3d4b093 commit 3e0d6fd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build_release_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare -r releasedir='releases'
declare -r docdir='doc'
declare -r mks='mktsimple'

temp="$(grep "${mks}_version =" share/mktsimple/one_to_one_cpp.mk)"
temp="$(grep "${mks}_version :=" share/mktsimple/one_to_one_cpp.mk)" || { echo "ERROR: No version" >&2; exit 1; }
release_version="${temp##* }"

echo
Expand All @@ -25,7 +25,7 @@ while [[ ("${response}" != 'y') && ("${response}" != 'yes') ]]; do
done

for x in in_place_cpp.mk out_place_c.mk out_place_cpp.mk out_place.mk; do
temp="$(grep "${mks}_version =" share/mktsimple/${x})"
temp="$(grep "${mks}_version :=" share/mktsimple/${x})" || { echo "ERROR: No version in ${x}" >&2; exit 1; }
release_version_x="${temp##* }"
if [[ "${release_version}" != "${release_version_x}" ]]; then
echo "ERROR: Version info ${release_version_x} of ${x} does not match!" >&2
Expand Down
2 changes: 1 addition & 1 deletion share/mktsimple/in_place_cpp.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version
mktsimple_version = 4.2.1
mktsimple_version := 4.2.1
# Prepare the help string if required
ifneq (,$(findstring help,$(MAKECMDGOALS)))
define helpstring =
Expand Down
2 changes: 1 addition & 1 deletion share/mktsimple/one_to_one_cpp.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version
mktsimple_version = 4.2.1
mktsimple_version := 4.2.1
# Prepare the help string if required
ifneq (,$(findstring help,$(MAKECMDGOALS)))
define helpstring =
Expand Down
2 changes: 1 addition & 1 deletion share/mktsimple/out_place.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version
mktsimple_version = 4.2.1
mktsimple_version := 4.2.1
# Prepare the help string if required
ifneq (,$(findstring help,$(MAKECMDGOALS)))
define helpstring =
Expand Down
2 changes: 1 addition & 1 deletion share/mktsimple/out_place_c.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version
mktsimple_version = 4.2.1
mktsimple_version := 4.2.1
# Prepare the help string if required
ifneq (,$(findstring help,$(MAKECMDGOALS)))
define helpstring =
Expand Down
2 changes: 1 addition & 1 deletion share/mktsimple/out_place_cpp.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version
mktsimple_version = 4.2.1
mktsimple_version := 4.2.1
# Prepare the help string if required
ifneq (,$(findstring help,$(MAKECMDGOALS)))
define helpstring =
Expand Down

0 comments on commit 3e0d6fd

Please sign in to comment.