passepartout-apple/ci/latest-changelog.sh
Davide De Rosa fd7a75af5c Infer beta changelog for TestFlight
Pick changes from latest release.
2019-04-07 17:49:14 +02:00

7 lines
224 B
Bash
Executable File

#!/bin/sh
TARGET="CHANGELOG.md"
RELEASES=(`grep -n "^## " $TARGET | sed -E "s/^([0-9]+).*$/\1/g"`)
UNRELEASED=${RELEASES[0]}
LATEST=${RELEASES[1]}
cat $TARGET | head -n $((LATEST - 1)) | tail -n $((LATEST - UNRELEASED - 2))