-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
c4b6c3b
commit 599a222
Showing
9 changed files
with
310 additions
and
327 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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
#!/bin/sh | ||
|
||
new_version=$1 | ||
version_file="change" | ||
version_file='change' | ||
|
||
[ ! -e $version_file ] && | ||
{ echo "$version_file not found in current directory"; exit 1; } | ||
[ ! -f $version_file ] && echo "$version_file not found in current directory" >&2 && exit 1 | ||
|
||
sed -i.backup "s|\(^change_version=\"\).*\(\"$\)|\1$new_version\2|" $version_file && | ||
rm "${version_file}.backup" && | ||
git add "$version_file" && | ||
{ echo "success - changed version to $new_version"; exit 0; } | ||
sed -E -i.backup "s,^(version=\").*(\")$,\1$new_version\2," "$version_file" && | ||
rm "$version_file.backup" && git add "$version_file" && | ||
echo "success: changed version to $new_version" && exit | ||
|
||
echo "failure - something when wrong" | ||
echo "failure: something when wrong" >&2 | ||
exit 1 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
couldn't find CHANGELOG.md | ||
could not find CHANGELOG.md |
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 |
---|---|---|
@@ -1 +1 @@ | ||
the current directory doesn't contain .git | ||
the current directory does not contain .git |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
the current directory doesn't contain .git | ||
the current directory does not contain .git |
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 |
---|---|---|
@@ -1 +1 @@ | ||
couldn't find any valid version tags | ||
could not find any valid version tags |
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 |
---|---|---|
@@ -1 +1 @@ | ||
remote url isn't set for this repo | ||
remote url is not set for this repo |