-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2305 from zephir-lang/development
0.15.0
- Loading branch information
Showing
163 changed files
with
2,675 additions
and
2,632 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This file is part of the Zephir. | ||
# | ||
# (c) Zephir Team <[email protected]> | ||
# | ||
# For the full copyright and license information, please view | ||
# the LICENSE file that was distributed with this source code. | ||
|
||
# shellcheck disable=SC2002 | ||
|
||
# -e Exit immediately if a command exits with a non-zero status. | ||
# -u Treat unset variables as an error when substituting. | ||
|
||
set -eu | ||
set -o pipefail | ||
|
||
# Get Release notes for the latest release from CHANGELOG.md | ||
# How to use: | ||
# release-notes.sh CHANGELOG.md > ReleaseNotes.md | ||
|
||
|
||
startline=$(cat "$1" | grep -nE '^### ' | head -n 1 | cut -d ":" -f 1) | ||
finishline=$(($(cat "$1" | grep -nE '^## \[[0-9]+' | head -n 2 | tail -n 1 | cut -d ":" -f 1) - 1)) | ||
changelog=$(sed -n "${startline},${finishline}p" "$1"); | ||
|
||
echo "${changelog}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.