Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
deb84541
Commit
deb84541
authored
May 08, 2015
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".
* Makefile.in (ChangeLog): Pass -n to gitlog-to-emacslog.
parent
22e3ec2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
Makefile.in
Makefile.in
+6
-7
build-aux/gitlog-to-emacslog
build-aux/gitlog-to-emacslog
+5
-3
No files found.
Makefile.in
View file @
deb84541
...
...
@@ -1093,19 +1093,18 @@ bootstrap: bootstrap-clean
CHANGELOG
=
ChangeLog
emacslog
=
$(srcdir)
/build-aux/gitlog-to-emacslog
# The ChangeLog history files are called ChangeLog.1, ChangeLog.2, ...,
# ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX). $(CHANGELOG_N) stands for
# the newest (highest-numbered) ChangeLog history file.
CHANGELOG_HISTORY_INDEX_MAX
=
2
CHANGELOG_N
=
ChangeLog.
$(CHANGELOG_HISTORY_INDEX_MAX)
# Convert git commit log to ChangeLog file. make-dist uses this.
# I guess this is PHONY because it generates in distprefix (which is
# non-nil when called from make-dist)?
ChangeLog
:
$(AM_V_GEN)distprefix
=
$(distprefix)
srcprefix
=
$(srcdir)
/
\
$(emacslog)
-o
$(CHANGELOG)
# The ChangeLog history files are called ChangeLog.1, ChangeLog.2, ...,
# ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX). $(CHANGELOG_N) stands for
# the newest (highest-numbered) ChangeLog history file.
CHANGELOG_HISTORY_INDEX_MAX
=
2
CHANGELOG_N
=
ChangeLog.
$(CHANGELOG_HISTORY_INDEX_MAX)
$(emacslog)
-o
$(CHANGELOG)
-n
$(CHANGELOG_HISTORY_INDEX_MAX)
# Check that we are in a good state for changing history.
master-branch-is-current
:
...
...
build-aux/gitlog-to-emacslog
View file @
deb84541
...
...
@@ -26,11 +26,13 @@ export LC_ALL
gen_origin
=
2c1b8604946efbcd8ec5dd6c6dda7541ce4fc3c0
force
=
output
=
ChangeLog
nmax
=
2
while
[
$#
-gt
0
]
;
do
case
"
$1
"
in
-g
|
--gen-origin
)
gen_origin
=
"
$2
"
;
shift
;;
-f
|
--force
)
force
=
1
;;
-n
|
--nmax
)
nmax
=
"
$2
"
;
shift
;;
-o
|
--output
)
output
=
"
$2
"
;
shift
;;
*
)
echo
"Unrecognized argument:
$1
"
>
&2
;
exit
1
;;
esac
...
...
@@ -86,12 +88,12 @@ if test -s "${distprefix}ChangeLog.tmp"; then
sed
-n
'
1i\
/^See ChangeLog.
1
for earlier/,${
s/ChangeLog\.
1/ChangeLog.2
/
/^See ChangeLog.
[0-9]*
for earlier/,${
s/ChangeLog\.
[0-9]*/ChangeLog.'
$nmax
'
/
s/\(Copyright[ (C)]*\)[0-9]*-[0-9]*/\1'
"
$year_range
"
'/
p
}
'
<ChangeLog.
2
>>
"
${
distprefix
}
ChangeLog.tmp"
||
exit
'
<ChangeLog.
$nmax
>>
"
${
distprefix
}
ChangeLog.tmp"
||
exit
fi
# Install the generated ChangeLog.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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