summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--GNUmakefile17
-rw-r--r--Makefile.am3
-rw-r--r--NEWS56
-rw-r--r--README5
-rw-r--r--configure.ac6
-rw-r--r--git2clog.pl77
7 files changed, 160 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index a0f510d..67695fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@
5*.l[oa] 5*.l[oa]
6.emacs* 6.emacs*
7.gdbinit 7.gdbinit
8ChangeLog
8Makefile 9Makefile
9Makefile.in 10Makefile.in
10aclocal.m4 11aclocal.m4
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..c36f6cd
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,17 @@
1ifneq (,$(wildcard Makefile))
2 include Makefile
3
4.PHONY: ChangeLog
5ChangeLog:
6 @perl ./git2clog.pl
7
8else
9$(if $(MAKECMDGOALS),$(MAKECMDGOALS),all): Makefile
10 $(MAKE) $(MAKECMDGOALS)
11
12Makefile: Makefile.am configure
13 ./configure
14
15configure: configure.ac
16 autoreconf -f -i -s
17endif
diff --git a/Makefile.am b/Makefile.am
index 2bd6172..b7478fb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,4 @@
1EXTRA_DIST=README wordsplit/wordsplit.c wordsplit/wordsplit.h 1EXTRA_DIST=README ChangeLog wordsplit/wordsplit.c wordsplit/wordsplit.h
2SUBDIRS = mimetypes src 2SUBDIRS = mimetypes src
3distuninstallcheck_listfiles = find . -type f -not -name 'fileserv.conf' -print 3distuninstallcheck_listfiles = find . -type f -not -name 'fileserv.conf' -print
4
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..a2efa25
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,56 @@
1fileserv -- history of user-visible changes. 2019-07-25
2See the end of file for copying conditions.
3
4Please send fileserv bug reports to <gray+fileserv@gnu.org.ua>
5
6Version 0.3.90 (git)
7
8Version 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
18Index pages are generated from user-supplied templates. In the absense
19of 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
27Version 0.2, 2017-10-26
28
29Initial release.
30
31
32=========================================================================
33Copyright information:
34
35Copyright (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
47Local variables:
48mode: outline
49paragraph-separate: "[ ]*$"
50eval: (add-hook 'write-file-hooks 'time-stamp)
51time-stamp-start: "changes. "
52time-stamp-format: "%:y-%02m-%02d"
53time-stamp-end: "\n"
54end:
55
56
diff --git a/README b/README
index 3311986..bc2ac0d 100644
--- a/README
+++ b/README
@@ -1,3 +1,6 @@
1fileserv README.
2See the end of file for copying conditions.
3
1* Overview 4* Overview
2 5
3This is a simple HTTP server for serving static files. It is suitable 6This is a simple HTTP server for serving static files. It is suitable
@@ -96,7 +99,7 @@ Send bug reports to <gray+fileserv@gnu.org.ua>.
96 99
97* Copyright information: 100* Copyright information:
98 101
99Copyright (C) 2017-2018 Sergey Poznyakoff 102Copyright (C) 2017-2019 Sergey Poznyakoff
100 103
101 Permission is granted to anyone to make or distribute verbatim copies 104 Permission is granted to anyone to make or distribute verbatim copies
102 of this document as received, in any medium, provided that the 105 of this document as received, in any medium, provided that the
diff --git a/configure.ac b/configure.ac
index a3cfc01..c549892 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
1# -*- Autoconf -*- 1# -*- Autoconf -*-
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#
5# Fileserv is free software; you can redistribute it and/or modify 5# Fileserv is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by 6# it under the terms of the GNU General Public License as published by
@@ -15,9 +15,9 @@
15# You should have received a copy of the GNU General Public License 15# You should have received a copy of the GNU General Public License
16# along with fileserv. If not, see <http://www.gnu.org/licenses/>. 16# along with fileserv. If not, see <http://www.gnu.org/licenses/>.
17 17
18AC_INIT([fileserv], 0.3, [gray+fileserv@gnu.org.ua]) 18AC_INIT([fileserv], 0.3.90, [gray+fileserv@gnu.org.ua])
19AC_CONFIG_SRCDIR([src/fileserv.c]) 19AC_CONFIG_SRCDIR([src/fileserv.c])
20AM_INIT_AUTOMAKE([1.11 foreign tar-ustar dist-xz silent-rules]) 20AM_INIT_AUTOMAKE([1.15 foreign tar-ustar dist-xz silent-rules])
21# Enable silent rules by default: 21# Enable silent rules by default:
22AM_SILENT_RULES([yes]) 22AM_SILENT_RULES([yes])
23# Checks for programs. 23# Checks for programs.
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.
6use strict;
7use warnings;
8
9my $name = shift @ARGV || 'ChangeLog';
10my $outfile = "$name.$$";
11
12END {
13 if (-f $outfile) {
14 unlink $outfile
15 }
16}
17
18my $header;
19
20die "must be run in a cloned source tree\n" unless -d '.git';
21
22if (-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
29open(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
33open(STDOUT, '>', $outfile)
34 or die "can't open temporary file\n";
35
36my $nl = 0;
37while (<>) {
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
60print "\f\nLocal Variables:\n";
61print <<'EOT';
62mode: change-log
63version-control: never
64buffer-read-only: t
65End:
66EOT
67;
68
69close STDOUT;
70if (-f $name) {
71 unlink $name or die "can't unlink $name: $!\n";
72}
73rename $outfile, $name or die "can't rename $outfile to $name: $!\n";
74
75
76
77

Return to:

Send suggestions and report system problems to the System administrator.