diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-07-25 15:36:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-07-25 15:36:17 +0300 |
commit | f1afd377c55f948f685ddfa2f668491fb4f9b021 (patch) | |
tree | 36a743e4c1ab3c9cc78db0893e6c11ce931412d5 | |
parent | c59f619e101464874ba1535c7a2bed42306b5866 (diff) | |
download | fileserv-f1afd377c55f948f685ddfa2f668491fb4f9b021.tar.gz fileserv-f1afd377c55f948f685ddfa2f668491fb4f9b021.tar.bz2 |
Add NEWS and automatically generated ChangeLog file.
* GNUmakefile: New file.
* NEWS: New file.
* git2clog.pl: New file.
* Makefile.am: Distribute the ChangeLog file
* README: Update.
* configure.ac: Raise version number.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | GNUmakefile | 17 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | NEWS | 56 | ||||
-rw-r--r-- | README | 5 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | git2clog.pl | 77 |
7 files changed, 160 insertions, 5 deletions
@@ -7,2 +7,3 @@ | |||
7 | .gdbinit | 7 | .gdbinit |
8 | ChangeLog | ||
8 | Makefile | 9 | Makefile |
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..c36f6cd --- /dev/null +++ b/GNUmakefile | |||
@@ -0,0 +1,17 @@ | |||
1 | ifneq (,$(wildcard Makefile)) | ||
2 | include Makefile | ||
3 | |||
4 | .PHONY: ChangeLog | ||
5 | ChangeLog: | ||
6 | @perl ./git2clog.pl | ||
7 | |||
8 | else | ||
9 | $(if $(MAKECMDGOALS),$(MAKECMDGOALS),all): Makefile | ||
10 | $(MAKE) $(MAKECMDGOALS) | ||
11 | |||
12 | Makefile: Makefile.am configure | ||
13 | ./configure | ||
14 | |||
15 | configure: configure.ac | ||
16 | autoreconf -f -i -s | ||
17 | endif | ||
diff --git a/Makefile.am b/Makefile.am index 2bd6172..b7478fb 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,3 +1,4 @@ | |||
1 | EXTRA_DIST=README wordsplit/wordsplit.c wordsplit/wordsplit.h | 1 | EXTRA_DIST=README ChangeLog wordsplit/wordsplit.c wordsplit/wordsplit.h |
2 | SUBDIRS = mimetypes src | 2 | SUBDIRS = mimetypes src |
3 | distuninstallcheck_listfiles = find . -type f -not -name 'fileserv.conf' -print | 3 | distuninstallcheck_listfiles = find . -type f -not -name 'fileserv.conf' -print |
4 | |||
@@ -0,0 +1,56 @@ | |||
1 | fileserv -- history of user-visible changes. 2019-07-25 | ||
2 | See the end of file for copying conditions. | ||
3 | |||
4 | Please send fileserv bug reports to <gray+fileserv@gnu.org.ua> | ||
5 | |||
6 | Version 0.3.90 (git) | ||
7 | |||
8 | Version 0.3, 2018-04-21 | ||
9 | |||
10 | * Global configuration file | ||
11 | |||
12 | * Per-directory configuration files. | ||
13 | |||
14 | * MIME type autodetection | ||
15 | |||
16 | * Auto-generated directory indexes | ||
17 | |||
18 | Index pages are generated from user-supplied templates. In the absense | ||
19 | of these, the built-in template is used. | ||
20 | |||
21 | * Listen on all available IP addresses if none is set explicitly | ||
22 | |||
23 | * Configurable HTTP status handling | ||
24 | |||
25 | * Handle IPv4 mapped addresses | ||
26 | |||
27 | Version 0.2, 2017-10-26 | ||
28 | |||
29 | Initial release. | ||
30 | |||
31 | |||
32 | ========================================================================= | ||
33 | Copyright information: | ||
34 | |||
35 | Copyright (C) 2017-2019 Sergey Poznyakoff | ||
36 | |||
37 | Permission is granted to anyone to make or distribute verbatim copies | ||
38 | of this document as received, in any medium, provided that the | ||
39 | copyright notice and this permission notice are preserved, | ||
40 | thus giving the recipient permission to redistribute in turn. | ||
41 | |||
42 | Permission is granted to distribute modified versions | ||
43 | of this document, or of portions of it, | ||
44 | under the above conditions, provided also that they | ||
45 | carry prominent notices stating who last changed them. | ||
46 | |||
47 | Local variables: | ||
48 | mode: outline | ||
49 | paragraph-separate: "[ ]*$" | ||
50 | eval: (add-hook 'write-file-hooks 'time-stamp) | ||
51 | time-stamp-start: "changes. " | ||
52 | time-stamp-format: "%:y-%02m-%02d" | ||
53 | time-stamp-end: "\n" | ||
54 | end: | ||
55 | |||
56 | |||
@@ -1 +1,4 @@ | |||
1 | fileserv README. | ||
2 | See the end of file for copying conditions. | ||
3 | |||
1 | * Overview | 4 | * Overview |
@@ -98,3 +101,3 @@ Send bug reports to <gray+fileserv@gnu.org.ua>. | |||
98 | 101 | ||
99 | Copyright (C) 2017-2018 Sergey Poznyakoff | 102 | Copyright (C) 2017-2019 Sergey Poznyakoff |
100 | 103 | ||
diff --git a/configure.ac b/configure.ac index a3cfc01..c549892 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2,3 +2,3 @@ | |||
2 | # This file is part of fileserv. | 2 | # This file is part of fileserv. |
3 | # Copyright (C) 2017, 2018 Sergey Poznyakoff | 3 | # Copyright (C) 2017-2019 Sergey Poznyakoff |
4 | # | 4 | # |
@@ -17,5 +17,5 @@ | |||
17 | 17 | ||
18 | AC_INIT([fileserv], 0.3, [gray+fileserv@gnu.org.ua]) | 18 | AC_INIT([fileserv], 0.3.90, [gray+fileserv@gnu.org.ua]) |
19 | AC_CONFIG_SRCDIR([src/fileserv.c]) | 19 | AC_CONFIG_SRCDIR([src/fileserv.c]) |
20 | AM_INIT_AUTOMAKE([1.11 foreign tar-ustar dist-xz silent-rules]) | 20 | AM_INIT_AUTOMAKE([1.15 foreign tar-ustar dist-xz silent-rules]) |
21 | # Enable silent rules by default: | 21 | # Enable silent rules by default: |
diff --git a/git2clog.pl b/git2clog.pl new file mode 100644 index 0000000..de93e3d --- /dev/null +++ b/git2clog.pl | |||
@@ -0,0 +1,77 @@ | |||
1 | # Pretty simple ChangeLog generator -*-perl-*- | ||
2 | # Copyright (C) 2019 Sergey Poznyakoff | ||
3 | # Distributed under the terms of the GNU General Public License, either | ||
4 | # version 3, or (at your option) any later version. See file COPYING | ||
5 | # for the text of the license. | ||
6 | use strict; | ||
7 | use warnings; | ||
8 | |||
9 | my $name = shift @ARGV || 'ChangeLog'; | ||
10 | my $outfile = "$name.$$"; | ||
11 | |||
12 | END { | ||
13 | if (-f $outfile) { | ||
14 | unlink $outfile | ||
15 | } | ||
16 | } | ||
17 | |||
18 | my $header; | ||
19 | |||
20 | die "must be run in a cloned source tree\n" unless -d '.git'; | ||
21 | |||
22 | if (-f $name) { | ||
23 | open(FH, '<', $name) | ||
24 | or die "can't open $name for reading: $!\n"; | ||
25 | chomp($header = <FH>); | ||
26 | close FH | ||
27 | } | ||
28 | |||
29 | open(STDIN, '-|', | ||
30 | q{git log --pretty='format:<%ci>%an <%ae>%n%n%s%n%n%b%n'}) | ||
31 | or die "can't run git: $!\n"; | ||
32 | |||
33 | open(STDOUT, '>', $outfile) | ||
34 | or die "can't open temporary file\n"; | ||
35 | |||
36 | my $nl = 0; | ||
37 | while (<>) { | ||
38 | chomp; | ||
39 | if (/^\s*$/) { | ||
40 | $nl++; | ||
41 | } else { | ||
42 | if ($nl) { | ||
43 | print "\n"; | ||
44 | $nl = 0; | ||
45 | } | ||
46 | if (s/^<([\d-]+) .*?>(.*)/$1 $2/) { | ||
47 | if (defined($header)) { | ||
48 | if ($_ eq $header) { | ||
49 | exit(0) | ||
50 | } | ||
51 | $header = undef | ||
52 | } | ||
53 | } else { | ||
54 | print "\t"; | ||
55 | } | ||
56 | print "$_\n"; | ||
57 | } | ||
58 | } | ||
59 | |||
60 | print "\f\nLocal Variables:\n"; | ||
61 | print <<'EOT'; | ||
62 | mode: change-log | ||
63 | version-control: never | ||
64 | buffer-read-only: t | ||
65 | End: | ||
66 | EOT | ||
67 | ; | ||
68 | |||
69 | close STDOUT; | ||
70 | if (-f $name) { | ||
71 | unlink $name or die "can't unlink $name: $!\n"; | ||
72 | } | ||
73 | rename $outfile, $name or die "can't rename $outfile to $name: $!\n"; | ||
74 | |||
75 | |||
76 | |||
77 | |||