-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> |
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,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" |