Skip to content

Commit

Permalink
New patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed May 18, 2021
1 parent fc5bfbf commit 057d83d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,6 @@ Syntastic settings for ViM and NeoVim:

## General info

* Version: 3.2.6
* Version: 3.2.7
* License: BSD-3
* Author: Alexander F. Rødseth <[email protected]>
2 changes: 1 addition & 1 deletion system/homebrew/cxx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class CXX < Formula
desc "Configuration-free build system for C++20 executables"
homepage "https://github.com/xyproto/cxx"
url "https://github.com/xyproto/cxx.git",
:tag => "3.2.6",
:tag => "3.2.7",
:revision => "asdf"
sha256 "asdf"
version_scheme 1
Expand Down
23 changes: 23 additions & 0 deletions version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh -e
#
# Self-modifying script that updates the version numbers
#

# The current version goes here, as the default value
VERSION=${1:-'3.2.7'}

if [ -z "$1" ]; then
echo "The current version is $VERSION, pass the new version as the first argument if you wish to change it"
exit 0
fi

echo "Setting the version to $VERSION"

# Set the version in various files
setconf README.md '* Version' $VERSION

# Update the date and version in the man page
sed -i "s/[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*/$VERSION/g" system/homebrew/cxx.rb

# Update the version in this script
sed -i "s/[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*/$VERSION/g" "$0"

0 comments on commit 057d83d

Please sign in to comment.