mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 09:40:19 +01:00
tools: Allow versions to either have a v prefix or not
Sometimes it's v0.9.3 and sometimes it's 0.9.3, and I always get it wrong. This is painful when you have to create a signed tag after committing to one of the two only to find out you chose wrong and have to redo the tagging.
This commit is contained in:
parent
25a7bf6aa3
commit
46cd5d8923
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ if [ "$VERSION" = "" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Skip 'v' here in $VERSION
|
# Skip 'v' here in $VERSION
|
||||||
MTIME=${FORCE_MTIME:-$(sed -n "s/^## \\[${VERSION#v}\\] - \\([-0-9]*\\).*/\\1/p" < CHANGELOG.md)}
|
MTIME=${FORCE_MTIME:-$(sed -n "s/^## \\[.*${VERSION#v}\\] - \\([-0-9]*\\).*/\\1/p" < CHANGELOG.md)}
|
||||||
if [ -z "$MTIME" ]; then
|
if [ -z "$MTIME" ]; then
|
||||||
echo "No date found for $VERSION in CHANGELOG.md" >&2
|
echo "No date found for $VERSION in CHANGELOG.md" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue