Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sinologie Anki Pack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
kartenaale
Sinologie Anki Pack
Commits
6df43fe2
Commit
6df43fe2
authored
10 months ago
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
chore: support other git dir for changelogs
parent
2545166f
No related branches found
No related tags found
1 merge request
!133
Feat/external build
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
make/changelogs.mk
+3
-3
3 additions, 3 deletions
make/changelogs.mk
with
3 additions
and
3 deletions
make/changelogs.mk
+
3
−
3
View file @
6df43fe2
# from newest to oldest, stop at LAST_RELEVANT_VERSION
LAST_RELEVANT_VERSION
:
=
1.1.13
LAST_RELEVANT_VERSION
?
=
1.1.13
# get all versions from shell and drop all that are older than LAST_RELEVANT_VERSION
# this variable gets expaneded every time it is used, so fetching git tags will change it
GIT_VERSIONS
=
HEAD
$(
shell git tag
--sort
=
-v
:refname |
awk
'1;/
$(
LAST_RELEVANT_VERSION
)
/{exit
}
'
)
...
...
@@ -11,7 +11,7 @@ GIT_VERSION_RANGES = $(join \
# files that will change if we fetch new tags => if anything is changed,
# we rebuild all changelogs (in case the history was rewritten somehow)
# deferred in case we do a fetch first
GIT_TAG_FILES
=
$(
wildcard
.git/refs/tags/
*
)
.git/packed-refs
GIT_TAG_FILES
=
$(
wildcard
$(
and
$(
GIT_DIR
)
,
$(
GIT_DIR
)
/
)
.git/refs/tags/
*
)
$(
and
$(
GIT_DIR
)
,
$(
GIT_DIR
)
/
)
.git/packed-refs
VER_CHANGELOGS_MARKDOWN
:=
$(
foreach VER,
$(
GIT_VERSIONS
)
,
\
$(
BUILD_PREFIX
)
CHANGELOG-
$(
VER
)
.md
)
VER_CHANGELOGS_HTML
:=
$(
foreach VER,
$(
GIT_VERSIONS
)
,
\
...
...
@@ -57,7 +57,7 @@ changelog-head-html: $(firstword $(VER_CHANGELOGS_HTML))
$(COMBINED_CHANGELOG_MARKDOWN)
:
$(VER_CHANGELOGS_MARKDOWN)
# omit unpublished from combined changelog
cat
$(VER_CHANGELOGS_HTML_IN_COMBINED)
>
$(COMBINED_CHANGELOG_MARKDOWN)
$(
if
$(
strip
$(
VER_CHANGELOGS_HTML_IN_COMBINED
))
,
cat
$(
VER_CHANGELOGS_HTML_IN_COMBINED
)
,echo No versions yet
)
>
$(COMBINED_CHANGELOG_MARKDOWN)
GIT_LOG_FORMAT
:=
\#\#
%B
CHANGELOG_VERSION
=
$(
patsubst
$(
BUILD_PREFIX
)
CHANGELOG-%.md,%,
$@
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment