Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit335d03b

Browse files
committed
Have Makefile use git tag to sort the tags
1 parent6fb2318 commit335d03b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ clean:
88

99
release: clean
1010
# Check if latest tag is the current head we're releasing
11-
echo"Latest tag =$$(git tag| sort -nr | head -n1)"
11+
echo"Latest tag =$$(git tag-l '[0-9]*' --sort=-v:refname | head -n1)"
1212
echo"HEAD SHA =$$(git rev-parse HEAD)"
13-
echo"Latest tag SHA =$$(git tag| sort -nr | head -n1 | xargs git rev-parse)"
14-
@test"$$(git rev-parse HEAD)" ="$$(git tag| sort -nr | head -n1 | xargs git rev-parse)"
13+
echo"Latest tag SHA =$$(git tag-l '[0-9]*' --sort=-v:refname | head -n1 | xargs git rev-parse)"
14+
@test"$$(git rev-parse HEAD)" ="$$(git tag-l '[0-9]*' --sort=-v:refname | head -n1 | xargs git rev-parse)"
1515
make force_release
1616

1717
force_release: clean

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp