all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 8ea8112e1fb32218af7ed56dc58dd5aee1022502 1599 bytes (raw)
name: build-aux/gitlog-to-emacslog 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
#!/bin/sh

# Convert git log output to ChangeLog format for GNU Emacs.

# Copyright (C) 2014 Free Software Foundation, Inc.

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

LC_ALL=C
export LC_ALL

gen_origin=${1?}
shift

if test -d ${srcprefix}.git; then
  gen_origin_date=`git log --pretty=format:%ci "$gen_origin"^! ` || exit
  gen_start_year=`expr "$gen_origin_date" : '\([^-]*\)'` || exit
  log_fix="${srcprefix}build-aux/git-log-fix"
  test -e "$log_fix" && set -- "$@" --amend="$log_fix"

  ${srcprefix}build-aux/gitlog-to-changelog "$@" $gen_origin^.. \
    > ${distprefix}cl-t || exit

  gen_end_year=`sed 's/-.*//; q' ${distprefix}cl-t`
  if test "$gen_start_year" = "$gen_end_year"; then
    year_range=$gen_start_year
  else
    year_range=$gen_start_year-$gen_end_year
  fi

  sed "1d
       s/Copyright (C) [0-9]*-[0-9]*/Copyright (C) $year_range/
       s/^# //
       /http:/q
  " Makefile.in >>${distprefix}cl-t &&
  rm -f ${distprefix}ChangeLog &&
  mv ${distprefix}cl-t ${distprefix}ChangeLog
fi

debug log:

solving 8ea8112 ...
found 8ea8112 in https://yhetil.org/emacs/54B379E5.8000609@cs.ucla.edu/

applying [1/1] https://yhetil.org/emacs/54B379E5.8000609@cs.ucla.edu/
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog
new file mode 100755
index 0000000..8ea8112

Checking patch build-aux/gitlog-to-emacslog...
Applied patch build-aux/gitlog-to-emacslog cleanly.

skipping https://yhetil.org/emacs/54B379E5.8000609@cs.ucla.edu/ for 8ea8112
index at:
100755 8ea8112e1fb32218af7ed56dc58dd5aee1022502	build-aux/gitlog-to-emacslog

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.