Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
e21499ea
Commit
e21499ea
authored
May 04, 2017
by
Alexandre Duret-Lutz
Browse files
* Makefile.am (gen-ChangeLog): Generate BuDDy's ChangeLog.
parent
4b72e2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
e21499ea
...
...
@@ -71,6 +71,7 @@ EXTRA_DIST = HACKING ChangeLog.1 tools/gitlog-to-changelog \
dist-hook
:
gen-ChangeLog
gen_start
=
2012-03-10
gen_start_buddy
=
2014-02-13
.PHONY
:
gen-ChangeLog deb
gen-ChangeLog
:
if
test
-d
.git
;
then
\
...
...
@@ -78,15 +79,25 @@ gen-ChangeLog:
git log
--since
=
$(gen_start)
--pretty
=
oneline |
\
## Filter out commits whose subject start with '['. These are usually
## [buddy] or [lbtt] tags to indicate we are committing on a subproject.
grep
-v
'........................................ \['
|
\
grep
-v
'........................................ \['
|
\
## Keep the SHA1
cut
-c
1-40
|
\
## Feed all that to gitlog-to-changelog
$(top_srcdir)/tools/gitlog-to-changelog
\
$(top_srcdir)/tools/gitlog-to-changelog
\
--no-cluster
--format
=
'%s%n%n%b%n'
--
\
--stdin
--no-walk
>
$(distdir)
/cl-t
;
\
rm
-f
$(distdir)
/ChangeLog
;
\
mv
$(distdir)
/cl-t
$(distdir)
/ChangeLog
;
\
--stdin
--no-walk
>
$(distdir)
/cl-t
;
\
rm
-f
$(distdir)
/ChangeLog
;
\
mv
$(distdir)
/cl-t
$(distdir)
/ChangeLog
;
\
## Now do the same for BuDDy
git
log
--since
=
$(gen_start_buddy)
--pretty
=
oneline |
\
grep
'........................................ \[buddy\]'
|
\
cut
-c
1-40 |
\
$(top_srcdir)
/tools/gitlog-to-changelog
\
--no-cluster
--format
=
'%s%n%n%b%n'
--
\
--stdin
--no-walk
|
\
sed
's/^ \[buddy\] / /g'
>
$(distdir)
/cl-t
;
\
rm
-f
$(distdir)
/buddy/ChangeLog
;
\
mv
$(distdir)
/cl-t
$(distdir)
/buddy/ChangeLog
;
\
fi
# Build Debian packages.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment